org.jboss.invocation.http.server
Class HttpInvokerHA
java.lang.Object
org.jboss.mx.util.JBossNotificationBroadcasterSupport (src)
org.jboss.system.ServiceMBeanSupport (src)
org.jboss.invocation.http.server.HttpInvoker (src)
org.jboss.invocation.http.server.HttpInvokerHA
- All Implemented Interfaces:
- HttpInvokerMBean (src) , InvokerHA (src) , MBeanRegistration (src) , NotificationBroadcaster (src) , NotificationEmitter (src) , Service (src) , ServiceMBean (src)
- public class HttpInvokerHA
- extends HttpInvoker (src)
- implements InvokerHA (src)
An extension of the HttpInvoker and supports clustering of HTTP invokers.
Field Summary |
protected java.util.HashMap |
targetMap
|
Fields inherited from interface org.jboss.system.ServiceMBean (src) |
CREATE_EVENT, CREATED, DESTROY_EVENT, DESTROYED, FAILED, REGISTERED, START_EVENT, STARTED, STARTING, states, STOP_EVENT, STOPPED, STOPPING, UNREGISTERED |
Methods inherited from class org.jboss.system.ServiceMBeanSupport (src) |
create, createService, destroy, getLog, getName, getNextNotificationSequenceNumber, getObjectName, getServer, getServiceName, getState, getStateString, jbossInternalCreate, jbossInternalDescription, jbossInternalDestroy, jbossInternalLifecycle, jbossInternalStart, jbossInternalStop, postDeregister, postRegister, preDeregister, preRegister, start, stop |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
targetMap
protected java.util.HashMap targetMap
HttpInvokerHA
public HttpInvokerHA()
startService
protected void startService()
throws java.lang.Exception
- Description copied from class:
ServiceMBeanSupport (src)
- Sub-classes should override this method to provide
custum 'start' logic.
This method is empty, and is provided for convenience
when concrete service classes do not need to perform
anything specific for this state change.
- Overrides:
startService
in class HttpInvoker (src)
- Throws:
java.lang.Exception
stopService
protected void stopService()
- Description copied from class:
ServiceMBeanSupport (src)
- Sub-classes should override this method to provide
custum 'stop' logic.
This method is empty, and is provided for convenience
when concrete service classes do not need to perform
anything specific for this state change.
- Overrides:
stopService
in class HttpInvoker (src)
destroyService
protected void destroyService()
- Description copied from class:
ServiceMBeanSupport (src)
- Sub-classes should override this method to provide
custum 'destroy' logic.
This method is empty, and is provided for convenience
when concrete service classes do not need to perform
anything specific for this state change.
- Overrides:
destroyService
in class HttpInvoker (src)
registerBean
public void registerBean(ObjectName (src) targetName,
HATarget (src) target)
throws java.lang.Exception
- Specified by:
registerBean
in interface InvokerHA (src)
- Throws:
java.lang.Exception
unregisterBean
public void unregisterBean(ObjectName (src) targetName)
throws java.lang.Exception
- Specified by:
unregisterBean
in interface InvokerHA (src)
- Throws:
java.lang.Exception
createProxy
public Invoker (src) createProxy(ObjectName (src) targetName,
LoadBalancePolicy (src) policy,
java.lang.String proxyFamilyName)
throws java.lang.Exception
- Specified by:
createProxy
in interface InvokerHA (src)
- Throws:
java.lang.Exception
getStub
public java.io.Serializable getStub()
- Specified by:
getStub
in interface InvokerHA (src)
invoke
public java.lang.Object invoke(Invocation (src) invocation)
throws java.lang.Exception
- Invoke a Remote interface method.
- Specified by:
invoke
in interface HttpInvokerMBean (src)
- Overrides:
invoke
in class HttpInvoker (src)
- Throws:
java.lang.Exception