@ThreadSafe public class TOSUnderFileSystem extends ObjectUnderFileSystem
UnderFileSystem implementation.ObjectUnderFileSystem.DeleteBuffer, ObjectUnderFileSystem.ObjectListingChunk, ObjectUnderFileSystem.ObjectPermissions, ObjectUnderFileSystem.ObjectStatus, ObjectUnderFileSystem.ObjectStoreOperation<T>, ObjectUnderFileSystem.OperationBuffer<T>, ObjectUnderFileSystem.RenameBuffer, ObjectUnderFileSystem.UfsStatusIteratorUnderFileSystem.Factory, UnderFileSystem.SpaceTypemExecutorService, mRootKeySupplier, PATH_SEPARATOR, PATH_SEPARATOR_CHAREMPTY_ACL, mUfsConf, mUri| Modifier | Constructor and Description |
|---|---|
protected |
TOSUnderFileSystem(AlluxioURI uri,
com.volcengine.tos.TOSV2 tosClient,
java.lang.String bucketName,
UnderFileSystemConfiguration conf)
Constructor for
TOSUnderFileSystem. |
| Modifier and Type | Method and Description |
|---|---|
void |
cleanup() |
void |
close() |
protected boolean |
copyObject(java.lang.String src,
java.lang.String dst) |
boolean |
createEmptyObject(java.lang.String key) |
static TOSUnderFileSystem |
createInstance(AlluxioURI uri,
UnderFileSystemConfiguration conf)
Constructs a new instance of
TOSUnderFileSystem. |
protected java.io.OutputStream |
createObject(java.lang.String key) |
protected boolean |
deleteObject(java.lang.String key) |
protected java.util.List<java.lang.String> |
deleteObjects(java.util.List<java.lang.String> keys) |
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() |
static com.volcengine.tos.transport.TransportConfig |
initializeTOSClientConfig(AlluxioConfiguration alluxioConf)
Creates an TOS
ClientConfiguration using an Alluxio Configuration. |
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) |
connectFromMaster, connectFromWorker, convertToFolderName, create, createNonexistingFile, createNonexistingFile, deleteDirectory, deleteExistingDirectory, deleteExistingDirectory, deleteExistingFile, deleteFile, getBlockSizeByte, getChildName, getDirectoryStatus, getExistingDirectoryStatus, getExistingFileStatus, getExistingStatus, getFileLocations, getFileLocations, getFileStatus, getListingChunkLength, getListingChunkLengthMax, getObjectListingChunk, getObjectListingChunkForPath, getObjectListingChunkForPath, getParentPath, getSpace, getStatus, isDirectory, isExistingDirectory, isFile, isObjectStorage, isRoot, listInternal, listStatus, listStatus, listStatusIterable, mkdirs, mkdirsInternal, open, openExistingFile, openExistingFile, parentExists, renameDirectory, renameFile, renameRenamableDirectory, renameRenamableFile, retryOnException, stripPrefixIfPresent, supportsFlushcreate, deleteDirectory, exists, getAclPair, getActiveSyncInfo, getConfiguration, getFingerprint, getOperationMode, getParsedFingerprint, getParsedFingerprint, getPhysicalStores, getRateLimiter, isSeekable, mkdirs, open, performListingAsync, resolveUri, setAclEntries, startActiveSyncPolling, startSync, stopActiveSyncPolling, stopSync, supportsActiveSync, validatePathclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetFileStatusprotected TOSUnderFileSystem(AlluxioURI uri, @Nullable com.volcengine.tos.TOSV2 tosClient, java.lang.String bucketName, UnderFileSystemConfiguration conf)
TOSUnderFileSystem.uri - the AlluxioURI for this UFStosClient - TOS clientbucketName - bucket name of user's configured Alluxio bucketconf - configuration for this UFSpublic static TOSUnderFileSystem createInstance(AlluxioURI uri, UnderFileSystemConfiguration conf)
TOSUnderFileSystem.uri - the AlluxioURI for this UFSconf - the configuration for this UFSTOSUnderFileSystem instancepublic 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 void cleanup()
cleanup in interface UnderFileSystemcleanup in class ObjectUnderFileSystemprotected 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)
deleteObject in class ObjectUnderFileSystemprotected java.util.List<java.lang.String> deleteObjects(java.util.List<java.lang.String> keys)
deleteObjects in class ObjectUnderFileSystemprotected 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 ObjectUnderFileSystempublic static com.volcengine.tos.transport.TransportConfig initializeTOSClientConfig(AlluxioConfiguration alluxioConf)
ClientConfiguration using an Alluxio Configuration.alluxioConf - the TOS ConfigurationTransportConfigprotected java.io.InputStream openObject(java.lang.String key,
OpenOptions options,
RetryPolicy retryPolicy)
throws java.io.IOException
openObject in class ObjectUnderFileSystemjava.io.IOExceptionpublic void close()
throws java.io.IOException
close in interface java.io.Closeableclose in interface java.lang.AutoCloseableclose in class ObjectUnderFileSystemjava.io.IOExceptionCopyright © 2024. All Rights Reserved.