01: /*
02: * All content copyright (c) 2003-2006 Terracotta, Inc., except as may otherwise be noted in a separate copyright
03: * notice. All rights reserved.
04: */
05: package com.tc.server;
06:
07: import com.tc.config.schema.L2Info;
08: import com.tc.management.AbstractTerracottaMBean;
09: import com.tc.management.beans.TCServerInfoMBean;
10:
11: import javax.management.NotCompliantMBeanException;
12:
13: public class NullTCServerInfo extends AbstractTerracottaMBean implements
14: TCServerInfoMBean {
15:
16: public NullTCServerInfo() throws NotCompliantMBeanException {
17: super (TCServerInfoMBean.class, false);
18: }
19:
20: public void reset() {
21: // nothing to reset
22: }
23:
24: public long getActivateTime() {
25: return 0;
26: }
27:
28: public String getBuildID() {
29: return "";
30: }
31:
32: public String getCopyright() {
33: return "";
34: }
35:
36: public String getDescriptionOfCapabilities() {
37: return "";
38: }
39:
40: public L2Info[] getL2Info() {
41: return null;
42: }
43:
44: public long getStartTime() {
45: return 0;
46: }
47:
48: public String getVersion() {
49: return "";
50: }
51:
52: public boolean isActive() {
53: return false;
54: }
55:
56: public boolean isStarted() {
57: return false;
58: }
59:
60: public boolean isShutdownable() {
61: return false;
62: }
63:
64: public void shutdown() {
65: //
66: }
67:
68: public void stop() {
69: //
70: }
71:
72: public String getHealthStatus() {
73: return "";
74: }
75:
76: public boolean isInStartState() {
77: return false;
78: }
79:
80: public boolean isPassiveStandby() {
81: return false;
82: }
83:
84: public boolean isPassiveUninitialized() {
85: return false;
86: }
87:
88: public void startBeanShell(int port) {
89: //
90: }
91:
92: }
|