org.jboss.invocation.unified.interfaces
Class UnifiedInvokerHAProxy
java.lang.Object
org.jboss.invocation.unified.interfaces.UnifiedInvokerProxy
org.jboss.invocation.unified.interfaces.UnifiedInvokerHAProxy
- All Implemented Interfaces:
- Externalizable, Serializable, Remote, org.jboss.invocation.Invoker
public class UnifiedInvokerHAProxy
- extends org.jboss.invocation.unified.interfaces.UnifiedInvokerProxy
- Author:
- Tom Elrod
- See Also:
- Serialized Form
Fields inherited from class org.jboss.invocation.unified.interfaces.UnifiedInvokerProxy |
log |
Fields inherited from interface org.jboss.invocation.Invoker |
ID |
Methods inherited from class org.jboss.invocation.unified.interfaces.UnifiedInvokerProxy |
getClient, getLocator, getServerHostName, getSubSystem, init, isStrictRMIException, setLocator, setStrictRMIException, setSubSystem |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
txFailoverAuthorizations
public static final WeakHashMap txFailoverAuthorizations
UnifiedInvokerHAProxy
public UnifiedInvokerHAProxy()
UnifiedInvokerHAProxy
public UnifiedInvokerHAProxy(org.jboss.remoting.InvokerLocator locator,
boolean isStrictRMIException,
ArrayList targets,
LoadBalancePolicy policy,
String proxyFamilyName,
long viewId)
txContextAllowsFailover
public boolean txContextAllowsFailover(org.jboss.invocation.Invocation invocation)
invocationHasReachedAServer
public void invocationHasReachedAServer(org.jboss.invocation.Invocation invocation)
totalNumberOfTargets
protected int totalNumberOfTargets()
resetView
protected void resetView()
getClient
protected org.jboss.remoting.Client getClient(org.jboss.invocation.Invocation invocationBasedRouting)
throws MalformedURLException
- Gets the remoting client to call on which is selected by the load balancing policy.
If the target InvokerLocator selected is not for the current remoting client, a new one
will be initialized.
- Parameters:
invocationBasedRouting
-
- Returns:
-
- Throws:
MalformedURLException
invoke
public Object invoke(org.jboss.invocation.Invocation invocation)
throws Exception
- Specified by:
invoke
in interface org.jboss.invocation.Invoker
- Overrides:
invoke
in class org.jboss.invocation.unified.interfaces.UnifiedInvokerProxy
- Parameters:
invocation
- A pointer to the invocation object
- Returns:
- Return value of method invocation.
- Throws:
Exception
- Failed to invoke method.
writeExternal
public void writeExternal(ObjectOutput out)
throws IOException
- Externalize this instance and handle obtaining the remoteInvoker stub
- Specified by:
writeExternal
in interface Externalizable
- Overrides:
writeExternal
in class org.jboss.invocation.unified.interfaces.UnifiedInvokerProxy
- Throws:
IOException
readExternal
public void readExternal(ObjectInput in)
throws IOException,
ClassNotFoundException
- Un-externalize this instance.
- Specified by:
readExternal
in interface Externalizable
- Overrides:
readExternal
in class org.jboss.invocation.unified.interfaces.UnifiedInvokerProxy
- Throws:
IOException
ClassNotFoundException
Copyright © 2002 JBoss Group, LLC. All Rights Reserved.