|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object ch.elca.el4j.services.remoting.AbstractRemotingProtocol ch.elca.el4j.services.remoting.protocol.loadbalancing.protocol.LoadBalancingProtocol
public class LoadBalancingProtocol
This class implements a load balancer on the protocol level. It composes multiple protocols and selects a particular protocol instance according to some policy in order to perform the remote call. This policy can be passed as a configuration parameter -- random policy is used as default policy.
Upon failure in the first instantiation of protocol proxies the load balancer automatically tries another protocol. Once a protocol is successfully proxied the load balancer behaves similarly to any protocol instance. In particular, connection exceptions are escalated to the user.
AbstractPolicy
,
ch.elca.el4j.services.remoting.protocol.loadbalancing.policy.LoadBalancingProtcolConfiguration
,
AbstractRemotingProtocol
Field Summary |
---|
Fields inherited from class ch.elca.el4j.services.remoting.AbstractRemotingProtocol |
---|
m_parentApplicationContext |
Constructor Summary | |
---|---|
LoadBalancingProtocol()
|
Method Summary | |
---|---|
void |
afterPropertiesSet()
|
Object |
createExporterBean(RemotingServiceExporter exporterBean,
Class serviceInterfaceWithContext,
Object serviceProxy)
Method to create the exporter bean. |
Object |
createProxyBean(RemotingProxyFactoryBean proxyBean,
Class serviceInterfaceWithContext)
Method to create the proxy bean. |
Class |
getExporterObjectType()
Method to get the class type of the exporter object. |
Class |
getProxyObjectType()
Method to get the class type of the proxy object. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public LoadBalancingProtocol()
Method Detail |
---|
public void afterPropertiesSet() throws Exception
Exception
public Object createProxyBean(RemotingProxyFactoryBean proxyBean, Class serviceInterfaceWithContext)
createProxyBean
in class AbstractRemotingProtocol
proxyBean
- Is the bean where the method gets information about the proxy
bean.serviceInterfaceWithContext
- Is the modified interface.
public Object createExporterBean(RemotingServiceExporter exporterBean, Class serviceInterfaceWithContext, Object serviceProxy)
createExporterBean
in class AbstractRemotingProtocol
exporterBean
- Is the bean where the method gets information about the
exporter bean.serviceInterfaceWithContext
- Is the modified interface.serviceProxy
- Is the bean which has to wrapped.
public Class getProxyObjectType()
getProxyObjectType
in class AbstractRemotingProtocol
public Class getExporterObjectType()
getExporterObjectType
in class AbstractRemotingProtocol
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |