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 L1MBeanNames { 14 15 public static final ObjectName SESSION_PRODUCT_PUBLIC; 16 public static final ObjectName CLUSTER_BEAN_PUBLIC; 17 18 static { 19 try { 20 SESSION_PRODUCT_PUBLIC = TerracottaManagement.createObjectName(Type.Sessions, Subsystem.None, null, 21 "Terracotta for Sessions", true); 22 CLUSTER_BEAN_PUBLIC = TerracottaManagement.createObjectName(Type.Cluster, Subsystem.None, null, 23 "Terracotta Cluster Bean", true); 24 } catch (MalformedObjectNameException mone) { 25 throw new RuntimeException (mone); 26 } catch (NullPointerException npe) { 27 throw new RuntimeException (npe); 28 } 29 } 30 31 } 32 | Popular Tags |