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.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classBuilder class for RegisterEndPoint task. -
Constructor Summary
ConstructorsConstructorDescriptionRegisterEndpointTask(EndpointStateMachine rpcEndPoint, OzoneContainer ozoneContainer, StateContext context, org.apache.hadoop.hdds.upgrade.HDDSLayoutVersionManager versionManager) Creates a register endpoint task. -
Method Summary
Modifier and TypeMethodDescriptioncall()Computes a result, or throws an exception if unable to do so.org.apache.hadoop.hdds.protocol.DatanodeDetailsGet the DatanodeDetails.static RegisterEndpointTask.BuilderReturns a builder class for RegisterEndPoint task.voidsetDatanodeDetails(org.apache.hadoop.hdds.protocol.DatanodeDetails datanodeDetails) Set the contiainerNodeID Proto.
-
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- - endpointozoneContainer- - containercontext- - State contextversionManager- - 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:
callin interfaceCallable<EndpointStateMachine.EndPointStates>- Returns:
- computed result
- Throws:
Exception- if unable to compute a result
-
newBuilder
Returns a builder class for RegisterEndPoint task.- Returns:
- Builder.
-