001: /*
002: * All content copyright (c) 2003-2006 Terracotta, Inc., except as may otherwise be noted in a separate copyright
003: * notice. All rights reserved.
004: */
005: package com.tc.objectserver.core.impl;
006:
007: import com.tc.async.api.StageManager;
008: import com.tc.async.impl.ConfigurationContextImpl;
009: import com.tc.l2.api.L2Coordinator;
010: import com.tc.object.net.ChannelStats;
011: import com.tc.object.net.DSOChannelManager;
012: import com.tc.objectserver.api.ObjectManager;
013: import com.tc.objectserver.core.api.ServerConfigurationContext;
014: import com.tc.objectserver.handshakemanager.ServerClientHandshakeManager;
015: import com.tc.objectserver.l1.api.ClientStateManager;
016: import com.tc.objectserver.lockmanager.api.LockManager;
017: import com.tc.objectserver.persistence.api.ManagedObjectStore;
018: import com.tc.objectserver.tx.ServerTransactionManager;
019: import com.tc.objectserver.tx.TransactionBatchReaderFactory;
020: import com.tc.objectserver.tx.TransactionalObjectManager;
021:
022: /**
023: * App specific configuration context
024: *
025: * @author steve
026: */
027: public class ServerConfigurationContextImpl extends
028: ConfigurationContextImpl implements ServerConfigurationContext {
029:
030: private final ObjectManager objectManager;
031: private final LockManager lockManager;
032: private final DSOChannelManager channelManager;
033: private final ClientStateManager clientStateManager;
034: private final ServerTransactionManager transactionManager;
035: private final ManagedObjectStore objectStore;
036: private final ServerClientHandshakeManager clientHandshakeManager;
037: private final ChannelStats channelStats;
038: private final TransactionBatchReaderFactory transactionBatchReaderFactory;
039: private final TransactionalObjectManager txnObjectManager;
040: private final L2Coordinator l2Coordinator;
041:
042: public ServerConfigurationContextImpl(StageManager stageManager,
043: ObjectManager objectManager,
044: ManagedObjectStore objectStore, LockManager lockManager,
045: DSOChannelManager channelManager,
046: ClientStateManager clientStateManager,
047: ServerTransactionManager transactionManager,
048: TransactionalObjectManager txnObjectManager,
049: ServerClientHandshakeManager clientHandshakeManager,
050: ChannelStats channelStats, L2Coordinator l2Coordinator,
051: TransactionBatchReaderFactory transactionBatchReaderFactory) {
052: super (stageManager);
053: this .objectManager = objectManager;
054: this .objectStore = objectStore;
055: this .lockManager = lockManager;
056: this .channelManager = channelManager;
057: this .clientStateManager = clientStateManager;
058: this .transactionManager = transactionManager;
059: this .txnObjectManager = txnObjectManager;
060: this .clientHandshakeManager = clientHandshakeManager;
061: this .channelStats = channelStats;
062: this .l2Coordinator = l2Coordinator;
063: this .transactionBatchReaderFactory = transactionBatchReaderFactory;
064: }
065:
066: public L2Coordinator getL2Coordinator() {
067: return l2Coordinator;
068: }
069:
070: public ObjectManager getObjectManager() {
071: return objectManager;
072: }
073:
074: public LockManager getLockManager() {
075: return lockManager;
076: }
077:
078: public DSOChannelManager getChannelManager() {
079: return channelManager;
080: }
081:
082: public ClientStateManager getClientStateManager() {
083: return clientStateManager;
084: }
085:
086: public ServerTransactionManager getTransactionManager() {
087: return transactionManager;
088: }
089:
090: public TransactionalObjectManager getTransactionalObjectManager() {
091: return txnObjectManager;
092: }
093:
094: public ManagedObjectStore getObjectStore() {
095: return this .objectStore;
096: }
097:
098: public ServerClientHandshakeManager getClientHandshakeManager() {
099: return clientHandshakeManager;
100: }
101:
102: public ChannelStats getChannelStats() {
103: return this .channelStats;
104: }
105:
106: public TransactionBatchReaderFactory getTransactionBatchReaderFactory() {
107: return this.transactionBatchReaderFactory;
108: }
109:
110: }
|