当前页面:
在线文档首页 >
JBoss 4.0.1 sp1 cluster API Documentation 英文版文档
JRMPInvokerProxyHA (JBoss Cluster API) - JBoss 4.0.1 sp1 cluster API Documentation 英文版文档
org.jboss.invocation.jrmp.interfaces
Class JRMPInvokerProxyHA
java.lang.Object
org.jboss.invocation.jrmp.interfaces.JRMPInvokerProxy
org.jboss.invocation.jrmp.interfaces.JRMPInvokerProxyHA
- All Implemented Interfaces:
- Externalizable, org.jboss.invocation.Invoker, InvokerProxyHA, Remote, Serializable
- public class JRMPInvokerProxyHA
- extends org.jboss.invocation.jrmp.interfaces.JRMPInvokerProxy
- implements InvokerProxyHA, Externalizable
An extension of the JRMPInvokerProxy that supports failover and load
balancing among a
- Version:
- $Revision: 1.13.6.1 $
- Author:
- Marc Fleury, Scott.Stark@jboss.org
- See Also:
- Serialized Form
Fields inherited from class org.jboss.invocation.jrmp.interfaces.JRMPInvokerProxy |
MAX_RETRIES, remoteInvoker |
Fields inherited from interface org.jboss.invocation.Invoker |
ID |
Methods inherited from class org.jboss.invocation.jrmp.interfaces.JRMPInvokerProxy |
getServerHostName, getTransactionPropagationContext |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
txFailoverAuthorizations
public static final WeakHashMap txFailoverAuthorizations
loadBalancePolicy
protected LoadBalancePolicy loadBalancePolicy
proxyFamilyName
protected String proxyFamilyName
trace
protected transient boolean trace
- Trace level logging flag only set when the proxy is created or read from JNDI
JRMPInvokerProxyHA
public JRMPInvokerProxyHA()
JRMPInvokerProxyHA
public JRMPInvokerProxyHA(ArrayList targets,
LoadBalancePolicy policy,
String proxyFamilyName,
long viewId)
updateClusterInfo
public void updateClusterInfo(ArrayList targets,
long viewId)
- Specified by:
updateClusterInfo
in interface InvokerProxyHA
getRemoteTarget
public Object getRemoteTarget()
getRemoteTarget
public Object getRemoteTarget(org.jboss.invocation.Invocation invocationBasedRouting)
remoteTargetHasFailed
public void remoteTargetHasFailed(Object target)
removeDeadTarget
protected void removeDeadTarget(Object target)
totalNumberOfTargets
protected int totalNumberOfTargets()
resetView
protected void resetView()
txContextAllowsFailover
public boolean txContextAllowsFailover(org.jboss.invocation.Invocation invocation)
invocationHasReachedAServer
public void invocationHasReachedAServer(org.jboss.invocation.Invocation invocation)
invoke
public Object invoke(org.jboss.invocation.Invocation invocation)
throws Exception
- The invocation on the delegate, calls the right invoker. Remote if we are remote, local if we
are local.
- Specified by:
invoke
in interface org.jboss.invocation.Invoker
- Throws:
Exception
writeExternal
public void writeExternal(ObjectOutput out)
throws IOException
- Externalize this instance.
If this instance lives in a different VM than its container
invoker, the remote interface of the container invoker is
not externalized.
- Specified by:
writeExternal
in interface Externalizable
- Throws:
IOException
readExternal
public void readExternal(ObjectInput in)
throws IOException,
ClassNotFoundException
- Un-externalize this instance.
We check timestamps of the interfaces to see if the instance is in the original VM of creation
- Specified by:
readExternal
in interface Externalizable
- Throws:
IOException
ClassNotFoundException
Copyright © 2002 JBoss Group, LLC. All Rights Reserved.