KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > tc > l2 > state > StateManager


1 /*
2  * All content copyright (c) 2003-2007 Terracotta, Inc., except as may otherwise be noted in a separate copyright
3  * notice. All rights reserved.
4  */

5 package com.tc.l2.state;
6
7 import com.tc.l2.context.StateChangedEvent;
8 import com.tc.net.groups.NodeID;
9 import com.tc.util.State;
10
11 public interface StateManager {
12
13   public static final State ACTIVE_COORDINATOR = new State("ACTIVE-COORDINATOR");
14   public static final State PASSIVE_UNINTIALIZED = new State("PASSIVE-UNINITIALIZED");
15   public static final State PASSIVE_STANDBY = new State("PASSIVE-STANDBY");
16   public static final State START_STATE = new State("START-STATE");
17
18   public void startElection();
19
20   public void registerForStateChangeEvents(StateChangeListener listener);
21
22   public void fireStateChangedEvent(StateChangedEvent sce);
23
24   public boolean isActiveCoordinator();
25
26   public void moveNodeToPassiveStandby(NodeID nodeID);
27   
28 }
29
Popular Tags