org.apache.hadoop.hdfs.server.protocol
Interface NodeRegistration

All Known Implementing Classes:
DatanodeRegistration, NamenodeRegistration

@InterfaceAudience.Private
public interface NodeRegistration

Generic class specifying information, which need to be sent to the name-node during the registration process.


Method Summary
 String getAddress()
          Get address of the server node.
 String getRegistrationID()
          Get registration ID of the server node.
 int getVersion()
          Get layout version of the server node.
 String toString()
           
 

Method Detail

getAddress

String getAddress()
Get address of the server node.

Returns:
hostname:portNumber

getRegistrationID

String getRegistrationID()
Get registration ID of the server node.


getVersion

int getVersion()
Get layout version of the server node.


toString

String toString()
Overrides:
toString in class Object


Copyright © 2009 The Apache Software Foundation