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.admin.sessions;
05:
06: import org.dijon.ContainerResource;
07:
08: import com.tc.admin.AdminClient;
09: import com.tc.admin.AdminClientContext;
10: import com.tc.admin.common.XContainer;
11: import com.tc.management.beans.sessions.SessionMonitorMBean;
12:
13: public class SessionMonitorPanel extends XContainer {
14: private SessionMonitorTable m_table;
15: private SessionMonitorMBean m_bean;
16:
17: public SessionMonitorPanel(SessionMonitorMBean bean) {
18: super ();
19:
20: m_bean = bean;
21:
22: AdminClientContext cntx = AdminClient.getContext();
23: load((ContainerResource) cntx.topRes
24: .getComponent("SessionMonitorPanel"));
25: }
26:
27: public void load(ContainerResource containerRes) {
28: super .load(containerRes);
29: m_table = (SessionMonitorTable) findComponent("SessionMonitorTable");
30: m_table.setBean(m_bean);
31: }
32:
33: public SessionMonitorMBean getBean() {
34: return m_bean;
35: }
36:
37: public void refresh() {
38: m_table.refresh();
39: }
40:
41: public void tearDown() {
42: super.tearDown();
43: }
44: }
|