@ThreadSafe public class OBSUnderFileSystem 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 |
OBSUnderFileSystem(AlluxioURI uri,
com.obs.services.ObsClient obsClient,
java.lang.String bucketName,
java.lang.String bucketType,
UnderFileSystemConfiguration conf)
Constructor for
OBSUnderFileSystem. |
| Modifier and Type | Method and Description |
|---|---|
void |
cleanup() |
protected boolean |
copyObject(java.lang.String src,
java.lang.String dst) |
boolean |
createEmptyObject(java.lang.String key) |
static OBSUnderFileSystem |
createInstance(AlluxioURI uri,
UnderFileSystemConfiguration conf)
Constructs a new instance of
OBSUnderFileSystem. |
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 com.obs.services.model.ObjectListing |
getObjectListingChunk(com.obs.services.model.ListObjectsRequest request) |
protected ObjectUnderFileSystem.ObjectListingChunk |
getObjectListingChunk(java.lang.String key,
boolean recursive) |
protected ObjectUnderFileSystem.ObjectStatus |
getObjectStatus(java.lang.String key) |
java.util.Map<java.lang.String,java.lang.String> |
getObjectTags(java.lang.String path) |
protected ObjectUnderFileSystem.ObjectPermissions |
getPermissions() |
protected java.lang.String |
getRootKey() |
UfsStatus |
getStatus(java.lang.String path) |
java.lang.String |
getUnderFSType() |
boolean |
isDirectory(java.lang.String path) |
protected java.io.InputStream |
openObject(java.lang.String key,
OpenOptions options,
RetryPolicy retryPolicy) |
PositionReader |
openPositionRead(java.lang.String path,
long fileLength) |
boolean |
renameDirectory(java.lang.String src,
java.lang.String dst) |
void |
setMode(java.lang.String path,
short mode) |
void |
setObjectTagging(java.lang.String path,
java.lang.String name,
java.lang.String value) |
void |
setOwner(java.lang.String path,
java.lang.String user,
java.lang.String group) |
close, connectFromMaster, connectFromWorker, convertToFolderName, create, createNonexistingFile, createNonexistingFile, deleteDirectory, deleteExistingDirectory, deleteExistingDirectory, deleteExistingFile, deleteFile, getAttributes, getBlockSizeByte, getChildName, getDirectoryStatus, getExistingDirectoryStatus, getExistingFileStatus, getExistingStatus, getFileLocations, getFileLocations, getFileStatus, getListingChunkLength, getListingChunkLengthMax, getObjectListingChunk, getObjectListingChunkForPath, getObjectListingChunkForPath, getParentPath, getSpace, getStatus, isExistingDirectory, isFile, isObjectStorage, isRoot, listInternal, listStatus, listStatus, listStatusIterable, mkdirs, mkdirsInternal, open, openExistingFile, openExistingFile, parentExists, renameFile, renameRenamableDirectory, renameRenamableFile, retryOnException, setAttribute, stripPrefixIfPresent, supportsFlushcreate, deleteDirectory, exists, getAclPair, getConfiguration, getFingerprint, getOperationMode, getParsedFingerprint, getParsedFingerprint, getPhysicalStores, isSeekable, mkdirs, open, performListingAsync, resolveUri, setAclEntries, validatePathclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetFileStatus, getTemporaryToken, isTemporaryConnectionToken, listStatuses, refreshTemporaryToken, setTemporaryTokenRefreshContextprotected OBSUnderFileSystem(AlluxioURI uri, com.obs.services.ObsClient obsClient, java.lang.String bucketName, java.lang.String bucketType, UnderFileSystemConfiguration conf)
OBSUnderFileSystem.uri - the AlluxioURI for this UFSobsClient - Huawei OBS clientbucketName - bucket name of user's configured Alluxio bucketconf - configuration for this UFSpublic static OBSUnderFileSystem createInstance(AlluxioURI uri, UnderFileSystemConfiguration conf)
OBSUnderFileSystem.uri - the AlluxioURI for this UFSconf - the configuration for this UFSOBSUnderFileSystem instancepublic void cleanup()
cleanup in interface UnderFileSystemcleanup in class ObjectUnderFileSystempublic java.lang.String getUnderFSType()
public PositionReader openPositionRead(java.lang.String path, long fileLength)
public void setOwner(java.lang.String path,
java.lang.String user,
java.lang.String group)
public void setObjectTagging(java.lang.String path,
java.lang.String name,
java.lang.String value)
throws java.io.IOException
setObjectTagging in class ObjectUnderFileSystemjava.io.IOExceptionpublic java.util.Map<java.lang.String,java.lang.String> getObjectTags(java.lang.String path)
throws java.io.IOException
getObjectTags in class ObjectUnderFileSystemjava.io.IOExceptionpublic 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 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)
throws java.io.IOException
deleteObjects 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 com.obs.services.model.ObjectListing getObjectListingChunk(com.obs.services.model.ListObjectsRequest request)
protected ObjectUnderFileSystem.ObjectStatus getObjectStatus(java.lang.String key)
getObjectStatus in class ObjectUnderFileSystempublic UfsStatus getStatus(java.lang.String path) throws java.io.IOException
java.io.IOExceptionpublic boolean isDirectory(java.lang.String path)
throws java.io.IOException
isDirectory in interface UnderFileSystemisDirectory 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)
throws java.io.IOException
openObject in class ObjectUnderFileSystemjava.io.IOExceptionpublic boolean renameDirectory(java.lang.String src,
java.lang.String dst)
throws java.io.IOException
renameDirectory in interface UnderFileSystemrenameDirectory in class ObjectUnderFileSystemjava.io.IOExceptionCopyright © 2024. All Rights Reserved.