Interface FederationNamenodeContext
- All Known Implementing Classes:
MembershipState,MembershipStatePBImpl
public interface FederationNamenodeContext
Interface for a discovered NN and its current server endpoints.
-
Method Summary
Modifier and TypeMethodDescriptionlongThe update date.Get the Lifeline RPC server address of the namenode.Identifier for the namenode.Get the unique key representing the namenode.Identifier for the nameservice/namespace.Get the RPC server address of the namenode.Get the Service RPC server address of the namenode.getState()The current state of the namenode (active, standby, etc).Get the HTTP(s) server address of the namenode.Get the Scheme of web address of the namenode.
-
Method Details
-
getRpcAddress
String getRpcAddress()Get the RPC server address of the namenode.- Returns:
- RPC server address in the form of host:port.
-
getServiceAddress
String getServiceAddress()Get the Service RPC server address of the namenode.- Returns:
- Service RPC server address in the form of host:port.
-
getLifelineAddress
String getLifelineAddress()Get the Lifeline RPC server address of the namenode.- Returns:
- Lifeline RPC server address in the form of host:port.
-
getWebScheme
String getWebScheme()Get the Scheme of web address of the namenode.- Returns:
- Scheme of web address (HTTP/HTTPS).
-
getWebAddress
String getWebAddress()Get the HTTP(s) server address of the namenode.- Returns:
- HTTP(s) address in the form of host:port.
-
getNamenodeKey
String getNamenodeKey()Get the unique key representing the namenode.- Returns:
- Combination of the nameservice and the namenode IDs.
-
getNameserviceId
String getNameserviceId()Identifier for the nameservice/namespace.- Returns:
- Namenode nameservice identifier.
-
getNamenodeId
String getNamenodeId()Identifier for the namenode.- Returns:
- String
-
getState
FederationNamenodeServiceState getState()The current state of the namenode (active, standby, etc).- Returns:
- FederationNamenodeServiceState State of the namenode.
-
getDateModified
long getDateModified()The update date.- Returns:
- Long with the update date.
-