FileDocCategorySizeDatePackage
IsInstanceOfCaller.javaAPI DocGlassfish v2 API3305Fri May 04 22:36:28 BST 2007com.sun.enterprise.admin.jmx.remote.server.callers

IsInstanceOfCaller

public class IsInstanceOfCaller extends AbstractMethodCaller
Invokes the method isInstanceOf of the MBeanServerConnection.
see
MBeanServerRequestMessage#IS_INSTANCE_OF
author
Kedar Mhaswade
since
S1AS8.0
version
1.0

Fields Summary
Constructors Summary
public IsInstanceOfCaller(MBeanServerConnection mbsc)
Creates a new instance of CreateMBeanCaller

		super(mbsc);
		METHOD_ID = MBeanServerRequestMessage.IS_INSTANCE_OF;
	
Methods Summary
public javax.management.remote.message.MBeanServerResponseMessagecall(javax.management.remote.message.MBeanServerRequestMessage request)

		Object result = null;
		boolean isException = false;
		try {
			result = new Boolean(
			mbsc.isInstanceOf((ObjectName)request.getParams()[0], (String)request.getParams()[1]));
		}
		catch(Throwable e) {
			result = e;
			isException = true;
		}
		return ( new MBeanServerResponseMessage(METHOD_ID, result, isException) );