KickJava   Java API By Example, From Geeks To Geeks.

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


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 javax.management.MalformedObjectNameException JavaDoc;
7 import javax.management.ObjectName JavaDoc;
8
9 import com.tc.management.TerracottaManagement;
10 import com.tc.management.TerracottaManagement.Subsystem;
11 import com.tc.management.TerracottaManagement.Type;
12
13 public class MBeanNames {
14
15   public static final ObjectName JavaDoc CLIENT_TX_INTERNAL;
16   public static final ObjectName JavaDoc SESSION_INTERNAL;
17
18   static {
19     try {
20       CLIENT_TX_INTERNAL = TerracottaManagement.createObjectName(TerracottaManagement.Type.DsoClient,
21                                                                  TerracottaManagement.Subsystem.Tx, null,
22                                                                  "Client transactions", false);
23       SESSION_INTERNAL = TerracottaManagement.createObjectName(Type.Sessions, Subsystem.None, null, "Session stats",
24                                                                false);
25     } catch (MalformedObjectNameException JavaDoc mone) {
26       throw new RuntimeException JavaDoc(mone);
27     } catch (NullPointerException JavaDoc npe) {
28       throw new RuntimeException JavaDoc(npe);
29     }
30   }
31
32 }
33
Popular Tags