Class RegisterEndpointTask

java.lang.Object
org.apache.hadoop.ozone.container.common.states.endpoint.RegisterEndpointTask
All Implemented Interfaces:
Callable<EndpointStateMachine.EndPointStates>

public final class RegisterEndpointTask extends Object implements Callable<EndpointStateMachine.EndPointStates>
Register a datanode with SCM.
  • Constructor Details

    • RegisterEndpointTask

      public RegisterEndpointTask(EndpointStateMachine rpcEndPoint, OzoneContainer ozoneContainer, StateContext context, org.apache.hadoop.hdds.upgrade.HDDSLayoutVersionManager versionManager)
      Creates a register endpoint task.
      Parameters:
      rpcEndPoint - - endpoint
      ozoneContainer - - container
      context - - State context
      versionManager - - layout version Manager
  • Method Details

    • getDatanodeDetails

      public org.apache.hadoop.hdds.protocol.DatanodeDetails getDatanodeDetails()
      Get the DatanodeDetails.
      Returns:
      DatanodeDetailsProto
    • setDatanodeDetails

      public void setDatanodeDetails(org.apache.hadoop.hdds.protocol.DatanodeDetails datanodeDetails)
      Set the contiainerNodeID Proto.
      Parameters:
      datanodeDetails - - Container Node ID.
    • call

      Computes a result, or throws an exception if unable to do so.
      Specified by:
      call in interface Callable<EndpointStateMachine.EndPointStates>
      Returns:
      computed result
      Throws:
      Exception - if unable to compute a result
    • newBuilder

      public static RegisterEndpointTask.Builder newBuilder()
      Returns a builder class for RegisterEndPoint task.
      Returns:
      Builder.