|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jboss.invocation.jrmp.interfaces.JRMPInvokerProxy
org.jboss.invocation.jrmp.interfaces.JRMPInvokerProxyHA
public class JRMPInvokerProxyHA
An extension of the JRMPInvokerProxy that supports failover and load balancing among a
Field Summary | |
---|---|
static HashSet |
colocation
|
protected LoadBalancePolicy |
loadBalancePolicy
|
protected String |
proxyFamilyName
|
protected boolean |
trace
Trace level logging flag only set when the proxy is created or read from JNDI |
static Map |
txFailoverAuthorizations
|
Fields inherited from class org.jboss.invocation.jrmp.interfaces.JRMPInvokerProxy |
---|
MAX_RETRIES, remoteInvoker |
Fields inherited from interface org.jboss.invocation.Invoker |
---|
ID |
Constructor Summary | |
---|---|
JRMPInvokerProxyHA()
|
|
JRMPInvokerProxyHA(List targets,
LoadBalancePolicy policy,
String proxyFamilyName,
long viewId)
|
Method Summary | |
---|---|
void |
forbidTransactionFailover(Object tpc)
|
org.jboss.ha.framework.interfaces.FamilyClusterInfo |
getFamilyClusterInfo()
|
String |
getProxyFamilyName()
|
Object |
getRemoteTarget()
|
Object |
getRemoteTarget(Invocation invocationBasedRouting)
|
Object |
getTransactionPropagationContext()
Overriden method to rethrow any potential SystemException arising from it. |
void |
invocationHasReachedAServer(Invocation invocation)
|
Object |
invoke(Invocation invocation)
The invocation on the delegate, calls the right invoker. |
boolean |
isLocal(Invocation invocation)
Returns wether we are local to the originating container or not. |
void |
readExternal(ObjectInput in)
Un-externalize this instance. |
void |
remoteTargetHasFailed(Object target)
|
protected void |
removeDeadTarget(Object target)
|
protected void |
resetView()
|
protected int |
totalNumberOfTargets()
|
boolean |
txContextAllowsFailover(Invocation invocation)
|
void |
updateClusterInfo(ArrayList targets,
long viewId)
|
void |
writeExternal(ObjectOutput out)
Externalize this instance. |
Methods inherited from class org.jboss.invocation.jrmp.interfaces.JRMPInvokerProxy |
---|
getServerHostName |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final HashSet colocation
public static final Map txFailoverAuthorizations
protected LoadBalancePolicy loadBalancePolicy
protected String proxyFamilyName
protected transient boolean trace
Constructor Detail |
---|
public JRMPInvokerProxyHA()
public JRMPInvokerProxyHA(List targets, LoadBalancePolicy policy, String proxyFamilyName, long viewId)
Method Detail |
---|
public String getProxyFamilyName()
public void updateClusterInfo(ArrayList targets, long viewId)
updateClusterInfo
in interface InvokerProxyHA
public org.jboss.ha.framework.interfaces.FamilyClusterInfo getFamilyClusterInfo()
getFamilyClusterInfo
in interface InvokerProxyHA
public void forbidTransactionFailover(Object tpc)
forbidTransactionFailover
in interface InvokerProxyHA
public Object getRemoteTarget()
public Object getRemoteTarget(Invocation invocationBasedRouting)
public void remoteTargetHasFailed(Object target)
protected void removeDeadTarget(Object target)
protected int totalNumberOfTargets()
protected void resetView()
public boolean isLocal(Invocation invocation)
public boolean txContextAllowsFailover(Invocation invocation)
public void invocationHasReachedAServer(Invocation invocation)
public Object invoke(Invocation invocation) throws Exception
invoke
in interface Invoker
invoke
in class JRMPInvokerProxy
Exception
public void writeExternal(ObjectOutput out) throws IOException
writeExternal
in interface Externalizable
writeExternal
in class JRMPInvokerProxy
IOException
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
readExternal
in interface Externalizable
readExternal
in class JRMPInvokerProxy
IOException
ClassNotFoundException
public Object getTransactionPropagationContext()
getTransactionPropagationContext
in class JRMPInvokerProxy
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |