KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > tc > l2 > ha > L2HADisabledCooridinator


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.ha;
6
7 import com.tc.l2.api.L2Coordinator;
8 import com.tc.l2.api.ReplicatedClusterStateManager;
9 import com.tc.l2.objectserver.NonReplicatedObjectManager;
10 import com.tc.l2.objectserver.ReplicatedObjectManager;
11 import com.tc.l2.state.DummyStateManager;
12 import com.tc.l2.state.StateManager;
13 import com.tc.net.groups.GroupManager;
14 import com.tc.net.groups.SingleNodeGroupManager;
15
16 public class L2HADisabledCooridinator implements L2Coordinator {
17
18   private GroupManager groupManager = new SingleNodeGroupManager();
19   private ReplicatedClusterStateManager clusterStateMgr = new NonReplicatedClusterStateManager();
20   private ReplicatedObjectManager replicatedObjMgr = new NonReplicatedObjectManager();
21   private StateManager stateMgr = new DummyStateManager();
22
23   public GroupManager getGroupManager() {
24     return groupManager;
25   }
26
27   public ReplicatedClusterStateManager getReplicatedClusterStateManager() {
28     return clusterStateMgr;
29   }
30
31   public ReplicatedObjectManager getReplicatedObjectManager() {
32     return replicatedObjMgr;
33   }
34
35   public StateManager getStateManager() {
36     return stateMgr;
37   }
38
39   public void start() {
40     // Nop
41
}
42
43 }
44
Popular Tags