@ThreadSafe public final class OSSUnderFileSystem extends UnderFileSystem
UnderFileSystem implementation.UnderFileSystem.SpaceTypeLISTING_LENGTH, mProperties, mUri| Modifier | Constructor and Description |
|---|---|
protected |
OSSUnderFileSystem(AlluxioURI uri,
com.aliyun.oss.OSSClient ossClient,
String bucketName,
String bucketPrefix)
Constructor for
OSSUnderFileSystem. |
configureProperties, get, get, getProperties, isHadoopUnderFS, listRecursive, parse, providesStorage, resolveUri, setPropertiesprotected OSSUnderFileSystem(AlluxioURI uri, com.aliyun.oss.OSSClient ossClient, String bucketName, String bucketPrefix)
OSSUnderFileSystem.uri - the AlluxioURI for this UFSossClient - Aliyun OSS clientbucketName - bucket name of user's configured Alluxio bucketbucketPrefix - prefix of the 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()
getUnderFSType in class UnderFileSystempublic void connectFromMaster(String hostname) throws IOException
connectFromMaster in class UnderFileSystemIOExceptionpublic void connectFromWorker(String hostname) throws IOException
connectFromWorker in class UnderFileSystemIOExceptionpublic void close()
throws IOException
close in class UnderFileSystemIOExceptionpublic OutputStream create(String path) throws IOException
create in class UnderFileSystemIOExceptionpublic OutputStream create(String path, CreateOptions options) throws IOException
create in class UnderFileSystemIOExceptionpublic boolean delete(String path, boolean recursive) throws IOException
delete in class UnderFileSystemIOExceptionpublic boolean exists(String path) throws IOException
exists in class UnderFileSystemIOExceptionpublic long getBlockSizeByte(String path) throws IOException
getBlockSizeByte in class UnderFileSystempath - the file nameIOException - this implementation will not throw this exception, but subclasses maypublic Object getConf()
getConf in class UnderFileSystempublic List<String> getFileLocations(String path) throws IOException
getFileLocations in class UnderFileSystemIOExceptionpublic List<String> getFileLocations(String path, long offset) throws IOException
getFileLocations in class UnderFileSystemIOExceptionpublic long getFileSize(String path) throws IOException
getFileSize in class UnderFileSystemIOExceptionpublic long getModificationTimeMs(String path) throws IOException
getModificationTimeMs in class UnderFileSystemIOExceptionpublic long getSpace(String path, UnderFileSystem.SpaceType type) throws IOException
getSpace in class UnderFileSystemIOExceptionpublic boolean isFile(String path) throws IOException
isFile in class UnderFileSystemIOExceptionpublic String[] list(String path) throws IOException
list in class UnderFileSystemIOExceptionpublic boolean mkdirs(String path, boolean createParent) throws IOException
mkdirs in class UnderFileSystemIOExceptionpublic boolean mkdirs(String path, MkdirsOptions options) throws IOException
mkdirs in class UnderFileSystemIOExceptionpublic InputStream open(String path) throws IOException
open in class UnderFileSystemIOExceptionpublic boolean rename(String src, String dst) throws IOException
rename in class UnderFileSystemIOExceptionpublic void setConf(Object conf)
setConf in class UnderFileSystempublic void setOwner(String path, String user, String group)
setOwner in class UnderFileSystempublic void setMode(String path, short mode) throws IOException
setMode in class UnderFileSystemIOExceptionpublic String getOwner(String path) throws IOException
getOwner in class UnderFileSystemIOExceptionpublic String getGroup(String path) throws IOException
getGroup in class UnderFileSystemIOExceptionpublic short getMode(String path) throws IOException
getMode in class UnderFileSystemIOExceptionpublic boolean supportsFlush()
supportsFlush in class UnderFileSystemCopyright © 2016. All Rights Reserved.