Class HeartbeatEndpointTask.Builder
java.lang.Object
org.apache.hadoop.ozone.container.common.states.endpoint.HeartbeatEndpointTask.Builder
- Enclosing class:
HeartbeatEndpointTask
Builder class for HeartbeatEndpointTask.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()setConfig(org.apache.hadoop.hdds.conf.ConfigurationSource config) Sets the Config.setContext(StateContext stateContext) Sets the context.setDatanodeDetails(org.apache.hadoop.hdds.protocol.DatanodeDetails dnDetails) Sets the NodeID.setEndpointStateMachine(EndpointStateMachine rpcEndPoint) Sets the endpoint state machine.setLayoutVersionManager(org.apache.hadoop.hdds.upgrade.HDDSLayoutVersionManager lvm) Sets the LayoutVersionManager.
-
Constructor Details
-
Builder
public Builder()Constructs the builder class.
-
-
Method Details
-
setEndpointStateMachine
Sets the endpoint state machine.- Parameters:
rpcEndPoint- - Endpoint state machine.- Returns:
- Builder
-
setLayoutVersionManager
public HeartbeatEndpointTask.Builder setLayoutVersionManager(org.apache.hadoop.hdds.upgrade.HDDSLayoutVersionManager lvm) Sets the LayoutVersionManager.- Parameters:
lvm- config- Returns:
- Builder
-
setConfig
public HeartbeatEndpointTask.Builder setConfig(org.apache.hadoop.hdds.conf.ConfigurationSource config) Sets the Config.- Parameters:
config- - config- Returns:
- Builder
-
setDatanodeDetails
public HeartbeatEndpointTask.Builder setDatanodeDetails(org.apache.hadoop.hdds.protocol.DatanodeDetails dnDetails) Sets the NodeID.- Parameters:
dnDetails- - NodeID proto- Returns:
- Builder
-
setContext
Sets the context.- Parameters:
stateContext- - State context.- Returns:
- this.
-
build
-