1 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 ; 11 import javax.management.ObjectName ; 12 13 public class L2MBeanNames { 14 15 public static final ObjectName TC_SERVER_INFO; 16 public static final ObjectName LOGGER; 17 public static final ObjectName DSO; 18 public static final ObjectName DSO_APP_EVENTS; 19 public static final ObjectName 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 mone) { 32 throw new RuntimeException (mone); 33 } catch (NullPointerException npe) { 34 throw new RuntimeException (npe); 35 } 36 } 37 38 } 39 | Popular Tags |