MBeanServerConnection_Hookpublic class MBeanServerConnection_Hook extends Object implements MBeanServerConnection
Fields Summary |
---|
private final MBeanServerConnection | mConn |
Constructors Summary |
---|
public MBeanServerConnection_Hook(MBeanServerConnection conn)
mConn = conn;
assert( getConn() != null );
|
Methods Summary |
---|
public void | addNotificationListener(javax.management.ObjectName name, javax.management.NotificationListener listener, javax.management.NotificationFilter filter, java.lang.Object handback)
final Object [] args = new Object [] { name, listener, filter, handback };
final long id = callPreHook( "addNotificationListener", args );
getConn().addNotificationListener( callNameHook( id, name ), listener, filter, handback );
callPostHook( id, "addNotificationListener", args );
| public void | addNotificationListener(javax.management.ObjectName name, javax.management.ObjectName listener, javax.management.NotificationFilter filter, java.lang.Object handback)
final Object [] args = new Object [] { name, listener, filter, handback };
final long id = callPreHook( "addNotificationListener", args );
getConn().addNotificationListener( callNameHook( id, name ), listener, filter, handback );
callPostHook( id, "addNotificationListener", args );
| javax.management.ObjectName | callNameHook(long id, javax.management.ObjectName objectName)
return( getHook().nameHook( id, objectName ) );
| void | callPostHook(long id, java.lang.String name, java.lang.Object[] args, java.lang.Object result)
getHook().postHook( id, name, args, result );
| void | callPostHook(long id, java.lang.String name, java.lang.Object[] args)
getHook().postHook( id, name, args );
| void | callPostHook(long id, java.lang.String name)
getHook().postHook( id, name );
| long | callPreHook(java.lang.String name, java.lang.Object[] args)
return( getHook().preHook( name, args ) );
| long | callPreHook(java.lang.String name)
return( getHook().preHook( name, null ) );
| public javax.management.ObjectInstance | createMBean(java.lang.String className, javax.management.ObjectName name)
final Object [] args = new Object [] { className, name };
final long id = callPreHook( "createMBean", args );
final ObjectInstance result = getConn().createMBean( className, name );
callPostHook( id, "createMBean", args, result );
return( result );
| public javax.management.ObjectInstance | createMBean(java.lang.String className, javax.management.ObjectName name, javax.management.ObjectName loaderName)
final Object [] args = new Object [] { className, name, loaderName };
final long id = callPreHook( "createMBean", args );
final ObjectInstance result = getConn().createMBean( className, name, loaderName );
callPostHook( id, "createMBean", args, result );
return( result );
| public javax.management.ObjectInstance | createMBean(java.lang.String className, javax.management.ObjectName name, java.lang.Object[] params, java.lang.String[] signature)
final Object [] args = new Object [] { className, name, params, signature };
final long id = callPreHook( "createMBean", args );
final ObjectInstance result = getConn().createMBean( className, name, params, signature );
callPostHook( id, "createMBean", args, result );
return( result );
| public javax.management.ObjectInstance | createMBean(java.lang.String className, javax.management.ObjectName name, javax.management.ObjectName loaderName, java.lang.Object[] params, java.lang.String[] signature)
final Object [] args = new Object [] { className, name, loaderName, params, signature };
final long id = callPreHook( "createMBean", args );
final ObjectInstance result =
getConn().createMBean( className, name, loaderName, params, signature);
callPostHook( id, "createMBean", args, result );
return( result );
| public java.lang.Object | getAttribute(javax.management.ObjectName name, java.lang.String attribute)
final Object [] args = new Object [] { name, attribute };
final long id = callPreHook( "getAttribute", args );
final Object result = getConn().getAttribute( callNameHook( id, name ), attribute );
callPostHook( id, "getAttribute", args, result );
return( result );
| public javax.management.AttributeList | getAttributes(javax.management.ObjectName name, java.lang.String[] attributes)
final Object [] args = new Object [] { name, attributes };
final long id = callPreHook( "getAttributes", args );
final AttributeList result = getConn().getAttributes( callNameHook( id, name ), attributes );
callPostHook( id, "getAttributes", args, result );
return( result );
| javax.management.MBeanServerConnection | getConn()
return( mConn );
| public java.lang.String | getDefaultDomain()
final long id = callPreHook( "getDefaultDomain" );
final String result = getConn().getDefaultDomain();
callPostHook( id, "getDefaultDomain" );
return( result );
| public java.lang.String[] | getDomains()
final long id = callPreHook( "getDomains" );
final String [] result = getConn().getDomains( );
callPostHook( id, "getDefaultDomain", result );
return( result );
| com.sun.cli.jmx.util.MBeanServerConnection_Hook$Hook | getHook()
return( HookImpl.HOOK );
| public java.lang.Integer | getMBeanCount()
final long id = callPreHook( "getMBeanCount", null );
final Integer result = getConn().getMBeanCount( );
callPostHook( id, "getMBeanCount", null, result );
return( result );
| public javax.management.MBeanInfo | getMBeanInfo(javax.management.ObjectName name)
final Object [] args = new Object [] { name };
final long id = callPreHook( "getMBeanInfo", args );
final MBeanInfo result = getConn().getMBeanInfo( callNameHook( id, name ) );
callPostHook( id, "getMBeanInfo", args );
return( result );
| public javax.management.ObjectInstance | getObjectInstance(javax.management.ObjectName name)
final Object [] args = new Object [] { name };
final long id = callPreHook( "getObjectInstance", args );
final ObjectInstance result = getConn().getObjectInstance( callNameHook( id, name ) );
callPostHook( id, "getObjectInstance", args, result );
return( result );
| public java.lang.Object | invoke(javax.management.ObjectName name, java.lang.String operationName, java.lang.Object[] params, java.lang.String[] signature)
final Object [] args = new Object [] { name, operationName, params, signature };
final long id = callPreHook( "invoke", args );
final Object result = getConn().invoke( callNameHook( id, name ), operationName, params, signature);
callPostHook( id, "invoke", args );
return( result );
| public boolean | isInstanceOf(javax.management.ObjectName name, java.lang.String className)
final Object [] args = new Object [] { name, className };
final long id = callPreHook( "isInstanceOf", args );
final boolean isInstance = getConn().isInstanceOf( callNameHook( id, name ), className );
callPostHook( id, "isInstanceOf", args, isInstance ? Boolean.TRUE : Boolean.FALSE );
return( isInstance );
| public boolean | isRegistered(javax.management.ObjectName name)
final Object [] args = new Object [] { name };
final long id = callPreHook( "isRegistered", args );
boolean registered = false;
registered = getConn().isRegistered( callNameHook( id, name ) );
callPostHook( id, "isRegistered", args, registered ? Boolean.TRUE : Boolean.FALSE );
return( registered );
| public java.util.Set | queryMBeans(javax.management.ObjectName name, javax.management.QueryExp query)
final Object [] args = new Object [] { name, query };
final long id = callPreHook( "queryMBeans", args );
final Set result = getConn().queryMBeans( name, query );
callPostHook( id, "queryMBeans", args, result );
return( result );
| public java.util.Set | queryNames(javax.management.ObjectName name, javax.management.QueryExp query)
final Object [] args = new Object [] { name, query };
final long id = callPreHook( "queryNames", args );
final Set result = getConn().queryMBeans( name, query );
callPostHook( id, "queryNames", args, result );
return( result );
| public void | removeNotificationListener(javax.management.ObjectName name, javax.management.ObjectName listener)
final Object [] args = new Object [] { listener };
final long id = callPreHook( "removeNotificationListener", args );
getConn().removeNotificationListener( callNameHook( id, name ), listener );
callPostHook( id, "removeNotificationListener", args );
| public void | removeNotificationListener(javax.management.ObjectName name, javax.management.ObjectName listener, javax.management.NotificationFilter filter, java.lang.Object handback)
final Object [] args = new Object [] { name, listener, filter, handback };
final long id = callPreHook( "removeNotificationListener", args );
getConn().removeNotificationListener( callNameHook( id, name ), listener, filter, handback );
callPostHook( id, "removeNotificationListener", args );
| public void | removeNotificationListener(javax.management.ObjectName name, javax.management.NotificationListener listener)
final Object [] args = new Object [] { name, listener };
final long id = callPreHook( "removeNotificationListener", args );
getConn().removeNotificationListener( callNameHook( id, name ), listener );
callPostHook( id, "removeNotificationListener", args );
| public void | removeNotificationListener(javax.management.ObjectName name, javax.management.NotificationListener listener, javax.management.NotificationFilter filter, java.lang.Object handback)
final Object [] args = new Object [] { name, listener, filter, handback };
final long id = callPreHook( "removeNotificationListener", args );
getConn().removeNotificationListener( callNameHook( id, name ), listener, filter, handback );
callPostHook( id, "removeNotificationListener", args );
| public void | setAttribute(javax.management.ObjectName name, javax.management.Attribute attribute)
final Object [] args = new Object [] { name, attribute };
final long id = callPreHook( "setAttribute", args );
getConn().setAttribute( callNameHook( id, name ), attribute );
callPostHook( id, "setAttribute", args );
| public javax.management.AttributeList | setAttributes(javax.management.ObjectName name, javax.management.AttributeList attributes)
final Object [] args = new Object [] { name, attributes };
final long id = callPreHook( "setAttributes", args );
final AttributeList result = getConn().setAttributes( callNameHook( id, name ), attributes );
callPostHook( id, "setAttributes", args );
return( result );
| public void | unregisterMBean(javax.management.ObjectName name)
final Object [] args = new Object [] { name };
final long id = callPreHook( "unregisterMBean", args );
getConn().unregisterMBean( callNameHook( id, name ) );
callPostHook( id, "unregisterMBean", args );
|
|