KickJava   Java API By Example, From Geeks To Geeks.

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


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 L2MBeanNames {
14
15   public static final ObjectName JavaDoc TC_SERVER_INFO;
16   public static final ObjectName JavaDoc LOGGER;
17   public static final ObjectName JavaDoc DSO;
18   public static final ObjectName JavaDoc DSO_APP_EVENTS;
19   public static final ObjectName JavaDoc OBJECT_MANAGEMENT;
20
21   static {
22     try {
23       TC_SERVER_INFO = TerracottaManagement.createObjectName(Type.Server, Subsystem.None, null, "Terracotta Server",
24                                                              false);
25       LOGGER = TerracottaManagement.createObjectName(Type.Server, Subsystem.None, null, "Logger", false);
26       DSO = TerracottaManagement.createObjectName(Type.Server, Subsystem.None, null, "DSO", false);
27       DSO_APP_EVENTS = TerracottaManagement.createObjectName(Type.Server, Subsystem.None, null, "Application Events",
28                                                              false);
29       OBJECT_MANAGEMENT = TerracottaManagement.createObjectName(Type.Server, Subsystem.ObjectManagement, null,
30                                                                 "ObjectManagement", true);
31     } catch (MalformedObjectNameException JavaDoc mone) {
32       throw new RuntimeException JavaDoc(mone);
33     } catch (NullPointerException JavaDoc npe) {
34       throw new RuntimeException JavaDoc(npe);
35     }
36   }
37
38 }
39
Popular Tags