Methods Summary |
---|
public javax.management.ObjectName | createCounterMonitor(java.lang.String name)
final AMXCounterMonitorImpl monitor = new AMXCounterMonitorImpl();
return( registerMonitor( monitor, XTypes.JMX_COUNTER_MONITOR, name ) );
|
public javax.management.ObjectName | createGaugeMonitor(java.lang.String name)
final AMXGaugeMonitorImpl monitor = new AMXGaugeMonitorImpl();
return( registerMonitor( monitor, XTypes.JMX_GAUGE_MONITOR, name ) );
|
public javax.management.ObjectName | createStringMonitor(java.lang.String name)
final AMXStringMonitorImpl monitor = new AMXStringMonitorImpl();
return( registerMonitor( monitor, XTypes.JMX_STRING_MONITOR, name ) );
|
public java.util.Map | getCounterMonitorObjectNameMap()
return( getMap( XTypes.JMX_COUNTER_MONITOR ) );
|
public java.util.Map | getGaugeMonitorObjectNameMap()
return( getMap( XTypes.JMX_GAUGE_MONITOR ) );
|
public java.lang.String | getGroup()
return( AMX.GROUP_UTILITY );
|
private java.util.Map | getMap(java.lang.String j2eeType)
final Map<String,AMX> m = getDomainRoot().getContaineeMap( j2eeType );
return( Util.toObjectNames( m ) );
|
private javax.management.ObjectName | getMonitor(java.lang.String name)
final Set<AMX> s = getDomainRoot().getByNameContaineeSet( TYPES, name );
final AMX mon = Util.asAMX( GSetUtil.getSingleton( s ));
return( Util.getObjectName( mon ) );
|
protected final java.util.Set | getNotSuperfluousMethods()
return GSetUtil.newSet( super.getNotSuperfluousMethods(), NOT_SUPERFLUOUS );
|
public java.util.Map | getStringMonitorObjectNameMap()
return( getMap( XTypes.JMX_STRING_MONITOR ) );
|
private javax.management.ObjectName | registerMonitor(java.lang.Object impl, java.lang.String j2eeType, java.lang.String name)
final ObjectName self = getObjectName();
final String domain = self.getDomain();
final String requiredProps = Util.makeRequiredProps( j2eeType, name );
ObjectName objectName = Util.newObjectName( domain, requiredProps );
try
{
objectName = registerMBean( impl, objectName );
}
catch( Exception e )
{
throw new RuntimeException( e );
}
return( objectName );
|
public void | remove(java.lang.String name)
final ObjectName objectName = getMonitor( name );
if ( objectName == null )
{
throw new IllegalArgumentException( name );
}
try
{
getMBeanServer().unregisterMBean( objectName );
}
catch( JMException e )
{
throw new RuntimeException( e );
}
|