Interface Node.Startup

Enclosing interface:
Node

public static interface Node.Startup
Represents a pending node start-up process.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Cancels the operation.
    Gets the Node starting up.
    default dev.getelements.elements.sdk.cluster.id.NodeId
    Gets the NodeId being started-up.
    void
    Performs any post-start operations.
    void
    Performs any pre-start operations.
    void
    start(dev.getelements.elements.rt.remote.InstanceConnectionService.InstanceBinding binding)
    Starts the service.
  • Method Details

    • getNode

      Node getNode()
      Gets the Node starting up.
      Returns:
    • getNodeId

      default dev.getelements.elements.sdk.cluster.id.NodeId getNodeId()
      Gets the NodeId being started-up.
      Returns:
    • preStart

      void preStart()
      Performs any pre-start operations.
    • start

      void start(dev.getelements.elements.rt.remote.InstanceConnectionService.InstanceBinding binding)
      Starts the service. This sets up any network listeners and begins accepting threads. Once the service is up and running, the service can begin to accept connections from clients.
      Parameters:
      binding - an InstanceConnectionService.InstanceBinding representing an open connection used by this Node to communicate
      Throws:
      IllegalStateException - if the node has already been started
    • postStart

      void postStart()
      Performs any post-start operations.
    • cancel

      void cancel()
      Cancels the operation.