public final class GridGgfsFileInfo extends Object implements Externalizable
| Modifier and Type | Class and Description |
|---|---|
static class |
GridGgfsFileInfo.Builder
Builder for
GridGgfsFileInfo. |
| Modifier and Type | Field and Description |
|---|---|
static org.gridgain.grid.GridUuid |
ROOT_ID
ID for the root directory.
|
static org.gridgain.grid.GridUuid |
TRASH_ID
ID of the trash directory.
|
| Constructor and Description |
|---|
GridGgfsFileInfo()
Externalizable support. |
GridGgfsFileInfo(GridGgfsFileInfo info)
A copy constructor, which takes all data from the specified
object field-by-field.
|
| Modifier and Type | Method and Description |
|---|---|
long |
accessTime() |
org.gridgain.grid.GridUuid |
affinityKey() |
void |
affinityKey(org.gridgain.grid.GridUuid affKey) |
long |
blocksCount() |
int |
blockSize()
Get single data block size to store this file.
|
static GridGgfsFileInfo.Builder |
builder()
Creates a builder for the new instance of file info.
|
static GridGgfsFileInfo.Builder |
builder(GridGgfsFileInfo origin)
Creates a builder for the new instance of file info,
based on the specified origin.
|
boolean |
equals(Object obj) |
boolean |
evictExclude()
Get evict exclude flag.
|
GridGgfsFileMap |
fileMap() |
void |
fileMap(GridGgfsFileMap fileMap) |
int |
hashCode() |
org.gridgain.grid.GridUuid |
id()
Gets this item ID.
|
boolean |
isDirectory() |
boolean |
isFile() |
long |
length()
Get file size.
|
Map<String,GridGgfsListingEntry> |
listing() |
org.gridgain.grid.GridUuid |
lockId()
Get lock ID.
|
long |
modificationTime() |
org.gridgain.grid.ggfs.GridGgfsPath |
path() |
Map<String,String> |
properties()
Get properties of the file.
|
void |
readExternal(ObjectInput in) |
String |
toString() |
void |
writeExternal(ObjectOutput out) |
public static final org.gridgain.grid.GridUuid ROOT_ID
public static final org.gridgain.grid.GridUuid TRASH_ID
public GridGgfsFileInfo()
Externalizable support.public GridGgfsFileInfo(GridGgfsFileInfo info)
info - An object to copy data info.public static GridGgfsFileInfo.Builder builder()
public static GridGgfsFileInfo.Builder builder(GridGgfsFileInfo origin)
origin - An origin for new instance, from which
the data will be copied.public org.gridgain.grid.GridUuid id()
public boolean isFile()
True if this is a file.public boolean isDirectory()
True if this is a directory.public long length()
public int blockSize()
public long blocksCount()
public long accessTime()
public long modificationTime()
public Map<String,GridGgfsListingEntry> listing()
@Nullable public org.gridgain.grid.GridUuid affinityKey()
null, usual
mapper procedure is used for block affinity detection.public void affinityKey(org.gridgain.grid.GridUuid affKey)
affKey - Affinity key used for single-node file collocation.public GridGgfsFileMap fileMap()
public void fileMap(GridGgfsFileMap fileMap)
fileMap - File affinity map.public Map<String,String> properties()
@Nullable public org.gridgain.grid.GridUuid lockId()
null if file is free of locks.public boolean evictExclude()
public org.gridgain.grid.ggfs.GridGgfsPath path()
public void writeExternal(ObjectOutput out) throws IOException
writeExternal in interface ExternalizableIOExceptionpublic void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
readExternal in interface ExternalizableIOExceptionClassNotFoundExceptionCopyright © 2014. All rights reserved.