Methods Summary |
---|
protected java.lang.Object | getAttributeManually(java.lang.String name)
final MBeanAttributeInfo attrInfo = (MBeanAttributeInfo)getAttributeInfos().get( name );
assert( attrInfo != null ); // getAttributeManually() should not have been called otherwise
final String prefix = attrInfo.isIs() ? JMXUtil.IS : JMXUtil.GET;
final String operationName = prefix + name;
Object result = null;
try
{
result = invokeManually( operationName, null, null );
}
catch( Exception e )
{
throw new AttributeNotFoundException( name );
}
return( result );
|
public java.lang.String | getGroup()
return( AMX.GROUP_UTILITY );
|
protected java.lang.Object | invokeManually(java.lang.String operationName, java.lang.Object[] args, java.lang.String[] types)
Object result = null;
try
{
final Class[] sig = ClassUtil.signatureFromClassnames( types );
result = invokeSig( operationName, args, sig );
}
catch( Exception e )
{
e.printStackTrace();
throw new RuntimeException( e );
}
return( result );
|
private java.lang.Object | invokeSig(java.lang.String operationName, java.lang.Object[] args, java.lang.Class[] sig)
Object result = null;
try
{
final Method m = mMonitor.getClass().getMethod( operationName, sig );
result = m.invoke( mMonitor, args );
}
catch( Exception e )
{
throw new RuntimeException( e );
}
return( result );
|
public void | postDeregisterHook()
super.postDeregisterHook( );
mMonitor.postDeregister( );
|
public void | postRegisterHook(java.lang.Boolean registrationDone)
super.postRegisterHook( registrationDone );
mMonitor.postRegister( registrationDone );
|
public void | preDeregisterHook()
super.preDeregisterHook( );
try
{
mMonitor.preDeregister( );
}
catch( Exception e )
{
throw new RuntimeException( e );
}
|
public void | preRegisterDone()
final ObjectName x = mMonitor.preRegister( getMBeanServer(), getObjectName() );
|
protected void | setAttributeManually(javax.management.Attribute attr)
final String operationName = JMXUtil.SET + attr.getName();
final MBeanAttributeInfo attrInfo = (MBeanAttributeInfo)getAttributeInfos().get( attr.getName() );
Object result = null;
try
{
final Object value = attr.getValue();
// won't work to get the class from the value; must use MBeanInfo
final Class theClass = ClassUtil.getClassFromName( attrInfo.getType() );
result = invokeSig( operationName,
new Object[] { value }, new Class[] { theClass } );
assert( result == null );
}
catch( Exception e )
{
throw new AttributeNotFoundException( attr.getName() );
}
|