1 5 package com.tc.objectserver.core.impl; 6 7 import com.tc.async.api.StageManager; 8 import com.tc.async.impl.ConfigurationContextImpl; 9 import com.tc.l2.api.L2Coordinator; 10 import com.tc.object.net.ChannelStats; 11 import com.tc.object.net.DSOChannelManager; 12 import com.tc.objectserver.api.ObjectManager; 13 import com.tc.objectserver.api.ObjectRequestManager; 14 import com.tc.objectserver.core.api.ServerConfigurationContext; 15 import com.tc.objectserver.handshakemanager.ServerClientHandshakeManager; 16 import com.tc.objectserver.l1.api.ClientStateManager; 17 import com.tc.objectserver.lockmanager.api.LockManager; 18 import com.tc.objectserver.persistence.api.ManagedObjectStore; 19 import com.tc.objectserver.tx.ServerTransactionManager; 20 import com.tc.objectserver.tx.TransactionBatchReaderFactory; 21 import com.tc.objectserver.tx.TransactionalObjectManager; 22 23 28 public class ServerConfigurationContextImpl extends ConfigurationContextImpl implements ServerConfigurationContext { 29 30 private final ObjectManager objectManager; 31 private final LockManager lockManager; 32 private final DSOChannelManager channelManager; 33 private final ClientStateManager clientStateManager; 34 private final ServerTransactionManager transactionManager; 35 private final ManagedObjectStore objectStore; 36 private final ServerClientHandshakeManager clientHandshakeManager; 37 private final ChannelStats channelStats; 38 private final TransactionBatchReaderFactory transactionBatchReaderFactory; 39 private final ObjectRequestManager objectRequestManager; 40 private final TransactionalObjectManager txnObjectManager; 41 private final L2Coordinator l2Coordinator; 42 43 public ServerConfigurationContextImpl(StageManager stageManager, ObjectManager objectManager, 44 ObjectRequestManager objectRequestManager, ManagedObjectStore objectStore, 45 LockManager lockManager, DSOChannelManager channelManager, 46 ClientStateManager clientStateManager, 47 ServerTransactionManager transactionManager, 48 TransactionalObjectManager txnObjectManager, 49 ServerClientHandshakeManager clientHandshakeManager, ChannelStats channelStats, 50 L2Coordinator l2Coordinator, 51 TransactionBatchReaderFactory transactionBatchReaderFactory) { 52 super(stageManager); 53 this.objectManager = objectManager; 54 this.objectRequestManager = objectRequestManager; 55 this.objectStore = objectStore; 56 this.lockManager = lockManager; 57 this.channelManager = channelManager; 58 this.clientStateManager = clientStateManager; 59 this.transactionManager = transactionManager; 60 this.txnObjectManager = txnObjectManager; 61 this.clientHandshakeManager = clientHandshakeManager; 62 this.channelStats = channelStats; 63 this.l2Coordinator = l2Coordinator; 64 this.transactionBatchReaderFactory = transactionBatchReaderFactory; 65 } 66 67 public L2Coordinator getL2Coordinator() { 68 return l2Coordinator; 69 } 70 71 public ObjectManager getObjectManager() { 72 return objectManager; 73 } 74 75 public LockManager getLockManager() { 76 return lockManager; 77 } 78 79 public DSOChannelManager getChannelManager() { 80 return channelManager; 81 } 82 83 public ClientStateManager getClientStateManager() { 84 return clientStateManager; 85 } 86 87 public ServerTransactionManager getTransactionManager() { 88 return transactionManager; 89 } 90 91 public TransactionalObjectManager getTransactionalObjectManager() { 92 return txnObjectManager; 93 } 94 95 public ManagedObjectStore getObjectStore() { 96 return this.objectStore; 97 } 98 99 public ServerClientHandshakeManager getClientHandshakeManager() { 100 return clientHandshakeManager; 101 } 102 103 public ChannelStats getChannelStats() { 104 return this.channelStats; 105 } 106 107 public TransactionBatchReaderFactory getTransactionBatchReaderFactory() { 108 return this.transactionBatchReaderFactory; 109 } 110 111 public ObjectRequestManager getObjectRequestManager() { 112 return this.objectRequestManager; 113 } 114 } | Popular Tags |