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

SetAttributeCaller

public class SetAttributeCaller extends AbstractMethodCaller
Invokes the method setAttribute of the MBeanServerConnection.
see
MBeanServerRequestMessage.SET_ATTRIBUTE
author
Kedar Mhaswade
since
S1AS8.0
version
1.0

Fields Summary
Constructors Summary
public SetAttributeCaller(MBeanServerConnection mbsc)

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

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