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.ha;
06:
07: import com.tc.l2.api.L2Coordinator;
08: import com.tc.l2.api.ReplicatedClusterStateManager;
09: import com.tc.l2.objectserver.NonReplicatedObjectManager;
10: import com.tc.l2.objectserver.NonReplicatedTransactionManager;
11: import com.tc.l2.objectserver.ReplicatedObjectManager;
12: import com.tc.l2.objectserver.ReplicatedTransactionManager;
13: import com.tc.l2.state.DummyStateManager;
14: import com.tc.l2.state.StateManager;
15: import com.tc.net.groups.GroupManager;
16: import com.tc.net.groups.Node;
17: import com.tc.net.groups.SingleNodeGroupManager;
18:
19: public class L2HADisabledCooridinator implements L2Coordinator {
20:
21: private GroupManager groupManager = new SingleNodeGroupManager();
22: private ReplicatedClusterStateManager clusterStateMgr = new NonReplicatedClusterStateManager();
23: private ReplicatedObjectManager replicatedObjMgr = new NonReplicatedObjectManager();
24: private ReplicatedTransactionManager replicatedTxnMgr = new NonReplicatedTransactionManager();
25: private StateManager stateMgr = new DummyStateManager();
26:
27: public GroupManager getGroupManager() {
28: return groupManager;
29: }
30:
31: public ReplicatedClusterStateManager getReplicatedClusterStateManager() {
32: return clusterStateMgr;
33: }
34:
35: public ReplicatedObjectManager getReplicatedObjectManager() {
36: return replicatedObjMgr;
37: }
38:
39: public StateManager getStateManager() {
40: return stateMgr;
41: }
42:
43: public void start(Node this Node, Node[] allNodes) {
44: // Nop
45: }
46:
47: public ReplicatedTransactionManager getReplicatedTransactionManager() {
48: return replicatedTxnMgr;
49: }
50:
51: }
|