KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > tc > management > beans > object > MockObjectManagementMonitor


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.management.beans.object;
5
6 import com.tc.management.AbstractTerracottaMBean;
7 import com.tc.management.beans.object.ObjectManagementMonitor.GCComptroller;
8
9 import javax.management.NotCompliantMBeanException JavaDoc;
10
11 public final class MockObjectManagementMonitor extends AbstractTerracottaMBean implements ObjectManagementMonitorMBean {
12
13   public MockObjectManagementMonitor() throws NotCompliantMBeanException JavaDoc {
14     super(ObjectManagementMonitorMBean.class, false);
15   }
16
17   public boolean isGCRunning() {
18     return false;
19   }
20
21   public void registerGCController(GCComptroller controller) {
22     // do nothing
23
}
24
25   public void runGC() {
26     return;
27   }
28
29   public void reset() {
30     // nothing to reset
31
}
32
33   public String JavaDoc getGCResult() {
34     return "";
35   }
36
37 }
38
Popular Tags