public interface GridGgfsHadoop
| Modifier and Type | Method and Description |
|---|---|
Collection<org.gridgain.grid.ggfs.GridGgfsBlockLocation> |
affinity(org.gridgain.grid.ggfs.GridGgfsPath path,
long start,
long len)
Command to get affinity for given path, offset and length.
|
GridGgfsHadoopStreamDelegate |
append(org.gridgain.grid.ggfs.GridGgfsPath path,
boolean create,
Map<String,String> props)
Open file for output appending data to the end of a file.
|
void |
close(boolean force)
Close connection.
|
org.gridgain.grid.ggfs.GridGgfsPathSummary |
contentSummary(org.gridgain.grid.ggfs.GridGgfsPath path)
Gets path summary.
|
GridGgfsHadoopStreamDelegate |
create(org.gridgain.grid.ggfs.GridGgfsPath path,
boolean overwrite,
boolean colocate,
int replication,
long blockSize,
Map<String,String> props)
Command to create file and open it for output.
|
Boolean |
delete(org.gridgain.grid.ggfs.GridGgfsPath path,
boolean recursive)
Command to delete given path.
|
GridGgfsStatus |
fsStatus()
Performs status request.
|
GridGgfsHandshakeResponse |
handshake(String logDir)
Perform handshake.
|
org.gridgain.grid.ggfs.GridGgfsFile |
info(org.gridgain.grid.ggfs.GridGgfsPath path)
Command to retrieve file info for some GGFS path.
|
Collection<org.gridgain.grid.ggfs.GridGgfsFile> |
listFiles(org.gridgain.grid.ggfs.GridGgfsPath path)
Command to get list of files in directory.
|
Collection<org.gridgain.grid.ggfs.GridGgfsPath> |
listPaths(org.gridgain.grid.ggfs.GridGgfsPath path)
Command to get directory listing.
|
Boolean |
mkdirs(org.gridgain.grid.ggfs.GridGgfsPath path,
Map<String,String> props)
Command to create directories.
|
GridGgfsHadoopStreamDelegate |
open(org.gridgain.grid.ggfs.GridGgfsPath path)
Command to open file for reading.
|
GridGgfsHadoopStreamDelegate |
open(org.gridgain.grid.ggfs.GridGgfsPath path,
int seqReadsBeforePrefetch)
Command to open file for reading.
|
Boolean |
rename(org.gridgain.grid.ggfs.GridGgfsPath src,
org.gridgain.grid.ggfs.GridGgfsPath dest)
Command to rename given path.
|
Boolean |
setTimes(org.gridgain.grid.ggfs.GridGgfsPath path,
long accessTime,
long modificationTime)
Sets last access time and last modification time for a file.
|
org.gridgain.grid.ggfs.GridGgfsFile |
update(org.gridgain.grid.ggfs.GridGgfsPath path,
Map<String,String> props)
Command to update file properties.
|
GridGgfsHandshakeResponse handshake(String logDir) throws org.gridgain.grid.GridException, IOException
logDir - Log directory.org.gridgain.grid.GridException - If failed.IOExceptionvoid close(boolean force)
force - Force flag.org.gridgain.grid.ggfs.GridGgfsFile info(org.gridgain.grid.ggfs.GridGgfsPath path)
throws org.gridgain.grid.GridException,
IOException
path - Path to get file info for.org.gridgain.grid.GridException - If failed.IOExceptionorg.gridgain.grid.ggfs.GridGgfsFile update(org.gridgain.grid.ggfs.GridGgfsPath path,
Map<String,String> props)
throws org.gridgain.grid.GridException,
IOException
path - GGFS path to update properties.props - Properties to update.org.gridgain.grid.GridException - If failed.IOExceptionBoolean setTimes(org.gridgain.grid.ggfs.GridGgfsPath path, long accessTime, long modificationTime) throws org.gridgain.grid.GridException, IOException
path - Path to update times.accessTime - Last access time to set.modificationTime - Last modification time to set.org.gridgain.grid.GridException - If failed.IOExceptionBoolean rename(org.gridgain.grid.ggfs.GridGgfsPath src, org.gridgain.grid.ggfs.GridGgfsPath dest) throws org.gridgain.grid.GridException, IOException
src - Source path.dest - Destination path.org.gridgain.grid.GridException - If failed.IOExceptionBoolean delete(org.gridgain.grid.ggfs.GridGgfsPath path, boolean recursive) throws org.gridgain.grid.GridException, IOException
path - Path to delete.recursive - True if deletion is recursive.org.gridgain.grid.GridException - If failed.IOExceptionCollection<org.gridgain.grid.ggfs.GridGgfsBlockLocation> affinity(org.gridgain.grid.ggfs.GridGgfsPath path, long start, long len) throws org.gridgain.grid.GridException, IOException
path - Path to get affinity for.start - Start position (offset).len - Data length.org.gridgain.grid.GridException - If failed.IOExceptionorg.gridgain.grid.ggfs.GridGgfsPathSummary contentSummary(org.gridgain.grid.ggfs.GridGgfsPath path)
throws org.gridgain.grid.GridException,
IOException
path - Path to get summary for.org.gridgain.grid.GridException - If failed.IOExceptionBoolean mkdirs(org.gridgain.grid.ggfs.GridGgfsPath path, Map<String,String> props) throws org.gridgain.grid.GridException, IOException
path - Path to create.org.gridgain.grid.GridException - If failed.IOExceptionCollection<org.gridgain.grid.ggfs.GridGgfsFile> listFiles(org.gridgain.grid.ggfs.GridGgfsPath path) throws org.gridgain.grid.GridException, IOException
path - Path to list.org.gridgain.grid.GridException - If failed.IOExceptionCollection<org.gridgain.grid.ggfs.GridGgfsPath> listPaths(org.gridgain.grid.ggfs.GridGgfsPath path) throws org.gridgain.grid.GridException, IOException
path - Path to list.org.gridgain.grid.GridException - If failed.IOExceptionGridGgfsStatus fsStatus() throws org.gridgain.grid.GridException, IOException
org.gridgain.grid.GridException - If failed.IOExceptionGridGgfsHadoopStreamDelegate open(org.gridgain.grid.ggfs.GridGgfsPath path) throws org.gridgain.grid.GridException, IOException
path - File path to open.org.gridgain.grid.GridException - If failed.IOExceptionGridGgfsHadoopStreamDelegate open(org.gridgain.grid.ggfs.GridGgfsPath path, int seqReadsBeforePrefetch) throws org.gridgain.grid.GridException, IOException
path - File path to open.org.gridgain.grid.GridException - If failed.IOExceptionGridGgfsHadoopStreamDelegate create(org.gridgain.grid.ggfs.GridGgfsPath path, boolean overwrite, boolean colocate, int replication, long blockSize, @Nullable Map<String,String> props) throws org.gridgain.grid.GridException, IOException
path - Path to file.overwrite - If true then old file contents will be lost.colocate - If true and called on data node, file will be written on that node.replication - Replication factor.props - File properties for creation.org.gridgain.grid.GridException - If failed.IOExceptionGridGgfsHadoopStreamDelegate append(org.gridgain.grid.ggfs.GridGgfsPath path, boolean create, @Nullable Map<String,String> props) throws org.gridgain.grid.GridException, IOException
path - Path to file.create - If true, file will be created if does not exist.props - File properties.org.gridgain.grid.GridException - If failed.IOExceptionCopyright © 2014. All rights reserved.