KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > tc > management > beans > L1MBeanNames


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