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.management.beans;
05:
06: import com.tc.management.TerracottaManagement;
07: import com.tc.management.TerracottaManagement.Subsystem;
08: import com.tc.management.TerracottaManagement.Type;
09:
10: import javax.management.MalformedObjectNameException;
11: import javax.management.ObjectName;
12:
13: public class L1MBeanNames {
14:
15: public static final ObjectName SESSION_PRODUCT_PUBLIC;
16: public static final ObjectName CLUSTER_BEAN_PUBLIC;
17:
18: static {
19: try {
20: SESSION_PRODUCT_PUBLIC = TerracottaManagement
21: .createObjectName(Type.Sessions, Subsystem.None,
22: null, "Terracotta for Sessions", true);
23: CLUSTER_BEAN_PUBLIC = TerracottaManagement
24: .createObjectName(Type.Cluster, Subsystem.None,
25: null, "Terracotta Cluster Bean", true);
26: } catch (MalformedObjectNameException mone) {
27: throw new RuntimeException(mone);
28: } catch (NullPointerException npe) {
29: throw new RuntimeException(npe);
30: }
31: }
32:
33: }
|