@ThreadSafe public class OSSUnderFileSystem extends ObjectUnderFileSystem
UnderFileSystem implementation.ObjectUnderFileSystem.DeleteBuffer, ObjectUnderFileSystem.ObjectListingChunk, ObjectUnderFileSystem.ObjectPermissions, ObjectUnderFileSystem.ObjectStatusUnderFileSystem.Factory, UnderFileSystem.SpaceTypemExecutorService, PATH_SEPARATOR, PATH_SEPARATOR_CHARmAlluxioConf, mUfsConf, mUri| Modifier | Constructor and Description |
|---|---|
protected |
OSSUnderFileSystem(AlluxioURI uri,
com.aliyun.oss.OSSClient ossClient,
String bucketName,
UnderFileSystemConfiguration conf,
AlluxioConfiguration alluxioConf)
Constructor for
OSSUnderFileSystem. |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
copyObject(String src,
String dst) |
protected boolean |
createEmptyObject(String key) |
static OSSUnderFileSystem |
createInstance(AlluxioURI uri,
UnderFileSystemConfiguration conf,
AlluxioConfiguration alluxioConf)
Constructs a new instance of
OSSUnderFileSystem. |
protected OutputStream |
createObject(String key) |
protected boolean |
deleteObject(String key) |
protected String |
getFolderSuffix() |
protected ObjectUnderFileSystem.ObjectListingChunk |
getObjectListingChunk(String key,
boolean recursive) |
protected ObjectUnderFileSystem.ObjectStatus |
getObjectStatus(String key) |
protected ObjectUnderFileSystem.ObjectPermissions |
getPermissions() |
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) |
cleanup, 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, getAclPair, getActiveSyncInfo, getFingerprint, getOperationMode, getPhysicalStores, isSeekable, mkdirs, open, resolveUri, setAclEntries, startActiveSyncPolling, startSync, stopActiveSyncPolling, stopSync, supportsActiveSync, validatePathprotected OSSUnderFileSystem(AlluxioURI uri, com.aliyun.oss.OSSClient ossClient, String bucketName, UnderFileSystemConfiguration conf, AlluxioConfiguration alluxioConf)
OSSUnderFileSystem.uri - the AlluxioURI for this UFSossClient - Aliyun OSS clientbucketName - bucket name of user's configured Alluxio bucketconf - configuration for this UFSpublic static OSSUnderFileSystem createInstance(AlluxioURI uri, UnderFileSystemConfiguration conf, AlluxioConfiguration alluxioConf) throws Exception
OSSUnderFileSystem.uri - the AlluxioURI for this UFSconf - the configuration for this UFSalluxioConf - Alluxio configurationOSSUnderFileSystem instanceExceptionpublic String getUnderFSType()
public void setMode(String path, short mode) 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)
deleteObject in class ObjectUnderFileSystemprotected 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 ObjectUnderFileSystem.ObjectPermissions getPermissions()
getPermissions in class ObjectUnderFileSystemprotected String getRootKey()
getRootKey in class ObjectUnderFileSystemprotected InputStream openObject(String key, OpenOptions options) throws IOException
openObject in class ObjectUnderFileSystemIOExceptionCopyright © 2019. All Rights Reserved.