|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.hadoop.hdfs.server.common.StorageInfo
@InterfaceAudience.Private public class StorageInfo
Common class for storage information. TODO namespaceID should be long and computed as hash(address + port)
Field Summary | |
---|---|
long |
cTime
|
int |
layoutVersion
|
int |
namespaceID
|
Constructor Summary | |
---|---|
StorageInfo()
|
|
StorageInfo(int layoutV,
int nsID,
long cT)
|
|
StorageInfo(StorageInfo from)
|
Method Summary | |
---|---|
long |
getCTime()
Creation time of the file system state. |
int |
getLayoutVersion()
Layout version of the storage data. |
int |
getNamespaceID()
Namespace id of the file system. |
void |
readFields(DataInput in)
|
void |
setStorageInfo(StorageInfo from)
|
void |
write(DataOutput out)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public int layoutVersion
public int namespaceID
public long cTime
Constructor Detail |
---|
public StorageInfo()
public StorageInfo(int layoutV, int nsID, long cT)
public StorageInfo(StorageInfo from)
Method Detail |
---|
public int getLayoutVersion()
public int getNamespaceID()
Assigned to the file system at formatting and never changes after that. Shared by all file system components.
public long getCTime()
Modified during upgrades.
public void setStorageInfo(StorageInfo from)
public void write(DataOutput out) throws IOException
write
in interface org.apache.hadoop.io.Writable
IOException
public void readFields(DataInput in) throws IOException
readFields
in interface org.apache.hadoop.io.Writable
IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |