@ThreadSafe public class GCSUnderFileSystem extends ObjectUnderFileSystem
UnderFileSystem implementation based on the jets3t library.ObjectUnderFileSystem.DeleteBuffer, ObjectUnderFileSystem.ObjectListingChunk, ObjectUnderFileSystem.ObjectPermissions, ObjectUnderFileSystem.ObjectStatus, ObjectUnderFileSystem.OperationBuffer<T>, ObjectUnderFileSystem.RenameBufferUnderFileSystem.Factory, UnderFileSystem.SpaceTypemExecutorService, mRootKeySupplier, 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,
UnderFileSystemConfiguration conf)
Constructor for
GCSUnderFileSystem. |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
copyObject(java.lang.String src,
java.lang.String dst) |
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) |
UfsDirectoryStatus |
getExistingDirectoryStatus(java.lang.String path) |
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() |
java.io.InputStream |
openExistingFile(java.lang.String path) |
java.io.InputStream |
openExistingFile(java.lang.String path,
OpenOptions options) |
protected java.io.InputStream |
openObject(java.lang.String key,
OpenOptions options,
RetryPolicy retryPolicy) |
void |
setMode(java.lang.String path,
short mode) |
void |
setOwner(java.lang.String path,
java.lang.String user,
java.lang.String group) |
cleanup, close, connectFromMaster, connectFromWorker, convertToFolderName, create, createNonexistingFile, createNonexistingFile, deleteDirectory, deleteExistingDirectory, deleteExistingDirectory, deleteExistingFile, deleteFile, deleteObjects, getBlockSizeByte, getChildName, getDirectoryStatus, getExistingFileStatus, getExistingStatus, getFileLocations, getFileLocations, getFileStatus, getListingChunkLength, getListingChunkLengthMax, getObjectListingChunkForPath, getParentPath, getSpace, getStatus, isDirectory, isExistingDirectory, isFile, isObjectStorage, isRoot, listInternal, listStatus, listStatus, mkdirs, mkdirsInternal, open, parentExists, renameDirectory, renameFile, renameRenamableDirectory, renameRenamableFile, stripPrefixIfPresent, supportsFlushcreate, deleteDirectory, exists, getAclPair, getActiveSyncInfo, getConfiguration, getFingerprint, getOperationMode, getPhysicalStores, isSeekable, mkdirs, open, resolveUri, setAclEntries, startActiveSyncPolling, startSync, stopActiveSyncPolling, stopSync, supportsActiveSync, validatePathprotected GCSUnderFileSystem(AlluxioURI uri, org.jets3t.service.impl.rest.httpclient.GoogleStorageService googleStorageService, java.lang.String bucketName, UnderFileSystemConfiguration conf)
GCSUnderFileSystem.uri - the AlluxioURI for this UFSgoogleStorageService - the Jets3t GCS clientbucketName - bucket name of user's configured Alluxio bucketconf - 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.IOExceptionpublic UfsDirectoryStatus getExistingDirectoryStatus(java.lang.String path) throws java.io.IOException
getExistingDirectoryStatus in interface UnderFileSystemgetExistingDirectoryStatus in class ObjectUnderFileSystemjava.io.IOExceptionpublic java.io.InputStream openExistingFile(java.lang.String path)
throws java.io.IOException
openExistingFile in interface UnderFileSystemopenExistingFile in class ObjectUnderFileSystemjava.io.IOExceptionpublic java.io.InputStream openExistingFile(java.lang.String path,
OpenOptions options)
throws java.io.IOException
openExistingFile in interface UnderFileSystemopenExistingFile in class ObjectUnderFileSystemjava.io.IOExceptionprotected boolean copyObject(java.lang.String src,
java.lang.String dst)
copyObject in class ObjectUnderFileSystempublic 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) throws java.io.IOException
getObjectStatus in class ObjectUnderFileSystemjava.io.IOExceptionprotected 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,
RetryPolicy retryPolicy)
openObject in class ObjectUnderFileSystemCopyright © 2021. All Rights Reserved.