KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > tc > objectserver > core > impl > ServerManagementContext


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

4 package com.tc.objectserver.core.impl;
5
6 import com.tc.object.net.ChannelStats;
7 import com.tc.object.net.DSOChannelManagerMBean;
8 import com.tc.objectserver.DSOApplicationEventsMBean;
9 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(ServerTransactionManagerMBean txnMgr, ObjectManagerMBean objMgr,
27                                  LockManagerMBean lockMgr, DSOChannelManagerMBean channelMgr,
28                                  DSOGlobalServerStats serverStats, ChannelStats channelStats,
29                                  ObjectInstanceMonitorMBean instanceMonitor, DSOApplicationEventsMBean appEvents) {
30     this.txnMgr = txnMgr;
31     this.objMgr = objMgr;
32     this.lockMgr = lockMgr;
33     this.channelMgr = channelMgr;
34     this.serverStats = serverStats;
35     this.channelStats = channelStats;
36     this.instanceMonitor = instanceMonitor;
37     this.appEvents = appEvents;
38   }
39
40   public ServerTransactionManagerMBean getTransactionManager() {
41     return this.txnMgr;
42   }
43
44   public ObjectManagerMBean getObjectManager() {
45     return this.objMgr;
46   }
47
48   public DSOChannelManagerMBean getChannelManager() {
49     return this.channelMgr;
50   }
51
52   public DSOGlobalServerStats getServerStats() {
53     return this.serverStats;
54   }
55
56   public ChannelStats getChannelStats() {
57     return this.channelStats;
58   }
59
60   public LockManagerMBean getLockManager() {
61     return this.lockMgr;
62   }
63
64   public ObjectInstanceMonitorMBean getInstanceMonitor() {
65     return instanceMonitor;
66   }
67
68   public DSOApplicationEventsMBean getDSOAppEventsMBean() {
69     return this.appEvents;
70   }
71 }
72
Popular Tags