Interface Node.Startup
- Enclosing interface:
Node
public static interface Node.Startup
Represents a pending node start-up process.
-
Method Summary
Modifier and TypeMethodDescriptionvoidcancel()Cancels the operation.getNode()Gets theNodestarting up.default dev.getelements.elements.sdk.cluster.id.NodeIdGets theNodeIdbeing started-up.voidPerforms any post-start operations.voidpreStart()Performs any pre-start operations.voidstart(dev.getelements.elements.rt.remote.InstanceConnectionService.InstanceBinding binding) Starts the service.
-
Method Details
-
getNode
Node getNode()Gets theNodestarting up.- Returns:
-
getNodeId
default dev.getelements.elements.sdk.cluster.id.NodeId getNodeId()Gets theNodeIdbeing 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- anInstanceConnectionService.InstanceBindingrepresenting an open connection used by thisNodeto communicate- Throws:
IllegalStateException- if the node has already been started
-
postStart
void postStart()Performs any post-start operations. -
cancel
void cancel()Cancels the operation.
-