@ThreadSafe public class OSSUnderFileSystem extends ObjectUnderFileSystem
UnderFileSystem implementation.ObjectUnderFileSystem.ObjectListingChunk, ObjectUnderFileSystem.ObjectStatusUnderFileSystem.Factory, UnderFileSystem.SpaceTypePATH_SEPARATOR, PATH_SEPARATOR_CHARmProperties, mUri| Modifier | Constructor and Description |
|---|---|
protected |
OSSUnderFileSystem(AlluxioURI uri,
com.aliyun.oss.OSSClient ossClient,
String bucketName)
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)
Constructs a new instance of
OSSUnderFileSystem. |
protected OutputStream |
createObject(String key) |
protected boolean |
deleteObject(String key) |
protected String |
getFolderSuffix() |
String |
getGroup(String path) |
short |
getMode(String path) |
protected ObjectUnderFileSystem.ObjectListingChunk |
getObjectListingChunk(String key,
boolean recursive) |
protected ObjectUnderFileSystem.ObjectStatus |
getObjectStatus(String key) |
String |
getOwner(String path) |
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) |
close, connectFromMaster, connectFromWorker, convertToFolderName, create, deleteDirectory, deleteFile, getBlockSizeByte, getChildName, getConf, getFileLocations, getFileLocations, getFileSize, getListingChunkLength, getListingChunkLengthMax, getModificationTimeMs, getObjectListingChunkAndCreateNonEmpty, getParentPath, getSpace, isDirectory, isFile, isRoot, listInternal, listStatus, listStatus, mkdirs, mkdirsInternal, open, parentExists, renameDirectory, renameFile, setConf, supportsFlushconfigureProperties, create, deleteDirectory, exists, getProperties, mkdirs, open, resolveUri, setProperties, validatePathprotected OSSUnderFileSystem(AlluxioURI uri, com.aliyun.oss.OSSClient ossClient, String bucketName)
OSSUnderFileSystem.uri - the AlluxioURI for this UFSossClient - Aliyun OSS clientbucketName - bucket name of user's configured Alluxio bucketpublic static OSSUnderFileSystem createInstance(AlluxioURI uri) throws Exception
OSSUnderFileSystem.uri - the AlluxioURI for this UFSOSSUnderFileSystem instanceException - when a connection to GCS could not be createdpublic String getUnderFSType()
public void setMode(String path, short mode) throws IOException
IOExceptionpublic String getOwner(String path) throws IOException
IOExceptionpublic String getGroup(String path) throws IOException
IOExceptionpublic short getMode(String path) 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 String getRootKey()
getRootKey in class ObjectUnderFileSystemprotected InputStream openObject(String key, OpenOptions options) throws IOException
openObject in class ObjectUnderFileSystemIOExceptionCopyright © 2017. All Rights Reserved.