org.jboss.invocation.http.server
Class HttpInvokerHA

java.lang.Object
  extended byorg.jboss.mx.util.JBossNotificationBroadcasterSupport (src) 
      extended byorg.jboss.system.ServiceMBeanSupport (src) 
          extended byorg.jboss.invocation.http.server.HttpInvoker (src) 
              extended byorg.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 class org.jboss.system.ServiceMBeanSupport (src)
log, server, SERVICE_CONTROLLER_SIG, serviceName
 
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
 
Constructor Summary
HttpInvokerHA()
           
 
Method Summary
 Invoker (src) createProxy(ObjectName (src)  targetName, LoadBalancePolicy (src)  policy, java.lang.String proxyFamilyName)
           
protected  void destroyService()
          Sub-classes should override this method to provide custum 'destroy' logic.
 java.io.Serializable getStub()
           
 java.lang.Object invoke(Invocation (src)  invocation)
          Invoke a Remote interface method.
 void registerBean(ObjectName (src)  targetName, HATarget (src)  target)
           
protected  void startService()
          Sub-classes should override this method to provide custum 'start' logic.
protected  void stopService()
          Sub-classes should override this method to provide custum 'stop' logic.
 void unregisterBean(ObjectName (src)  targetName)
           
 
Methods inherited from class org.jboss.invocation.http.server.HttpInvoker (src)
checkInvokerURL, getInvokerURL, getInvokerURLPrefix, getInvokerURLSuffix, getUseHostName, importTPC, setInvokerURL, setInvokerURLPrefix, setInvokerURLSuffix, setUseHostName
 
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 org.jboss.mx.util.JBossNotificationBroadcasterSupport (src)
addNotificationListener, getNotificationInfo, handleNotification, removeNotificationListener, removeNotificationListener, sendNotification
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.jboss.system.ServiceMBean (src)
getName, getState, getStateString, jbossInternalLifecycle
 
Methods inherited from interface org.jboss.system.Service (src)
create, destroy, start, stop
 

Field Detail

targetMap

protected java.util.HashMap targetMap
Constructor Detail

HttpInvokerHA

public HttpInvokerHA()
Method Detail

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