Class SingleNodeShutdownMetadata.Builder
org.elasticsearch.cluster.metadata.SingleNodeShutdownMetadata.Builder
- Enclosing class:
- SingleNodeShutdownMetadata
public static class SingleNodeShutdownMetadata.Builder
extends
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
nodeId)
reason)
setStartedAtMillis(long startedAtMillis)
Methods inherited from class java.lang.
, , , , , , , , , ,
-
Method Details
-
setNodeId
public nodeId)- Parameters:
nodeId
- The node ID this metadata refers to.- Returns:
- This builder.
-
setType
- Parameters:
type
- The type of shutdown.- Returns:
- This builder.
-
setReason
public reason)- 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.
-
build
-