@ThreadSafe public class GCSUnderFileSystem extends ObjectUnderFileSystem
UnderFileSystem implementation based on the jets3t library.ObjectUnderFileSystem.DeleteBuffer, ObjectUnderFileSystem.ObjectListingChunk, ObjectUnderFileSystem.ObjectPermissions, ObjectUnderFileSystem.ObjectStatusUnderFileSystem.Factory, UnderFileSystem.SpaceType, UnderFileSystem.UfsModemExecutorService, PATH_SEPARATOR, PATH_SEPARATOR_CHARmUfsConf, mUri| Modifier | Constructor and Description |
|---|---|
protected |
GCSUnderFileSystem(AlluxioURI uri,
org.jets3t.service.impl.rest.httpclient.GoogleStorageService googleStorageService,
java.lang.String bucketName,
short bucketMode,
java.lang.String accountOwner,
UnderFileSystemConfiguration conf)
Constructor for
GCSUnderFileSystem. |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
copyObject(java.lang.String src,
java.lang.String dst) |
protected boolean |
createEmptyObject(java.lang.String key) |
static GCSUnderFileSystem |
createInstance(AlluxioURI uri,
UnderFileSystemConfiguration conf)
Constructs a new instance of
GCSUnderFileSystem. |
protected java.io.OutputStream |
createObject(java.lang.String key) |
protected boolean |
deleteObject(java.lang.String key) |
protected java.lang.String |
getFolderSuffix() |
protected ObjectUnderFileSystem.ObjectListingChunk |
getObjectListingChunk(java.lang.String key,
boolean recursive) |
protected ObjectUnderFileSystem.ObjectStatus |
getObjectStatus(java.lang.String key) |
protected ObjectUnderFileSystem.ObjectPermissions |
getPermissions() |
protected java.lang.String |
getRootKey() |
java.lang.String |
getUnderFSType() |
protected java.io.InputStream |
openObject(java.lang.String key,
OpenOptions options) |
void |
setMode(java.lang.String path,
short mode) |
void |
setOwner(java.lang.String path,
java.lang.String user,
java.lang.String group) |
close, connectFromMaster, connectFromWorker, convertToFolderName, create, deleteDirectory, deleteFile, deleteObjects, getBlockSizeByte, getChildName, getDirectoryStatus, getFileLocations, getFileLocations, getFileStatus, getListingChunkLength, getListingChunkLengthMax, getObjectListingChunkForPath, getParentPath, getSpace, getStatus, isDirectory, isFile, isObjectStorage, isRoot, listInternal, listStatus, listStatus, mkdirs, mkdirsInternal, open, parentExists, renameDirectory, renameFile, stripPrefixIfPresent, supportsFlushcreate, deleteDirectory, exists, getFingerprint, getOperationMode, getPhysicalStores, isSeekable, mkdirs, open, resolveUri, validatePathprotected GCSUnderFileSystem(AlluxioURI uri, org.jets3t.service.impl.rest.httpclient.GoogleStorageService googleStorageService, java.lang.String bucketName, short bucketMode, java.lang.String accountOwner, UnderFileSystemConfiguration conf)
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 ownerconf - configuration for this UFSpublic static GCSUnderFileSystem createInstance(AlluxioURI uri, UnderFileSystemConfiguration conf) throws org.jets3t.service.ServiceException
GCSUnderFileSystem.uri - the AlluxioURI for this UFSconf - the configuration for this UFSGCSUnderFileSystem instanceorg.jets3t.service.ServiceException - when a connection to GCS could not be createdpublic java.lang.String getUnderFSType()
public void setOwner(java.lang.String path,
java.lang.String user,
java.lang.String group)
public void setMode(java.lang.String path,
short mode)
throws java.io.IOException
java.io.IOExceptionprotected boolean copyObject(java.lang.String src,
java.lang.String dst)
copyObject in class ObjectUnderFileSystemprotected boolean createEmptyObject(java.lang.String key)
createEmptyObject in class ObjectUnderFileSystemprotected java.io.OutputStream createObject(java.lang.String key)
throws java.io.IOException
createObject in class ObjectUnderFileSystemjava.io.IOExceptionprotected boolean deleteObject(java.lang.String key)
throws java.io.IOException
deleteObject in class ObjectUnderFileSystemjava.io.IOExceptionprotected java.lang.String getFolderSuffix()
getFolderSuffix in class ObjectUnderFileSystemprotected ObjectUnderFileSystem.ObjectListingChunk getObjectListingChunk(java.lang.String key, boolean recursive) throws java.io.IOException
getObjectListingChunk in class ObjectUnderFileSystemjava.io.IOExceptionprotected ObjectUnderFileSystem.ObjectStatus getObjectStatus(java.lang.String key)
getObjectStatus in class ObjectUnderFileSystemprotected ObjectUnderFileSystem.ObjectPermissions getPermissions()
getPermissions in class ObjectUnderFileSystemprotected java.lang.String getRootKey()
getRootKey in class ObjectUnderFileSystemprotected java.io.InputStream openObject(java.lang.String key,
OpenOptions options)
throws java.io.IOException
openObject in class ObjectUnderFileSystemjava.io.IOExceptionCopyright © 2019. All Rights Reserved.