org.jboss.invocation.http.server
Class HAInvokerWrapper
java.lang.Object
org.jboss.mx.util.DynamicMBeanSupport (src)
org.jboss.invocation.http.server.HAInvokerWrapper
- All Implemented Interfaces:
- DynamicMBean (src)
- public class HAInvokerWrapper
- extends DynamicMBeanSupport (src)
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.
- See Also:
HttpProxyFactoryHA
(src)
Method Summary |
MBeanInfo (src) |
getMBeanInfo()
Returns the management interface that describes this dynamic resource. |
java.lang.Object |
invoke(Invocation (src) invocation)
The invoker entry point. |
java.lang.Object |
invoke(java.lang.String actionName,
java.lang.Object[] params,
java.lang.String[] signature)
The JMX DynamicMBean invoke entry point. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
HAInvokerWrapper
public HAInvokerWrapper(MBeanServer (src) mbeanServer,
ObjectName (src) targetName,
HATarget (src) target)
invoke
public java.lang.Object invoke(java.lang.String actionName,
java.lang.Object[] params,
java.lang.String[] signature)
throws MBeanException (src) ,
ReflectionException (src)
- The JMX DynamicMBean invoke entry point. This only handles the
invoke(Invocation) operation.
- Specified by:
invoke
in interface DynamicMBean (src)
- Overrides:
invoke
in class DynamicMBeanSupport (src)
- Parameters:
actionName
- params
- signature
-
- Returns:
-
- Throws:
MBeanException (src)
ReflectionException (src)
invoke
public java.lang.Object invoke(Invocation (src) invocation)
throws java.lang.Exception
- The invoker entry point.
- Parameters:
invocation
-
- Returns:
- A HARMIResponse that wraps the result of calling invoke(Invocation)
on the targetName MBean
- Throws:
java.lang.Exception
getMBeanInfo
public MBeanInfo (src) getMBeanInfo()
- Description copied from interface:
DynamicMBean (src)
- Returns the management interface that describes this dynamic resource.
It is the responsibility of the implementation to make sure the
description is accurate.
- Specified by:
getMBeanInfo
in interface DynamicMBean (src)
- Overrides:
getMBeanInfo
in class DynamicMBeanSupport (src)