FileDocCategorySizeDatePackage
MBeanServerConnection_Perf.javaAPI DocGlassfish v2 API4797Fri May 04 22:31:04 BST 2007com.sun.appserv.management.util.jmx

MBeanServerConnection_Perf

public class MBeanServerConnection_Perf extends MBeanServerConnection_Hook
This class allows use of MBeanServerConnection methods with ObjectName patterns that resolve to a single MBean. This is useful to avoid hard-coupling to specific ObjectNames; instead an ObjectName pattern may be used which resolves to a single MBean. For example, if you know the 'name' property is unique (at least for your MBean), you could use the ObjectName "*:name=myname,*" instead of a possibly much longer and complicated name (which potentially could change each time the MBean is registered).

Fields Summary
private final PerfHook
mHook
private final com.sun.appserv.management.util.misc.Output
mOutput
private boolean
mPerfEnabled
private static final Object[]
EMPTY_ARRAY
Constructors Summary
public MBeanServerConnection_Perf(MBeanServerConnection impl, com.sun.appserv.management.util.misc.Output output)

		super( impl );
		
		mOutput			= output;
		mHook			= new PerfHook();
		mPerfEnabled	= true;
	
Methods Summary
protected final HookgetHook()

		return( mHook );
	
public final booleangetPerf()

		return( mPerfEnabled );
	
public final voidsetPerf(boolean perfEnabled)

		mPerfEnabled	= perfEnabled;