org.jboss.invocation.http.server
Class HttpProxyFactoryHA

java.lang.Object
  extended byorg.jboss.mx.util.JBossNotificationBroadcasterSupport (src) 
      extended byorg.jboss.system.ServiceMBeanSupport (src) 
          extended byorg.jboss.invocation.http.server.HttpProxyFactory (src) 
              extended byorg.jboss.invocation.http.server.HttpProxyFactoryHA
All Implemented Interfaces:
HttpProxyFactoryHAMBean (src) , HttpProxyFactoryMBean (src) , MBeanRegistration (src) , NotificationBroadcaster (src) , NotificationEmitter (src) , Service (src) , ServiceMBean (src)

public class HttpProxyFactoryHA
extends HttpProxyFactory (src)
implements HttpProxyFactoryHAMBean (src)

An extension of HttpProxyFactory that supports clustering of invoker proxies. It does this by creating a HATarget that monitors the replication of the invoker url and creates a HAInvokerWrapper that handles wrapping the underlying invocation result with changes to the HATarget replication view.


Field Summary
 
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
HttpProxyFactoryHA()
           
 
Method Summary
protected  Invoker (src) createInvoker()
          Override the HttpProxyFactory method to create a HttpInvokerProxyHA.
protected  java.util.ArrayList defineInterceptors()
           
 void destroy()
          Destroys the HATarget
 java.lang.Class getLoadBalancePolicy()
          Get the server side mbean that exposes the invoke operation for the exported interface
 java.lang.String getPartitionName()
          Get the name of the cluster partition the invoker is deployed in
 ObjectName (src) getRealJmxInvokerName()
          A read-only property for accessing the non-wrapped JMX invoker
 void setInvokerName(ObjectName (src)  jmxInvokerName)
          Override the superclass method to create a wrapped ObjectName for the HAInvokerWrapper mbean.
 void setLoadBalancePolicy(java.lang.Class policyClass)
          Set the server side mbean that exposes the invoke operation for the exported interface
 void setPartitionName(java.lang.String name)
          Set the name of the cluster partition the invoker is deployed in
protected  void stopService()
          Override the HttpProxyFactory stop to unregister the HAInvokerWrapper mbean
 
Methods inherited from class org.jboss.invocation.http.server.HttpProxyFactory (src)
checkInvokerURL, defineDefaultInterceptors, getClientInterceptors, getExportedInterface, getInvokerName, getInvokerURL, getInvokerURLPrefix, getInvokerURLSuffix, getJndiName, getProxy, getProxy, getUseHostName, setClientInterceptors, setExportedInterface, setInvokerURL, setInvokerURLPrefix, setInvokerURLSuffix, setJndiName, setUseHostName, startService
 
Methods inherited from class org.jboss.system.ServiceMBeanSupport (src)
create, createService, destroyService, 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.invocation.http.server.HttpProxyFactoryMBean (src)
getClientInterceptors, getExportedInterface, getInvokerName, getInvokerURL, getInvokerURLPrefix, getInvokerURLSuffix, getJndiName, getProxy, getProxy, getUseHostName, setClientInterceptors, setExportedInterface, setInvokerURL, setInvokerURLPrefix, setInvokerURLSuffix, setJndiName, setUseHostName
 
Methods inherited from interface org.jboss.system.Service (src)
create, start, stop
 

Constructor Detail

HttpProxyFactoryHA

public HttpProxyFactoryHA()
Method Detail

getLoadBalancePolicy

public java.lang.Class getLoadBalancePolicy()
Get the server side mbean that exposes the invoke operation for the exported interface

Specified by:
getLoadBalancePolicy in interface HttpProxyFactoryHAMBean (src)

setLoadBalancePolicy

public void setLoadBalancePolicy(java.lang.Class policyClass)
Set the server side mbean that exposes the invoke operation for the exported interface

Specified by:
setLoadBalancePolicy in interface HttpProxyFactoryHAMBean (src)

getPartitionName

public java.lang.String getPartitionName()
Get the name of the cluster partition the invoker is deployed in

Specified by:
getPartitionName in interface HttpProxyFactoryHAMBean (src)

setPartitionName

public void setPartitionName(java.lang.String name)
Set the name of the cluster partition the invoker is deployed in

Specified by:
setPartitionName in interface HttpProxyFactoryHAMBean (src)

setInvokerName

public void setInvokerName(ObjectName (src)  jmxInvokerName)
Override the superclass method to create a wrapped ObjectName for the HAInvokerWrapper mbean. This will be the name of the invoker as known by the proxy. The HAInvokerWrapper is the HttpProxyFactoryHA name + wrapperType=httpHA

Specified by:
setInvokerName in interface HttpProxyFactoryMBean (src)
Overrides:
setInvokerName in class HttpProxyFactory (src)
Parameters:
jmxInvokerName -

getRealJmxInvokerName

public ObjectName (src)  getRealJmxInvokerName()
Description copied from interface: HttpProxyFactoryHAMBean (src)
A read-only property for accessing the non-wrapped JMX invoker

Specified by:
getRealJmxInvokerName in interface HttpProxyFactoryHAMBean (src)
Returns:
the ObjectName the HAInvokerWrapper delegates to

defineInterceptors

protected java.util.ArrayList defineInterceptors()

createInvoker

protected Invoker (src)  createInvoker()
                         throws java.lang.Exception
Override the HttpProxyFactory method to create a HttpInvokerProxyHA.

Overrides:
createInvoker in class HttpProxyFactory (src)
Returns:
Throws:
java.lang.Exception

stopService

protected void stopService()
                    throws java.lang.Exception
Override the HttpProxyFactory stop to unregister the HAInvokerWrapper mbean

Overrides:
stopService in class HttpProxyFactory (src)
Throws:
java.lang.Exception

destroy

public void destroy()
Destroys the HATarget

Specified by:
destroy in interface Service (src)
Overrides:
destroy in class ServiceMBeanSupport (src)