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 javax.management.MalformedObjectNameException;
07: import javax.management.ObjectName;
08:
09: 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 CLIENT_TX_INTERNAL;
16: public static final ObjectName SESSION_INTERNAL;
17:
18: static {
19: try {
20: CLIENT_TX_INTERNAL = TerracottaManagement.createObjectName(
21: TerracottaManagement.Type.DsoClient,
22: TerracottaManagement.Subsystem.Tx, null,
23: "Client transactions", false);
24: SESSION_INTERNAL = TerracottaManagement.createObjectName(
25: Type.Sessions, Subsystem.None, null,
26: "Session stats", false);
27: } catch (MalformedObjectNameException mone) {
28: throw new RuntimeException(mone);
29: } catch (NullPointerException npe) {
30: throw new RuntimeException(npe);
31: }
32: }
33:
34: }
|