01: /*
02: * All content copyright (c) 2003-2006 Terracotta, Inc., except as may otherwise be noted in a separate copyright
03: * notice. All rights reserved.
04: */
05: package com.tc.object;
06:
07: import com.tc.async.api.StageManager;
08: import com.tc.async.impl.ConfigurationContextImpl;
09: 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
14: ConfigurationContextImpl {
15:
16: public final static String LOCK_RESPONSE_STAGE = "lock_response_stage";
17: public final static String LOCK_RECALL_STAGE = "lock_recall_stage";
18: public final static String RECEIVE_ROOT_ID_STAGE = "receive_root_id_stage";
19: public final static String RECEIVE_OBJECT_STAGE = "receive_object_stage";
20: public final static String RECEIVE_TRANSACTION_STAGE = "receive_transaction_stage";
21: public final static String OBJECT_ID_REQUEST_RESPONSE_STAGE = "object_id_request_response_stage";
22: public final static String RECEIVE_TRANSACTION_COMPLETE_STAGE = "receive_transaction_complete_stage";
23: public final static String HYDRATE_MESSAGE_STAGE = "hydrate_message_stage";
24: public final static String BATCH_TXN_ACK_STAGE = "batch_txn_ack_stage";
25: public static final String CONFIG_MESSAGE_STAGE = "config_message_stage";
26: public static final String CLIENT_COORDINATION_STAGE = "client_coordination_stage";
27: public static final String JMXREMOTE_TUNNEL_STAGE = "jmxremote_tunnel_stage";
28: public static final String DMI_STAGE = "dmi_stage";
29: public static final String LOCK_STATISTICS_RESPONSE_STAGE = "lock_statistics_response_stage";
30:
31: private final ClientLockManager lockManager;
32: private final RemoteObjectManager remoteObjectManager;
33: private final ClientTransactionManager txManager;
34: private final ClientHandshakeManager clientHandshakeManager;
35:
36: public ClientConfigurationContext(StageManager stageManager,
37: ClientLockManager lockManager,
38: RemoteObjectManager remoteObjectManager,
39: ClientTransactionManager txManager,
40: ClientHandshakeManager clientHandshakeManager) {
41: super (stageManager);
42: this .lockManager = lockManager;
43: this .remoteObjectManager = remoteObjectManager;
44: this .txManager = txManager;
45: this .clientHandshakeManager = clientHandshakeManager;
46: }
47:
48: public ClientLockManager getLockManager() {
49: return lockManager;
50: }
51:
52: public RemoteObjectManager getObjectManager() {
53: return remoteObjectManager;
54: }
55:
56: public ClientTransactionManager getTransactionManager() {
57: return txManager;
58: }
59:
60: public ClientHandshakeManager getClientHandshakeManager() {
61: return clientHandshakeManager;
62: }
63:
64: }
|