01: /*
02: * All content copyright (c) 2003-2007 Terracotta, Inc., except as may otherwise be noted in a separate copyright
03: * notice. All rights reserved.
04: */
05: package com.tc.l2.state;
06:
07: import com.tc.l2.context.StateChangedEvent;
08: import com.tc.l2.msg.L2StateMessage;
09: import com.tc.net.groups.NodeID;
10: import com.tc.net.groups.NodeIDImpl;
11:
12: public class DummyStateManager implements StateManager {
13:
14: public void fireStateChangedEvent(StateChangedEvent sce) {
15: // Nop
16: }
17:
18: public boolean isActiveCoordinator() {
19: return true;
20: }
21:
22: public void moveNodeToPassiveStandby(NodeID nodeID) {
23: throw new UnsupportedOperationException();
24: }
25:
26: public void registerForStateChangeEvents(
27: StateChangeListener listener) {
28: // Noop
29: }
30:
31: public void startElection() {
32: // Nop
33: }
34:
35: public void publishActiveState(NodeID nodeID) {
36: // Nop
37: }
38:
39: public void startElectionIfNecessary(NodeID disconnectedNode) {
40: // Nop
41: }
42:
43: public void moveToPassiveStandbyState() {
44: throw new UnsupportedOperationException();
45: }
46:
47: public void handleClusterStateMessage(L2StateMessage clusterMsg) {
48: throw new UnsupportedOperationException();
49: }
50:
51: public NodeID getActiveNodeID() {
52: return NodeIDImpl.NULL_ID;
53: }
54:
55: }
|