User: user57 Date: 02/02/14 16:46:50 Modified: src/main/org/jboss/admin/mbean AdminServerMBean.java SystemMonitorMBean.java Log: o Holy changes BatMan... OBJECT_NAME is now an ObjectName everywhere Revision Changes Path 1.4 +11 -6 admin/src/main/org/jboss/admin/mbean/AdminServerMBean.java Index: AdminServerMBean.java =================================================================== RCS file: /cvsroot/jboss/admin/src/main/org/jboss/admin/mbean/AdminServerMBean.java,v retrieving revision 1.3 retrieving revision 1.4 diff -u -r1.3 -r1.4 --- AdminServerMBean.java 30 Aug 2001 02:14:58 -0000 1.3 +++ AdminServerMBean.java 15 Feb 2002 00:46:50 -0000 1.4 @@ -4,9 +4,13 @@ * Distributable under LGPL license. * See terms of license at gnu.org. */ + package org.jboss.admin.mbean; -// JBoss imports +import javax.management.ObjectName; + +import org.jboss.util.ObjectNameFactory; + import org.jboss.system.ServiceMBean; @@ -14,12 +18,13 @@ * ... * * @author Juha Lindfors ([EMAIL PROTECTED]) - * @version $Revision: 1.3 $ + * @version $Revision: 1.4 $ */ -public interface AdminServerMBean extends ServiceMBean { - - public static final String OBJECT_NAME = "Admin:name=AdminServer"; +public interface AdminServerMBean + extends ServiceMBean +{ - public void createRoot(String user, char[] pw); + ObjectName OBJECT_NAME = ObjectNameFactory.create("jboss.admin:name=AdminServer"); + void createRoot(String user, char[] pw); } 1.4 +20 -18 admin/src/main/org/jboss/admin/mbean/SystemMonitorMBean.java Index: SystemMonitorMBean.java =================================================================== RCS file: /cvsroot/jboss/admin/src/main/org/jboss/admin/mbean/SystemMonitorMBean.java,v retrieving revision 1.3 retrieving revision 1.4 diff -u -r1.3 -r1.4 --- SystemMonitorMBean.java 30 Aug 2001 02:14:58 -0000 1.3 +++ SystemMonitorMBean.java 15 Feb 2002 00:46:50 -0000 1.4 @@ -6,33 +6,35 @@ */ package org.jboss.admin.mbean; -// JBoss imports -import org.jboss.system.ServiceMBean; +import javax.management.ObjectName; + +import org.jboss.util.ObjectNameFactory; +import org.jboss.system.ServiceMBean; /** * ... * * @author Juha Lindfors ([EMAIL PROTECTED]) - * @version $Revision: 1.3 $ + * @version $Revision: 1.4 $ */ public interface SystemMonitorMBean extends ServiceMBean { - public static final String OBJECT_NAME = "Admin:name=SystemMonitor"; - - boolean isMemoryMonitorEnabled(); - void setMemoryMonitorEnabled(boolean enabled); - void setMemoryMonitorInterval(long ms); - long getMemoryMonitorInterval(); - - long getFreeMemory(); - long getTotalMemory(); - - boolean isThreadMonitorEnabled(); - void setThreadMonitorEnabled(boolean enabled); - void setThreadMonitorInterval(long ms); - long getThreadMonitorInterval(); + ObjectName OBJECT_NAME = ObjectNameFactory.create("jboss.admin:name=SystemMonitor"); - int getThreadCount(); + boolean isMemoryMonitorEnabled(); + void setMemoryMonitorEnabled(boolean enabled); + void setMemoryMonitorInterval(long ms); + long getMemoryMonitorInterval(); + + long getFreeMemory(); + long getTotalMemory(); + + boolean isThreadMonitorEnabled(); + void setThreadMonitorEnabled(boolean enabled); + void setThreadMonitorInterval(long ms); + long getThreadMonitorInterval(); + + int getThreadCount(); }
_______________________________________________ Jboss-development mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-development