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

SetAttributesCaller

public class SetAttributesCaller extends AbstractMethodCaller
Invokes the method setAttributes of the MBeanServerConnection.
see
MBeanServerRequestMessage.SET_ATTRIBUTES
author
Kedar Mhaswade
since
S1AS8.0
version
1.0

Fields Summary
Constructors Summary
public SetAttributesCaller(MBeanServerConnection mbsc)

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

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