FileDocCategorySizeDatePackage
MBeanServerConnection_Hook.javaAPI DocGlassfish v2 API16393Fri May 04 22:25:00 BST 2007com.sun.cli.jmx.util

MBeanServerConnection_Hook

public 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 voidaddNotificationListener(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 voidaddNotificationListener(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.ObjectNamecallNameHook(long id, javax.management.ObjectName objectName)

		return( getHook().nameHook( id, objectName ) );
	
voidcallPostHook(long id, java.lang.String name, java.lang.Object[] args, java.lang.Object result)

		getHook().postHook( id, name, args, result );
	
voidcallPostHook(long id, java.lang.String name, java.lang.Object[] args)

		getHook().postHook( id, name, args );
	
voidcallPostHook(long id, java.lang.String name)

		getHook().postHook( id, name );
	
longcallPreHook(java.lang.String name, java.lang.Object[] args)

		return( getHook().preHook( name, args ) );
	
longcallPreHook(java.lang.String name)

		return( getHook().preHook( name, null ) );
	
public javax.management.ObjectInstancecreateMBean(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.ObjectInstancecreateMBean(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.ObjectInstancecreateMBean(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.ObjectInstancecreateMBean(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.ObjectgetAttribute(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.AttributeListgetAttributes(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.MBeanServerConnectiongetConn()

		return( mConn );
	
public java.lang.StringgetDefaultDomain()

		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$HookgetHook()

		return( HookImpl.HOOK );
	
public java.lang.IntegergetMBeanCount()

		final long id = callPreHook( "getMBeanCount", null );
		
		final Integer	result	= getConn().getMBeanCount( );
		
		callPostHook( id, "getMBeanCount", null, result );
		
		return( result );
	
public javax.management.MBeanInfogetMBeanInfo(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.ObjectInstancegetObjectInstance(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.Objectinvoke(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 booleanisInstanceOf(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 booleanisRegistered(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.SetqueryMBeans(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.SetqueryNames(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 voidremoveNotificationListener(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 voidremoveNotificationListener(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 voidremoveNotificationListener(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 voidremoveNotificationListener(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 voidsetAttribute(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.AttributeListsetAttributes(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 voidunregisterMBean(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 );