org.apache.hadoop.hdfs.server.protocol
Class NamespaceInfo

java.lang.Object
  extended by org.apache.hadoop.hdfs.server.common.StorageInfo
      extended by org.apache.hadoop.hdfs.server.protocol.NamespaceInfo
All Implemented Interfaces:
org.apache.hadoop.io.Writable

@InterfaceAudience.Private
@InterfaceStability.Evolving
public class NamespaceInfo
extends StorageInfo

NamespaceInfo is returned by the name-node in reply to a data-node handshake.


Field Summary
 
Fields inherited from class org.apache.hadoop.hdfs.server.common.StorageInfo
cTime, layoutVersion, namespaceID
 
Constructor Summary
NamespaceInfo()
           
NamespaceInfo(int nsID, long cT, int duVersion)
           
 
Method Summary
 String getBuildVersion()
           
 int getDistributedUpgradeVersion()
           
 void readFields(DataInput in)
           
 void write(DataOutput out)
           
 
Methods inherited from class org.apache.hadoop.hdfs.server.common.StorageInfo
getCTime, getLayoutVersion, getNamespaceID, setStorageInfo
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NamespaceInfo

public NamespaceInfo()

NamespaceInfo

public NamespaceInfo(int nsID,
                     long cT,
                     int duVersion)
Method Detail

getBuildVersion

public String getBuildVersion()

getDistributedUpgradeVersion

public int getDistributedUpgradeVersion()

write

public void write(DataOutput out)
           throws IOException
Specified by:
write in interface org.apache.hadoop.io.Writable
Overrides:
write in class StorageInfo
Throws:
IOException

readFields

public void readFields(DataInput in)
                throws IOException
Specified by:
readFields in interface org.apache.hadoop.io.Writable
Overrides:
readFields in class StorageInfo
Throws:
IOException


Copyright © 2009 The Apache Software Foundation