Package org.infinispan.io
Class GridFile.Metadata
java.lang.Object
org.infinispan.io.GridFile.Metadata
- All Implemented Interfaces:
Externalizable
,Serializable
- Enclosing class:
- GridFile
- See Also:
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
int
long
boolean
boolean
isFile()
void
void
setLength
(int length) void
setModificationTime
(long modificationTime) toString()
void
-
Field Details
-
FILE
public static final byte FILE- See Also:
-
DIR
public static final byte DIR- See Also:
-
-
Constructor Details
-
Metadata
public Metadata() -
Metadata
public Metadata(int length, long modificationTime, int chunkSize, byte flags)
-
-
Method Details
-
getLength
public int getLength() -
setLength
public void setLength(int length) -
getModificationTime
public long getModificationTime() -
setModificationTime
public void setModificationTime(long modificationTime) -
getChunkSize
public int getChunkSize() -
isFile
public boolean isFile() -
isDirectory
public boolean isDirectory() -
toString
-
writeExternal
- Specified by:
writeExternal
in interfaceExternalizable
- Throws:
IOException
-
readExternal
- Specified by:
readExternal
in interfaceExternalizable
- Throws:
IOException
ClassNotFoundException
-