Methods Summary |
---|
protected final java.lang.String | _getDefaultValue(java.lang.String name)
return (String)invoke( "getDefaultAttributeValue", new String[] { name }, SINGLE_STRING_SIG );
|
private void | delegateFailed(java.lang.Throwable t)
if ( getOwner() != null )
{
getOwner().delegateFailed( t );
}
|
public final java.lang.Object | getAttribute(java.lang.String attrName)
try
{
final Object value =
getMBeanServerConnection().getAttribute( mTarget, attrName );
return( value );
}
catch( Exception e )
{
e.printStackTrace();
throw new RuntimeException( e );
}
|
public javax.management.MBeanInfo | getMBeanInfo()
return( mTargetMBeanInfo );
|
public final javax.management.MBeanServerConnection | getMBeanServerConnection()
return( mConn );
|
public final javax.management.ObjectName | getTarget()
return( mTarget );
|
public final java.lang.Object | invoke(java.lang.String operationName, java.lang.Object[] args, java.lang.String[] types)
try
{
final Object result = getMBeanServerConnection().invoke( getTarget(),
operationName, args, types );
return( result );
}
catch ( InstanceNotFoundException e )
{
delegateFailed( e );
throw new RuntimeException( e );
}
catch ( IOException e )
{
try
{
getMBeanServerConnection().isRegistered( getTarget() );
}
catch( IOException ee )
{
delegateFailed( e );
}
throw new RuntimeException( e );
}
catch( Exception e )
{
throw new RuntimeException( e );
}
|
public void | setAttribute(javax.management.Attribute attr)
try
{
getMBeanServerConnection().setAttribute( mTarget, attr );
}
catch( Exception e )
{
throw new RuntimeException( e );
}
|