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

QueryNamesCaller

public class QueryNamesCaller extends AbstractMethodCaller
Invokes the method queryNames of the MBeanServerConnection.
see
MBeanServerRequestMessage#QUERY_NAMES
author
Kedar Mhaswade
since
S1AS8.0
version
1.0

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

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

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