Class SingleNodeShutdownMetadata.Builder

org.elasticsearch.cluster.metadata.SingleNodeShutdownMetadata.Builder
Enclosing class:
SingleNodeShutdownMetadata

public static class SingleNodeShutdownMetadata.Builder extends
  • 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

      public SingleNodeShutdownMetadata.Builder setStartedAtMillis(long startedAtMillis)
      Parameters:
      startedAtMillis - The timestamp at which this shutdown was requested.
      Returns:
      This builder.
    • build