FileDocCategorySizeDatePackage
MBeanServerResponseActor.javaAPI DocGlassfish v2 API3790Fri May 04 22:36:24 BST 2007com.sun.enterprise.admin.jmx.remote.internal

MBeanServerResponseActor

public class MBeanServerResponseActor extends Object
A class to act on the instances of {@link MBeanServerResponseMessage}. Since the response may have both the exceptions and valid results, we have to carefully handle them.
author
mailto:Kedar.Mhaswade@Sun.Com
since
Sun Java System Application Server 8

Fields Summary
Constructors Summary
private MBeanServerResponseActor()

        //disllow
    
Methods Summary
static final java.lang.ObjectreturnOrThrow(javax.management.remote.message.MBeanServerResponseMessage message)

        voidOrThrow(message);
        return ( message.getWrappedResult() );
    
static final voidvoidOrThrow(javax.management.remote.message.MBeanServerResponseMessage message)

        if (message.isException()) {
            throw ((Exception)message.getWrappedResult());
        }
        /*ignore the return value, if there is no exception, as the message
        implies a method invocation that returns void. */