Class DisabledNameservicePBImpl

All Implemented Interfaces:
Comparable<BaseRecord>, PBRecord

public class DisabledNameservicePBImpl extends DisabledNameservice implements PBRecord
Protobuf implementation of the DisabledNameservice record.
  • Constructor Details

    • DisabledNameservicePBImpl

      public DisabledNameservicePBImpl()
    • DisabledNameservicePBImpl

      public DisabledNameservicePBImpl(org.apache.hadoop.hdfs.federation.protocol.proto.HdfsServerFederationProtos.DisabledNameserviceRecordProto proto)
  • Method Details

    • getProto

      public org.apache.hadoop.hdfs.federation.protocol.proto.HdfsServerFederationProtos.DisabledNameserviceRecordProto getProto()
      Description copied from interface: PBRecord
      Get the protocol for the record.
      Specified by:
      getProto in interface PBRecord
      Returns:
      The protocol for this record.
    • setProto

      public void setProto(org.apache.hadoop.thirdparty.protobuf.Message proto)
      Description copied from interface: PBRecord
      Set the protocol for the record.
      Specified by:
      setProto in interface PBRecord
      Parameters:
      proto - Protocol for this record.
    • readInstance

      public void readInstance(String base64String) throws IOException
      Description copied from interface: PBRecord
      Populate this record with serialized data.
      Specified by:
      readInstance in interface PBRecord
      Parameters:
      base64String - Serialized data in base64.
      Throws:
      IOException - If it cannot read the data.
    • getNameserviceId

      public String getNameserviceId()
      Description copied from class: DisabledNameservice
      Get the identifier of the name service to disable.
      Specified by:
      getNameserviceId in class DisabledNameservice
      Returns:
      Identifier of the name service to disable.
    • setNameserviceId

      public void setNameserviceId(String nameServiceId)
      Description copied from class: DisabledNameservice
      Set the identifier of the name service to disable.
      Specified by:
      setNameserviceId in class DisabledNameservice
      Parameters:
      nameServiceId - Identifier of the name service to disable.
    • setDateModified

      public void setDateModified(long time)
      Description copied from class: BaseRecord
      Set the modification time for the record.
      Specified by:
      setDateModified in class BaseRecord
      Parameters:
      time - Modification time of the record.
    • getDateModified

      public long getDateModified()
      Description copied from class: BaseRecord
      Get the modification time for the record.
      Specified by:
      getDateModified in class BaseRecord
      Returns:
      Modification time of the record.
    • setDateCreated

      public void setDateCreated(long time)
      Description copied from class: BaseRecord
      Set the creation time for the record.
      Specified by:
      setDateCreated in class BaseRecord
      Parameters:
      time - Creation time of the record.
    • getDateCreated

      public long getDateCreated()
      Description copied from class: BaseRecord
      Get the creation time for the record.
      Specified by:
      getDateCreated in class BaseRecord
      Returns:
      Creation time of the record