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.management.beans;
06:
07: import com.tc.management.TerracottaManagement;
08: import com.tc.management.TerracottaManagement.Subsystem;
09: import com.tc.management.TerracottaManagement.Type;
10:
11: import javax.management.MalformedObjectNameException;
12: import javax.management.ObjectName;
13:
14: public class L2MBeanNames {
15:
16: public static final ObjectName TC_SERVER_INFO;
17: public static final ObjectName LOGGER;
18: public static final ObjectName DSO;
19: public static final ObjectName DSO_APP_EVENTS;
20: public static final ObjectName OBJECT_MANAGEMENT;
21: public static final ObjectName DUMPER;
22: public static final ObjectName LOCK_STATISTICS;
23:
24: static {
25: try {
26: TC_SERVER_INFO = TerracottaManagement.createObjectName(
27: Type.Server, Subsystem.None, null,
28: "Terracotta Server", false);
29: LOGGER = TerracottaManagement.createObjectName(Type.Server,
30: Subsystem.None, null, "Logger", false);
31: DSO = TerracottaManagement.createObjectName(Type.Server,
32: Subsystem.None, null, "DSO", false);
33: DSO_APP_EVENTS = TerracottaManagement.createObjectName(
34: Type.Server, Subsystem.None, null,
35: "Application Events", false);
36: OBJECT_MANAGEMENT = TerracottaManagement.createObjectName(
37: Type.Server, Subsystem.ObjectManagement, null,
38: "ObjectManagement", true);
39: DUMPER = TerracottaManagement.createObjectName(Type.Server,
40: Subsystem.None, null, "L2Dumper", false);
41: LOCK_STATISTICS = TerracottaManagement.createObjectName(
42: Type.Server, Subsystem.None, null,
43: "Terracotta Lock Statistics", false);
44: } catch (MalformedObjectNameException mone) {
45: throw new RuntimeException(mone);
46: } catch (NullPointerException npe) {
47: throw new RuntimeException(npe);
48: }
49: }
50:
51: }
|