@ThreadSafe public class SwiftUnderFileSystem extends ObjectUnderFileSystem
UnderFileSystem implementation based on the JOSS library. The mkdir
operation creates a zero-byte object. A suffix ObjectUnderFileSystem.PATH_SEPARATOR in the
object name denotes a folder. JOSS directory listing API requires that the suffix be a single
character.ObjectUnderFileSystem.DeleteBuffer, ObjectUnderFileSystem.ObjectListingChunk, ObjectUnderFileSystem.ObjectPermissions, ObjectUnderFileSystem.ObjectStatusUnderFileSystem.Factory, UnderFileSystem.SpaceTypemExecutorService, PATH_SEPARATOR, PATH_SEPARATOR_CHARmAlluxioConf, mUfsConf, mUri| Constructor and Description |
|---|
SwiftUnderFileSystem(AlluxioURI uri,
UnderFileSystemConfiguration conf,
AlluxioConfiguration alluxioConf)
Constructs a new Swift
UnderFileSystem. |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
copyObject(String source,
String destination) |
protected boolean |
createEmptyObject(String key) |
protected OutputStream |
createObject(String key) |
protected boolean |
deleteObject(String path) |
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, validatePathpublic SwiftUnderFileSystem(AlluxioURI uri, UnderFileSystemConfiguration conf, AlluxioConfiguration alluxioConf) throws FileDoesNotExistException
UnderFileSystem.uri - the AlluxioURI for this UFSconf - the configuration for this UFSalluxioConf - Alluxio configurationFileDoesNotExistException - when specified container does not existpublic String getUnderFSType()
public void setMode(String path, short mode) throws IOException
IOExceptionprotected boolean copyObject(String source, String destination)
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 path) throws IOException
deleteObject in class ObjectUnderFileSystemIOExceptionprotected 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.