@ThreadSafe public class OSSUnderFileSystem extends ObjectUnderFileSystem
UnderFileSystem implementation.ObjectUnderFileSystem.DeleteBuffer, ObjectUnderFileSystem.ObjectListingChunk, ObjectUnderFileSystem.ObjectPermissions, ObjectUnderFileSystem.ObjectStatusUnderFileSystem.Factory, UnderFileSystem.SpaceType, UnderFileSystem.UfsModemExecutorService, PATH_SEPARATOR, PATH_SEPARATOR_CHARmUfsConf, mUri| Modifier | Constructor and Description |
|---|---|
protected |
OSSUnderFileSystem(AlluxioURI uri,
com.aliyun.oss.OSSClient ossClient,
java.lang.String bucketName,
UnderFileSystemConfiguration conf)
Constructor for
OSSUnderFileSystem. |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
copyObject(java.lang.String src,
java.lang.String dst) |
protected boolean |
createEmptyObject(java.lang.String key) |
static OSSUnderFileSystem |
createInstance(AlluxioURI uri,
UnderFileSystemConfiguration conf)
Constructs a new instance of
OSSUnderFileSystem. |
protected java.io.OutputStream |
createObject(java.lang.String key) |
protected boolean |
deleteObject(java.lang.String key) |
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() |
protected java.io.InputStream |
openObject(java.lang.String key,
OpenOptions options) |
void |
setMode(java.lang.String path,
short mode) |
void |
setOwner(java.lang.String path,
java.lang.String user,
java.lang.String group) |
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, getFingerprint, getOperationMode, getPhysicalStores, isSeekable, mkdirs, open, resolveUri, validatePathprotected OSSUnderFileSystem(AlluxioURI uri, com.aliyun.oss.OSSClient ossClient, java.lang.String bucketName, UnderFileSystemConfiguration conf)
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) throws java.lang.Exception
OSSUnderFileSystem.uri - the AlluxioURI for this UFSconf - the configuration for this UFSOSSUnderFileSystem instancejava.lang.Exceptionpublic 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.IOExceptionprotected boolean copyObject(java.lang.String src,
java.lang.String dst)
copyObject in class ObjectUnderFileSystemprotected 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.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 ObjectUnderFileSystemprotected java.io.InputStream openObject(java.lang.String key,
OpenOptions options)
throws java.io.IOException
openObject in class ObjectUnderFileSystemjava.io.IOExceptionCopyright © 2019. All Rights Reserved.