org.jboss.invocation.http.server
Class HttpInvokerHA

java.lang.Object
  extended by org.jboss.mx.util.JBossNotificationBroadcasterSupport
      extended by org.jboss.system.ServiceMBeanSupport
          extended by org.jboss.invocation.http.server.HttpInvoker
              extended by org.jboss.invocation.http.server.HttpInvokerHA
All Implemented Interfaces:
javax.management.MBeanRegistration, javax.management.NotificationBroadcaster, javax.management.NotificationEmitter, org.jboss.invocation.http.server.HttpInvokerMBean, InvokerHA, org.jboss.system.Service, org.jboss.system.ServiceMBean

public class HttpInvokerHA
extends org.jboss.invocation.http.server.HttpInvoker
implements InvokerHA

An extension of the HttpInvoker and supports clustering of HTTP invokers.

Version:
$Revision: 1.2.6.1 $
Author:
Field Summary
protected  HashMap targetMap
           
 
Fields inherited from class org.jboss.system.ServiceMBeanSupport
log, server, SERVICE_CONTROLLER_SIG, serviceName
 
Fields inherited from interface org.jboss.system.ServiceMBean
CREATE_EVENT, CREATED, DESTROY_EVENT, DESTROYED, FAILED, REGISTERED, START_EVENT, STARTED, STARTING, states, STOP_EVENT, STOPPED, STOPPING, UNREGISTERED
 
Constructor Summary
HttpInvokerHA()
           
 
Method Summary
 org.jboss.invocation.Invoker createProxy(javax.management.ObjectName targetName, LoadBalancePolicy policy, String proxyFamilyName)
           
protected  void destroyService()
           
 Serializable getStub()
           
 Object invoke(org.jboss.invocation.Invocation invocation)
          Invoke a Remote interface method.
 void registerBean(javax.management.ObjectName targetName, HATarget target)
           
protected  void startService()
           
protected  void stopService()
           
 void unregisterBean(javax.management.ObjectName targetName)
           
 
Methods inherited from class org.jboss.invocation.http.server.HttpInvoker
checkInvokerURL, getInvokerURL, getInvokerURLPrefix, getInvokerURLSuffix, getUseHostName, importTPC, setInvokerURL, setInvokerURLPrefix, setInvokerURLSuffix, setUseHostName
 
Methods inherited from class org.jboss.system.ServiceMBeanSupport
create, createService, destroy, getDeploymentInfo, 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
addNotificationListener, getNotificationInfo, handleNotification, nextNotificationSequenceNumber, 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
getName, getState, getStateString, jbossInternalLifecycle
 
Methods inherited from interface org.jboss.system.Service
create, destroy, start, stop
 

Field Detail

targetMap

protected HashMap targetMap
Constructor Detail

HttpInvokerHA

public HttpInvokerHA()
Method Detail

startService

protected void startService()
                     throws Exception
Overrides:
startService in class org.jboss.invocation.http.server.HttpInvoker
Throws:
Exception

stopService

protected void stopService()
Overrides:
stopService in class org.jboss.invocation.http.server.HttpInvoker

destroyService

protected void destroyService()
Overrides:
destroyService in class org.jboss.invocation.http.server.HttpInvoker

registerBean

public void registerBean(javax.management.ObjectName targetName,
                         HATarget target)
                  throws Exception
Specified by:
registerBean in interface InvokerHA
Throws:
Exception

unregisterBean

public void unregisterBean(javax.management.ObjectName targetName)
                    throws Exception
Specified by:
unregisterBean in interface InvokerHA
Throws:
Exception

createProxy

public org.jboss.invocation.Invoker createProxy(javax.management.ObjectName targetName,
                                                LoadBalancePolicy policy,
                                                String proxyFamilyName)
                                         throws Exception
Specified by:
createProxy in interface InvokerHA
Throws:
Exception

getStub

public Serializable getStub()
Specified by:
getStub in interface InvokerHA

invoke

public Object invoke(org.jboss.invocation.Invocation invocation)
              throws Exception
Invoke a Remote interface method.

Specified by:
invoke in interface org.jboss.invocation.http.server.HttpInvokerMBean
Overrides:
invoke in class org.jboss.invocation.http.server.HttpInvoker
Throws:
Exception


Copyright © 2002 JBoss Group, LLC. All Rights Reserved.