org.jboss.invocation.http.server
Class HAInvokerWrapper

java.lang.Object
  extended by org.jboss.mx.util.DynamicMBeanSupport
      extended by org.jboss.invocation.http.server.HAInvokerWrapper
All Implemented Interfaces:
DynamicMBean

public class HAInvokerWrapper
extends DynamicMBeanSupport

This is an invoker that delegates to the target invoker and handles the wrapping of the response in an HARMIResponse with any updated HATarget info.

Version:
$Revision: 81001 $
Author:
Scott Stark
See Also:
HttpProxyFactoryHA

Constructor Summary
HAInvokerWrapper(MBeanServer mbeanServer, ObjectName targetName, org.jboss.ha.framework.server.HATarget target)
           
 
Method Summary
 MBeanInfo getMBeanInfo()
           
 Object invoke(Invocation invocation)
          The invoker entry point.
 Object invoke(String actionName, Object[] params, String[] signature)
          The JMX DynamicMBean invoke entry point.
 
Methods inherited from class org.jboss.mx.util.DynamicMBeanSupport
getAttribute, getAttributes, setAttribute, setAttributes
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HAInvokerWrapper

public HAInvokerWrapper(MBeanServer mbeanServer,
                        ObjectName targetName,
                        org.jboss.ha.framework.server.HATarget target)
Method Detail

invoke

public Object invoke(String actionName,
                     Object[] params,
                     String[] signature)
              throws MBeanException,
                     ReflectionException
The JMX DynamicMBean invoke entry point. This only handles the invoke(Invocation) operation.

Specified by:
invoke in interface DynamicMBean
Overrides:
invoke in class DynamicMBeanSupport
Parameters:
actionName -
params -
signature -
Returns:
the invocation response
Throws:
MBeanException
ReflectionException

invoke

public Object invoke(Invocation invocation)
              throws Exception
The invoker entry point.

Parameters:
invocation -
Returns:
A HARMIResponse that wraps the result of calling invoke(Invocation) on the targetName MBean
Throws:
Exception

getMBeanInfo

public MBeanInfo getMBeanInfo()
Specified by:
getMBeanInfo in interface DynamicMBean
Overrides:
getMBeanInfo in class DynamicMBeanSupport


Copyright © 2009 JBoss, a division of Red Hat, Inc.. All Rights Reserved.