com.hazelcast.instance
Class NodeShutdownHelper

java.lang.Object
  extended by com.hazelcast.instance.NodeShutdownHelper

public final class NodeShutdownHelper
extends Object

Helper methods for node shutdown scenarios.


Method Summary
static void shutdownNodeByFiringEvents(Node node, boolean terminate)
          Shutdowns a node by firing lifecycle events.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

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 LifecycleListeners 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.