@ThreadSafe public class GCSUnderFileSystem extends ObjectUnderFileSystem
UnderFileSystem implementation based on the jets3t library.ObjectUnderFileSystem.ObjectListingChunk, ObjectUnderFileSystem.ObjectStatusUnderFileSystem.Factory, UnderFileSystem.SpaceTypePATH_SEPARATOR, PATH_SEPARATOR_CHARmProperties, mUri| Modifier | Constructor and Description |
|---|---|
protected |
GCSUnderFileSystem(AlluxioURI uri,
org.jets3t.service.impl.rest.httpclient.GoogleStorageService googleStorageService,
String bucketName,
short bucketMode,
String accountOwner)
Constructor for
GCSUnderFileSystem. |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
copyObject(String src,
String dst) |
protected boolean |
createEmptyObject(String key) |
static GCSUnderFileSystem |
createInstance(AlluxioURI uri)
Constructs a new instance of
GCSUnderFileSystem. |
protected OutputStream |
createObject(String key) |
protected boolean |
deleteObject(String key) |
protected String |
getFolderSuffix() |
String |
getGroup(String path) |
short |
getMode(String path) |
protected ObjectUnderFileSystem.ObjectListingChunk |
getObjectListingChunk(String key,
boolean recursive) |
protected ObjectUnderFileSystem.ObjectStatus |
getObjectStatus(String key) |
String |
getOwner(String path) |
protected String |
getRootKey() |
String |
getUnderFSType() |
protected InputStream |
openObject(String key,
OpenOptions options) |
void |
setMode(String path,
short mode) |
void |
setOwner(String path,
String user,
String group) |
close, connectFromMaster, connectFromWorker, convertToFolderName, create, deleteDirectory, deleteFile, getBlockSizeByte, getChildName, getConf, getFileLocations, getFileLocations, getFileSize, getListingChunkLength, getListingChunkLengthMax, getModificationTimeMs, getObjectListingChunkAndCreateNonEmpty, getParentPath, getSpace, isDirectory, isFile, isRoot, listInternal, listStatus, listStatus, mkdirs, mkdirsInternal, open, parentExists, renameDirectory, renameFile, setConf, supportsFlushconfigureProperties, create, deleteDirectory, exists, getProperties, mkdirs, open, resolveUri, setProperties, validatePathprotected GCSUnderFileSystem(AlluxioURI uri, org.jets3t.service.impl.rest.httpclient.GoogleStorageService googleStorageService, String bucketName, short bucketMode, String accountOwner)
GCSUnderFileSystem.uri - the AlluxioURI for this UFSgoogleStorageService - the Jets3t GCS clientbucketName - bucket name of user's configured Alluxio bucketbucketMode - the permission mode that the account owner has to the bucketaccountOwner - the name of the account ownerpublic static GCSUnderFileSystem createInstance(AlluxioURI uri) throws org.jets3t.service.ServiceException
GCSUnderFileSystem.uri - the AlluxioURI for this UFSGCSUnderFileSystem instanceorg.jets3t.service.ServiceException - when a connection to GCS could not be createdpublic String getUnderFSType()
public void setMode(String path, short mode) throws IOException
IOExceptionpublic String getOwner(String path) throws IOException
IOExceptionpublic String getGroup(String path) throws IOException
IOExceptionpublic short getMode(String path) throws IOException
IOExceptionprotected boolean copyObject(String src, String dst)
copyObject in class ObjectUnderFileSystemprotected boolean createEmptyObject(String key)
createEmptyObject in class ObjectUnderFileSystemprotected OutputStream createObject(String key) throws IOException
createObject in class ObjectUnderFileSystemIOExceptionprotected boolean deleteObject(String key) throws IOException
deleteObject in class ObjectUnderFileSystemIOExceptionprotected String getFolderSuffix()
getFolderSuffix in class ObjectUnderFileSystemprotected ObjectUnderFileSystem.ObjectListingChunk getObjectListingChunk(String key, boolean recursive) throws IOException
getObjectListingChunk in class ObjectUnderFileSystemIOExceptionprotected ObjectUnderFileSystem.ObjectStatus getObjectStatus(String key)
getObjectStatus in class ObjectUnderFileSystemprotected String getRootKey()
getRootKey in class ObjectUnderFileSystemprotected InputStream openObject(String key, OpenOptions options) throws IOException
openObject in class ObjectUnderFileSystemIOExceptionCopyright © 2017. All Rights Reserved.