java.lang.Comparable<BaseRecord>, FederationNamenodeContext, PBRecordpublic class MembershipStatePBImpl extends MembershipState implements PBRecord
ERROR_MSG_NO_BP_SPECIFIED, ERROR_MSG_NO_NS_SPECIFIED, ERROR_MSG_NO_RPC_ADDR_SPECIFIED, ERROR_MSG_NO_WEB_ADDR_SPECIFIED, NAME_COMPARATORERROR_MSG_CREATION_TIME_NEGATIVE, ERROR_MSG_MODIFICATION_TIME_NEGATIVE| Constructor | Description |
|---|---|
MembershipStatePBImpl() |
|
MembershipStatePBImpl(org.apache.hadoop.hdfs.federation.protocol.proto.HdfsServerFederationProtos.NamenodeMembershipRecordProto proto) |
| Modifier and Type | Method | Description |
|---|---|---|
java.lang.String |
getBlockPoolId() |
|
java.lang.String |
getClusterId() |
|
long |
getDateCreated() |
Get the creation time for the record.
|
long |
getDateModified() |
Get the modification time for the record.
|
boolean |
getIsSafeMode() |
|
long |
getLastContact() |
|
java.lang.String |
getLifelineAddress() |
Get the Lifeline RPC server address of the namenode.
|
java.lang.String |
getNamenodeId() |
Identifier for the namenode.
|
java.lang.String |
getNameserviceId() |
Identifier for the nameservice/namespace.
|
org.apache.hadoop.hdfs.federation.protocol.proto.HdfsServerFederationProtos.NamenodeMembershipRecordProto |
getProto() |
Get the protocol for the record.
|
java.lang.String |
getRouterId() |
|
java.lang.String |
getRpcAddress() |
Get the RPC server address of the namenode.
|
java.lang.String |
getServiceAddress() |
Get the Service RPC server address of the namenode.
|
FederationNamenodeServiceState |
getState() |
The current state of the namenode (active, standby, etc).
|
MembershipStats |
getStats() |
|
java.lang.String |
getWebAddress() |
Get the HTTP(s) server address of the namenode.
|
java.lang.String |
getWebScheme() |
Get the Scheme of web address of the namenode.
|
void |
readInstance(java.lang.String base64String) |
Populate this record with serialized data.
|
void |
setBlockPoolId(java.lang.String blockPoolId) |
|
void |
setClusterId(java.lang.String clusterId) |
|
void |
setDateCreated(long time) |
Set the creation time for the record.
|
void |
setDateModified(long time) |
Set the modification time for the record.
|
void |
setIsSafeMode(boolean isSafeMode) |
|
void |
setLastContact(long contact) |
|
void |
setLifelineAddress(java.lang.String lifelineAddress) |
|
void |
setNamenodeId(java.lang.String namenodeId) |
|
void |
setNameserviceId(java.lang.String nameserviceId) |
|
void |
setProto(org.apache.hadoop.thirdparty.protobuf.Message proto) |
Set the protocol for the record.
|
void |
setRouterId(java.lang.String routerId) |
|
void |
setRpcAddress(java.lang.String rpcAddress) |
|
void |
setServiceAddress(java.lang.String serviceAddress) |
|
void |
setState(FederationNamenodeServiceState state) |
|
void |
setStats(MembershipStats stats) |
|
void |
setWebAddress(java.lang.String webAddress) |
|
void |
setWebScheme(java.lang.String webScheme) |
checkExpired, compareNameTo, compareTo, getDeletionMs, getExpirationMs, getNamenodeKey, getNamenodeKey, getPrimaryKeys, isAvailable, isExpired, like, newInstance, newInstance, overrideState, setDeletionMs, setExpirationMs, toString, validateequals, generateMashupKey, getPrimaryKey, hashCode, hasOtherFields, init, shouldBeDeletedpublic MembershipStatePBImpl()
public MembershipStatePBImpl(org.apache.hadoop.hdfs.federation.protocol.proto.HdfsServerFederationProtos.NamenodeMembershipRecordProto proto)
public org.apache.hadoop.hdfs.federation.protocol.proto.HdfsServerFederationProtos.NamenodeMembershipRecordProto getProto()
PBRecordpublic void setProto(org.apache.hadoop.thirdparty.protobuf.Message proto)
PBRecordpublic void readInstance(java.lang.String base64String)
throws java.io.IOException
PBRecordreadInstance in interface PBRecordbase64String - Serialized data in base64.java.io.IOException - If it cannot read the data.public void setRouterId(java.lang.String routerId)
setRouterId in class MembershipStatepublic void setNameserviceId(java.lang.String nameserviceId)
setNameserviceId in class MembershipStatepublic void setNamenodeId(java.lang.String namenodeId)
setNamenodeId in class MembershipStatepublic void setWebAddress(java.lang.String webAddress)
setWebAddress in class MembershipStatepublic void setRpcAddress(java.lang.String rpcAddress)
setRpcAddress in class MembershipStatepublic void setServiceAddress(java.lang.String serviceAddress)
setServiceAddress in class MembershipStatepublic void setLifelineAddress(java.lang.String lifelineAddress)
setLifelineAddress in class MembershipStatepublic void setIsSafeMode(boolean isSafeMode)
setIsSafeMode in class MembershipStatepublic void setClusterId(java.lang.String clusterId)
setClusterId in class MembershipStatepublic void setBlockPoolId(java.lang.String blockPoolId)
setBlockPoolId in class MembershipStatepublic void setState(FederationNamenodeServiceState state)
setState in class MembershipStatepublic void setWebScheme(java.lang.String webScheme)
setWebScheme in class MembershipStatepublic java.lang.String getRouterId()
getRouterId in class MembershipStatepublic java.lang.String getNameserviceId()
FederationNamenodeContextgetNameserviceId in interface FederationNamenodeContextgetNameserviceId in class MembershipStatepublic java.lang.String getNamenodeId()
FederationNamenodeContextgetNamenodeId in interface FederationNamenodeContextgetNamenodeId in class MembershipStatepublic java.lang.String getClusterId()
getClusterId in class MembershipStatepublic java.lang.String getBlockPoolId()
getBlockPoolId in class MembershipStatepublic java.lang.String getRpcAddress()
FederationNamenodeContextgetRpcAddress in interface FederationNamenodeContextgetRpcAddress in class MembershipStatepublic java.lang.String getServiceAddress()
FederationNamenodeContextgetServiceAddress in interface FederationNamenodeContextgetServiceAddress in class MembershipStatepublic java.lang.String getWebAddress()
FederationNamenodeContextgetWebAddress in interface FederationNamenodeContextgetWebAddress in class MembershipStatepublic java.lang.String getLifelineAddress()
FederationNamenodeContextgetLifelineAddress in interface FederationNamenodeContextgetLifelineAddress in class MembershipStatepublic boolean getIsSafeMode()
getIsSafeMode in class MembershipStatepublic FederationNamenodeServiceState getState()
FederationNamenodeContextgetState in interface FederationNamenodeContextgetState in class MembershipStatepublic java.lang.String getWebScheme()
FederationNamenodeContextgetWebScheme in interface FederationNamenodeContextgetWebScheme in class MembershipStatepublic void setStats(MembershipStats stats)
setStats in class MembershipStatepublic MembershipStats getStats()
getStats in class MembershipStatepublic void setLastContact(long contact)
setLastContact in class MembershipStatepublic long getLastContact()
getLastContact in class MembershipStatepublic void setDateModified(long time)
BaseRecordsetDateModified in class BaseRecordtime - Modification time of the record.public long getDateModified()
BaseRecordgetDateModified in interface FederationNamenodeContextgetDateModified in class BaseRecordpublic void setDateCreated(long time)
BaseRecordsetDateCreated in class BaseRecordtime - Creation time of the record.public long getDateCreated()
BaseRecordgetDateCreated in class BaseRecordCopyright © 2008–2025 Apache Software Foundation. All rights reserved.