org.jboss.invocation.http.server
Class HAInvokerWrapper
java.lang.Object
org.jboss.mx.util.DynamicMBeanSupport
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
HAInvokerWrapper
public HAInvokerWrapper(MBeanServer mbeanServer,
ObjectName targetName,
org.jboss.ha.framework.server.HATarget target)
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.