KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > tc > object > ClientConfigurationContext


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

5 package com.tc.object;
6
7 import com.tc.async.api.StageManager;
8 import com.tc.async.impl.ConfigurationContextImpl;
9 import com.tc.object.handshakemanager.ClientHandshakeManager;
10 import com.tc.object.lockmanager.api.ClientLockManager;
11 import com.tc.object.tx.ClientTransactionManager;
12
13 public class ClientConfigurationContext extends ConfigurationContextImpl {
14
15   public final static String JavaDoc LOCK_RESPONSE_STAGE = "lock_response_stage";
16   public final static String JavaDoc LOCK_RECALL_STAGE = "lock_recall_stage";
17   public final static String JavaDoc RECEIVE_ROOT_ID_STAGE = "receive_root_id_stage";
18   public final static String JavaDoc RECEIVE_OBJECT_STAGE = "receive_object_stage";
19   public final static String JavaDoc RECEIVE_TRANSACTION_STAGE = "receive_transaction_stage";
20   public final static String JavaDoc OBJECT_ID_REQUEST_RESPONSE_STAGE = "object_id_request_response_stage";
21   public final static String JavaDoc RECEIVE_TRANSACTION_COMPLETE_STAGE = "receive_transaction_complete_stage";
22   public final static String JavaDoc HYDRATE_MESSAGE_STAGE = "hydrate_message_stage";
23   public final static String JavaDoc BATCH_TXN_ACK_STAGE = "batch_txn_ack_stage";
24   public static final String JavaDoc CONFIG_MESSAGE_STAGE = "config_message_stage";
25   public static final String JavaDoc CLIENT_COORDINATION_STAGE = "client_coordination_stage";
26   public static final String JavaDoc JMXREMOTE_TUNNEL_STAGE = "jmxremote_tunnel_stage";
27   public static final String JavaDoc DMI_STAGE = "dmi_stage";
28
29   private final ClientLockManager lockManager;
30   private final RemoteObjectManager remoteObjectManager;
31   private final ClientTransactionManager txManager;
32   private final ClientHandshakeManager clientHandshakeManager;
33
34   public ClientConfigurationContext(StageManager stageManager, ClientLockManager lockManager,
35                                     RemoteObjectManager remoteObjectManager, ClientTransactionManager txManager,
36                                     ClientHandshakeManager clientHandshakeManager) {
37     super(stageManager);
38     this.lockManager = lockManager;
39     this.remoteObjectManager = remoteObjectManager;
40     this.txManager = txManager;
41     this.clientHandshakeManager = clientHandshakeManager;
42   }
43
44   public ClientLockManager getLockManager() {
45     return lockManager;
46   }
47
48   public RemoteObjectManager getObjectManager() {
49     return remoteObjectManager;
50   }
51
52   public ClientTransactionManager getTransactionManager() {
53     return txManager;
54   }
55
56   public ClientHandshakeManager getClientHandshakeManager() {
57     return clientHandshakeManager;
58   }
59
60 }
Popular Tags