01: /*
02: * All content copyright (c) 2003-2006 Terracotta, Inc., except as may otherwise be noted in a separate copyright notice. All rights reserved.
03: */
04: package com.tc.objectserver.core.impl;
05:
06: import com.tc.object.net.ChannelStats;
07: import com.tc.object.net.DSOChannelManagerMBean;
08: import com.tc.objectserver.DSOApplicationEventsMBean;
09: import com.tc.objectserver.api.ObjectInstanceMonitorMBean;
10: import com.tc.objectserver.api.ObjectManagerMBean;
11: import com.tc.objectserver.core.api.DSOGlobalServerStats;
12: import com.tc.objectserver.lockmanager.api.LockManagerMBean;
13: import com.tc.objectserver.tx.ServerTransactionManagerMBean;
14:
15: public class ServerManagementContext {
16:
17: private final ServerTransactionManagerMBean txnMgr;
18: private final ObjectManagerMBean objMgr;
19: private final DSOChannelManagerMBean channelMgr;
20: private final DSOGlobalServerStats serverStats;
21: private final ChannelStats channelStats;
22: private final LockManagerMBean lockMgr;
23: private final ObjectInstanceMonitorMBean instanceMonitor;
24: private final DSOApplicationEventsMBean appEvents;
25:
26: public ServerManagementContext(
27: ServerTransactionManagerMBean txnMgr,
28: ObjectManagerMBean objMgr, LockManagerMBean lockMgr,
29: DSOChannelManagerMBean channelMgr,
30: DSOGlobalServerStats serverStats,
31: ChannelStats channelStats,
32: ObjectInstanceMonitorMBean instanceMonitor,
33: DSOApplicationEventsMBean appEvents) {
34: this .txnMgr = txnMgr;
35: this .objMgr = objMgr;
36: this .lockMgr = lockMgr;
37: this .channelMgr = channelMgr;
38: this .serverStats = serverStats;
39: this .channelStats = channelStats;
40: this .instanceMonitor = instanceMonitor;
41: this .appEvents = appEvents;
42: }
43:
44: public ServerTransactionManagerMBean getTransactionManager() {
45: return this .txnMgr;
46: }
47:
48: public ObjectManagerMBean getObjectManager() {
49: return this .objMgr;
50: }
51:
52: public DSOChannelManagerMBean getChannelManager() {
53: return this .channelMgr;
54: }
55:
56: public DSOGlobalServerStats getServerStats() {
57: return this .serverStats;
58: }
59:
60: public ChannelStats getChannelStats() {
61: return this .channelStats;
62: }
63:
64: public LockManagerMBean getLockManager() {
65: return this .lockMgr;
66: }
67:
68: public ObjectInstanceMonitorMBean getInstanceMonitor() {
69: return instanceMonitor;
70: }
71:
72: public DSOApplicationEventsMBean getDSOAppEventsMBean() {
73: return this.appEvents;
74: }
75: }
|