Interface NodeLifecycle
- All Known Implementing Classes:
MasterNodeLifecycle
,SimpleContext
public interface NodeLifecycle
Informs the underlying application, contained in the
Node
, of the various livecycle events.-
Method Summary
Modifier and TypeMethodDescriptiondefault void
nodePostStart
(Node node) Called after theNode
is up and accepting connections.default void
nodePostStop
(Node node) Called just after theNode
has stopped accepting connections.default void
nodePreStart
(Node node) Called before theNode
is up and accepting connectionsdefault void
nodePreStop
(Node node) Called just before theNode
will stop accepting connections and shut down
-
Method Details
-
nodePreStart
Called before theNode
is up and accepting connections- Parameters:
node
-
-
nodePostStart
Called after theNode
is up and accepting connections.- Parameters:
node
-
-
nodePreStop
Called just before theNode
will stop accepting connections and shut down- Parameters:
node
-
-
nodePostStop
Called just after theNode
has stopped accepting connections.- Parameters:
node
-
-