|
||||||||||
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
org.apache.hadoop.hdfs.server.protocol.NamenodeRegistration
@InterfaceAudience.Private @InterfaceStability.Evolving public class NamenodeRegistration
Information sent by a subordinate name-node to the active name-node during the registration process.
Field Summary |
---|
Fields inherited from class org.apache.hadoop.hdfs.server.common.StorageInfo |
---|
cTime, layoutVersion, namespaceID |
Constructor Summary | |
---|---|
NamenodeRegistration()
|
|
NamenodeRegistration(String address,
String httpAddress,
StorageInfo storageInfo,
HdfsConstants.NamenodeRole role,
long checkpointTime)
|
Method Summary | |
---|---|
String |
getAddress()
Get address of the server node. |
long |
getCheckpointTime()
Get the age of the image. |
String |
getRegistrationID()
Get registration ID of the server node. |
HdfsConstants.NamenodeRole |
getRole()
Get name-node role. |
int |
getVersion()
Get layout version of the server node. |
boolean |
isRole(HdfsConstants.NamenodeRole that)
|
void |
readFields(DataInput in)
|
String |
toString()
|
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, wait, wait, wait |
Constructor Detail |
---|
public NamenodeRegistration()
public NamenodeRegistration(String address, String httpAddress, StorageInfo storageInfo, HdfsConstants.NamenodeRole role, long checkpointTime)
Method Detail |
---|
public String getAddress()
NodeRegistration
getAddress
in interface NodeRegistration
public String getRegistrationID()
NodeRegistration
getRegistrationID
in interface NodeRegistration
public int getVersion()
NodeRegistration
getVersion
in interface NodeRegistration
public String toString()
toString
in interface NodeRegistration
toString
in class Object
public HdfsConstants.NamenodeRole getRole()
public boolean isRole(HdfsConstants.NamenodeRole that)
public long getCheckpointTime()
public void write(DataOutput out) throws IOException
write
in interface org.apache.hadoop.io.Writable
write
in class StorageInfo
IOException
public void readFields(DataInput in) throws IOException
readFields
in interface org.apache.hadoop.io.Writable
readFields
in class StorageInfo
IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |