Package de.xima.fc.cluster
Class ClusterNodeStateManager
- java.lang.Object
-
- de.xima.fc.cluster.ClusterNodeStateManager
-
public class ClusterNodeStateManager extends Object
-
-
Constructor Summary
Constructors Constructor Description ClusterNodeStateManager()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
changeNodeState(ENodeState state)
static IClusterTopologyListener
getFailoverListener()
static ENodeState
getLocaleNodeState()
static ENodeType
getLocaleNodeType()
static IClusterMessageListener
getTakeoverMessageListener()
static void
handleClusterControllMessage(ClusterControllMessage message)
static void
handleNodeLeft(NodeLeftEvent event)
static void
handleNodeShutdown()
static void
handleNodeStartup()
static void
registerStateChangeListener(IBaseNotificationListener listener)
static void
release(NodeModel node)
static void
restart()
static void
retake(NodeModel node)
static void
standby()
static void
startup()
static void
takeover(NodeModel node)
-
-
-
Method Detail
-
registerStateChangeListener
public static void registerStateChangeListener(IBaseNotificationListener listener)
-
getFailoverListener
public static IClusterTopologyListener getFailoverListener()
-
getTakeoverMessageListener
public static IClusterMessageListener getTakeoverMessageListener()
-
handleClusterControllMessage
public static void handleClusterControllMessage(ClusterControllMessage message)
-
getLocaleNodeType
public static ENodeType getLocaleNodeType()
-
changeNodeState
public static void changeNodeState(ENodeState state)
-
getLocaleNodeState
public static ENodeState getLocaleNodeState()
-
handleNodeLeft
public static void handleNodeLeft(NodeLeftEvent event)
-
takeover
public static void takeover(NodeModel node)
-
retake
public static void retake(NodeModel node)
-
release
public static void release(NodeModel node)
-
startup
public static void startup()
-
standby
public static void standby()
-
restart
public static void restart() throws ClusterOpenException
- Throws:
ClusterOpenException
-
handleNodeShutdown
public static void handleNodeShutdown()
-
handleNodeStartup
public static void handleNodeStartup()
-
-