com.hazelcast.instance
Class NodeShutdownHelper
java.lang.Object
com.hazelcast.instance.NodeShutdownHelper
public final class NodeShutdownHelper
- extends Object
Helper methods for node shutdown scenarios.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
shutdownNodeByFiringEvents
public static void shutdownNodeByFiringEvents(Node node,
boolean terminate)
- Shutdowns a node by firing lifecycle events. Do not call this method for every node shutdown scenario
since
LifecycleListener
s will end up more than one
LifecycleEvent.LifecycleState.SHUTTING_DOWN
or LifecycleEvent.LifecycleState.SHUTDOWN
events.
- Parameters:
node
- Node to shutdown.terminate
- false
for graceful shutdown, true
for terminate (un-graceful shutdown)
Copyright © 2015 Hazelcast, Inc.. All Rights Reserved.