public interface IgfsEx extends IgniteFileSystem
IgniteFileSystem.| Modifier and Type | Field and Description |
|---|---|
static String |
PROP_GROUP_NAME
File property: group name.
|
static String |
PROP_PERMISSION
File property: permission.
|
static String |
PROP_PREFER_LOCAL_WRITES
File property: prefer writes to local node.
|
static String |
PROP_USER_NAME
File property: user name.
|
static String |
SECONDARY_FS_CONFIG_PATH
Property name for path to Hadoop configuration.
|
static String |
SECONDARY_FS_URI
Property name for URI of file system.
|
static String |
SECONDARY_FS_USER_NAME
Property name for default user name of file system.
|
IGFS_SCHEME| Modifier and Type | Method and Description |
|---|---|
IgfsSecondaryFileSystem |
asSecondary()
Return the given IGFS as a secondary file system.
|
IgniteInternalFuture<?> |
awaitDeletesAsync()
Asynchronously await for all entries existing in trash to be removed.
|
String |
clientLogDirectory()
Gets client file system log directory.
|
void |
clientLogDirectory(String logDir)
Sets client file system log directory.
|
IgfsContext |
context() |
boolean |
evictExclude(IgfsPath path,
boolean primary)
Whether this path is excluded from evictions.
|
Boolean |
globalSampling()
Get sampling state.
|
void |
globalSampling(Boolean val)
Enables, disables or clears sampling flag.
|
IgfsStatus |
globalSpace()
Gets global space counters.
|
long |
groupBlockSize()
Gets group block size, i.e. block size multiplied by group size in affinity mapper.
|
boolean |
isProxy(URI path)
Check whether the given path is proxy path.
|
IgfsLocalMetrics |
localMetrics()
Get local metrics.
|
IgniteUuid |
nextAffinityKey()
Get next affinity key.
|
IgfsInputStreamAdapter |
open(IgfsPath path)
Opens a file for reading.
|
IgfsInputStreamAdapter |
open(IgfsPath path,
int bufSize)
Opens a file for reading.
|
IgfsInputStreamAdapter |
open(IgfsPath path,
int bufSize,
int seqReadsBeforePrefetch)
Opens a file for reading.
|
IgfsPaths |
proxyPaths()
Get handshake message.
|
void |
stop(boolean cancel)
Stops IGFS cleaning all used resources.
|
affinity, affinity, append, append, configuration, create, create, create, delete, execute, execute, execute, execute, exists, format, info, listFiles, listPaths, metrics, mkdirs, mkdirs, name, rename, resetMetrics, setTimes, size, summary, update, usedSpaceSize, withAsyncfuture, isAsyncstatic final String PROP_USER_NAME
static final String PROP_GROUP_NAME
static final String PROP_PERMISSION
static final String PROP_PREFER_LOCAL_WRITES
static final String SECONDARY_FS_CONFIG_PATH
static final String SECONDARY_FS_URI
static final String SECONDARY_FS_USER_NAME
void stop(boolean cancel)
cancel - Cancellation flag.IgfsContext context()
IgfsPaths proxyPaths()
IgfsInputStreamAdapter open(IgfsPath path, int bufSize, int seqReadsBeforePrefetch) throws IgniteException
open in interface IgniteFileSystempath - File path to read.bufSize - Read buffer size (bytes) or zero to use default value.seqReadsBeforePrefetch - Amount of sequential reads before prefetch is started.IgniteException - In case of error.IgfsPathNotFoundException - If path doesn't exist.IgfsInputStreamAdapter open(IgfsPath path) throws IgniteException
open in interface IgniteFileSystempath - File path to read.IgniteException - In case of error.IgfsPathNotFoundException - If path doesn't exist.IgfsInputStreamAdapter open(IgfsPath path, int bufSize) throws IgniteException
open in interface IgniteFileSystempath - File path to read.bufSize - Read buffer size (bytes) or zero to use default value.IgniteException - In case of error.IgfsPathNotFoundException - If path doesn't exist.IgfsStatus globalSpace() throws IgniteCheckedException
IgniteCheckedException - If task execution failed.void globalSampling(@Nullable Boolean val) throws IgniteCheckedException
val - True to turn on sampling, false to turn it off, null to clear sampling state.IgniteCheckedException - If failed.@Nullable Boolean globalSampling()
True in case sampling is enabled, false otherwise, or null in case sampling
flag is not set.IgfsLocalMetrics localMetrics()
long groupBlockSize()
IgniteInternalFuture<?> awaitDeletesAsync() throws IgniteCheckedException
IgniteCheckedException - If failed.@Nullable String clientLogDirectory()
null in case no client connections have been created yet.void clientLogDirectory(String logDir)
logDir - Client file system log directory.boolean evictExclude(IgfsPath path, boolean primary)
path - Path.primary - Whether the mode is PRIMARY.True if path is excluded from evictions.IgniteUuid nextAffinityKey()
boolean isProxy(URI path)
path - Path.True if proxy.IgfsSecondaryFileSystem asSecondary()
Follow @ApacheIgnite
Ignite Fabric : ver. 1.4.0 Release Date : September 24 2015