KickJava   Java API By Example, From Geeks To Geeks.

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


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
10 public class DummyStateManager implements StateManager {
11
12   public void fireStateChangedEvent(StateChangedEvent sce) {
13     // Nop
14
}
15
16   public boolean isActiveCoordinator() {
17     return true;
18   }
19
20   public void moveNodeToPassiveStandby(NodeID nodeID) {
21     throw new UnsupportedOperationException JavaDoc();
22   }
23
24   public void registerForStateChangeEvents(StateChangeListener listener) {
25     // Noop
26
}
27
28   public void startElection() {
29     // Nop
30
}
31
32 }
33
Popular Tags