1 4 package com.tc.management.beans; 5 6 import javax.management.MalformedObjectNameException ; 7 import javax.management.ObjectName ; 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 CLIENT_TX_INTERNAL; 16 public static final ObjectName 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 mone) { 26 throw new RuntimeException (mone); 27 } catch (NullPointerException npe) { 28 throw new RuntimeException (npe); 29 } 30 } 31 32 } 33 | Popular Tags |