Interface DataAccessInterface
-
Method Summary
Modifier and TypeMethodDescriptionvoid
check
(ProxySocket proxy) Check.void
Delete.Gets the.long
getFileLastModified
(String destinationNameOrType, String source) Gets the file last modified.getProxySocketInput
(String destinationNameOrType, String source, long offset) Gets the proxy socket input.getProxySocketInput
(String destinationNameOrType, String source, long offset, long length) Gets the proxy socket input.getProxySocketOutput
(String destinationNameOrType, String target, long offset, int umask) Gets the proxy socket output.List.List.void
Mkdir.void
Move.void
Rmdir.long
Size.
-
Method Details
-
getFileLastModified
long getFileLastModified(String destinationNameOrType, String source) throws MasterException, IOException Gets the file last modified.- Parameters:
destinationNameOrType
- the destination name or typesource
- the source- Returns:
- the file last modified
- Throws:
MasterException
- the master exceptionIOException
- Signals that an I/O exception has occurred.
-
size
Size.- Parameters:
destinationNameOrType
- the destination name or typesource
- the source- Returns:
- the long
- Throws:
MasterException
- the master exceptionIOException
- Signals that an I/O exception has occurred.
-
get
FileListElement get(String destinationNameOrType, String source) throws MasterException, IOException Gets the.- Parameters:
destinationNameOrType
- the destination name or typesource
- the source- Returns:
- the file list element
- Throws:
MasterException
- the master exceptionIOException
- Signals that an I/O exception has occurred.
-
getProxySocketInput
ProxySocket getProxySocketInput(String destinationNameOrType, String source, long offset) throws MasterException, IOException Gets the proxy socket input.- Parameters:
destinationNameOrType
- the destination name or typesource
- the sourceoffset
- the offset- Returns:
- the proxy socket input
- Throws:
MasterException
- the master exceptionIOException
- Signals that an I/O exception has occurred.
-
getProxySocketInput
ProxySocket getProxySocketInput(String destinationNameOrType, String source, long offset, long length) throws MasterException, IOException Gets the proxy socket input.- Parameters:
destinationNameOrType
- the destination name or typesource
- the sourceoffset
- the offsetlength
- the length- Returns:
- the proxy socket input
- Throws:
MasterException
- the master exceptionIOException
- Signals that an I/O exception has occurred.
-
getProxySocketOutput
ProxySocket getProxySocketOutput(String destinationNameOrType, String target, long offset, int umask) throws MasterException, IOException Gets the proxy socket output.- Parameters:
destinationNameOrType
- the destination name or typetarget
- the targetoffset
- the offsetumask
- the umask- Returns:
- the proxy socket output
- Throws:
MasterException
- the master exceptionIOException
- Signals that an I/O exception has occurred.
-
delete
void delete(String destinationNameOrType, String source, boolean force) throws MasterException, IOException Delete.- Parameters:
destinationNameOrType
- the destination name or typesource
- the sourceforce
- the force- Throws:
MasterException
- the master exceptionIOException
- Signals that an I/O exception has occurred.
-
mkdir
Mkdir.- Parameters:
destinationNameOrType
- the destination name or typepath
- the path- Throws:
MasterException
- the master exceptionIOException
- Signals that an I/O exception has occurred.
-
rmdir
Rmdir.- Parameters:
destinationNameOrType
- the destination name or typepath
- the path- Throws:
MasterException
- the master exceptionIOException
- Signals that an I/O exception has occurred.
-
list
FileListElement[] list(String destinationNameOrType, String path, int sort, int order) throws MasterException, IOException List.- Parameters:
destinationNameOrType
- the destination name or typepath
- the pathsort
- the sortorder
- the order- Returns:
- the file list element[]
- Throws:
MasterException
- the master exceptionIOException
- Signals that an I/O exception has occurred.
-
list
FileListElement[] list(String destinationNameOrType, String path) throws MasterException, IOException List.- Parameters:
destinationNameOrType
- the destination name or typepath
- the path- Returns:
- the file list element[]
- Throws:
MasterException
- the master exceptionIOException
- Signals that an I/O exception has occurred.
-
move
void move(String destinationNameOrType, String source, String target) throws MasterException, IOException Move.- Parameters:
destinationNameOrType
- the destination name or typesource
- the sourcetarget
- the target- Throws:
MasterException
- the master exceptionIOException
- Signals that an I/O exception has occurred.
-
check
Check.- Parameters:
proxy
- the proxy- Throws:
MasterException
- the master exceptionIOException
- Signals that an I/O exception has occurred.
-