@ThreadSafe public class COSUnderFileSystem 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 |
COSUnderFileSystem(AlluxioURI uri,
com.qcloud.cos.COSClient client,
String bucketName,
String appId,
UnderFileSystemConfiguration conf,
AlluxioConfiguration alluxioConf)
Constructor for
COSUnderFileSystem. |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
copyObject(String src,
String dst) |
protected boolean |
createEmptyObject(String key) |
static COSUnderFileSystem |
createInstance(AlluxioURI uri,
UnderFileSystemConfiguration conf,
AlluxioConfiguration alluxioConf)
Constructs a new instance of
COSUnderFileSystem. |
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() |
boolean |
isDirectory(String path) |
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, 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 COSUnderFileSystem(AlluxioURI uri, com.qcloud.cos.COSClient client, String bucketName, String appId, UnderFileSystemConfiguration conf, AlluxioConfiguration alluxioConf)
COSUnderFileSystem.uri - the AlluxioURI for this UFSclient - Aliyun COS clientbucketName - bucket name of user's configured Alluxio bucketconf - configuration for this UFSpublic static COSUnderFileSystem createInstance(AlluxioURI uri, UnderFileSystemConfiguration conf, AlluxioConfiguration alluxioConf) throws Exception
COSUnderFileSystem.uri - the AlluxioURI for this UFSconf - the configuration for this UFSalluxioConf - Alluxio configurationCOSUnderFileSystem instanceExceptionpublic String getUnderFSType()
public void setMode(String path, short mode)
protected 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 ObjectUnderFileSystemIOExceptionpublic boolean isDirectory(String path) throws IOException
isDirectory in interface UnderFileSystemisDirectory 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.