Class SingleNodeShutdownMetadata.Builder
java.lang.Object
org.elasticsearch.cluster.metadata.SingleNodeShutdownMetadata.Builder
- Enclosing class:
- SingleNodeShutdownMetadata
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
setAllocationDelay
(TimeValue allocationDelay) setNodeSeen
(boolean nodeSeen) setStartedAtMillis
(long startedAtMillis) setTargetNodeName
(String targetNodeName)
-
Method Details
-
setNodeId
- Parameters:
nodeId
- The node ID this metadata refers to.- Returns:
- This builder.
-
setType
- Parameters:
type
- The type of shutdown.- Returns:
- This builder.
-
setReason
- Parameters:
reason
- The reason for the shutdown. An arbitrary string provided by the user.- Returns:
- This builder.
-
setStartedAtMillis
- Parameters:
startedAtMillis
- The timestamp at which this shutdown was requested.- Returns:
- This builder.
-
setNodeSeen
- Parameters:
nodeSeen
- Whether or not the node has been seen since the shutdown was registered.- Returns:
- This builder.
-
setAllocationDelay
- Parameters:
allocationDelay
- The amount of time shard reallocation should be delayed while this node is offline.- Returns:
- This builder.
-
setTargetNodeName
- Parameters:
targetNodeName
- The name of the node which should be used to replcae this one. Only valid if the shutdown type is REPLACE.- Returns:
- This builder.
-
build
-