|
||||||||||
PREV CLASS (src) NEXT CLASS (src) | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jboss.invocation.http.interfaces.HttpInvokerProxyHA
The client side Http invoker proxy that posts an invocation to the InvokerServlet using the HttpURLConnection created from a target url. This proxy handles failover using its associated LoadBalancePolicy and current list of URL strings. The candidate URLs are updated dynamically after an invocation if the cluster partitation view has changed.
Field Summary | |
protected FamilyClusterInfo (src) |
familyClusterInfo
|
protected LoadBalancePolicy (src) |
loadBalancePolicy
|
protected java.lang.String |
proxyFamilyName
|
protected boolean |
trace
Trace level logging flag only set when the proxy is created or read from JNDI |
Fields inherited from interface org.jboss.invocation.Invoker (src) |
ID |
Constructor Summary | |
HttpInvokerProxyHA()
|
|
HttpInvokerProxyHA(java.util.ArrayList targets,
long viewId,
LoadBalancePolicy (src) policy,
java.lang.String proxyFamilyName)
|
Method Summary | |
FamilyClusterInfo (src) |
getClusterInfo()
|
java.lang.Object |
getRemoteTarget()
|
java.lang.Object |
getRemoteTarget(Invocation (src) invocationBasedRouting)
|
java.lang.String |
getServerHostName()
A free form String identifier for this delegate invoker, can be clustered or target node This should evolve in a more advanced meta-inf object |
java.lang.Object |
invoke(Invocation (src) invocation)
This method builds a MarshalledInvocation from the invocation passed in and then does a post to the target URL. |
void |
readExternal(java.io.ObjectInput in)
Un-externalize this instance. |
void |
remoteTargetHasFailed(java.lang.Object target)
|
protected void |
removeDeadTarget(java.lang.Object target)
|
protected void |
resetView()
|
protected int |
totalNumberOfTargets()
|
void |
updateClusterInfo(java.util.ArrayList targets,
long viewId)
|
void |
writeExternal(java.io.ObjectOutput out)
Externalize this instance. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected LoadBalancePolicy (src) loadBalancePolicy
protected java.lang.String proxyFamilyName
protected FamilyClusterInfo (src) familyClusterInfo
protected transient boolean trace
Constructor Detail |
public HttpInvokerProxyHA()
public HttpInvokerProxyHA(java.util.ArrayList targets, long viewId, LoadBalancePolicy (src) policy, java.lang.String proxyFamilyName)
targets
- the list of URLs through which clients should contact the
InvokerServlet.policy
- the policy for choosing among targets ClusteringTargetsRepository under
which this proxy is to be storedproxyFamilyName
- the name into theMethod Detail |
public void updateClusterInfo(java.util.ArrayList targets, long viewId)
updateClusterInfo
in interface InvokerProxyHA (src)
public java.lang.String getServerHostName() throws java.lang.Exception
Invoker (src)
getServerHostName
in interface Invoker (src)
java.lang.Exception
public FamilyClusterInfo (src) getClusterInfo()
public java.lang.Object getRemoteTarget()
public java.lang.Object getRemoteTarget(Invocation (src) invocationBasedRouting)
public void remoteTargetHasFailed(java.lang.Object target)
protected int totalNumberOfTargets()
protected void removeDeadTarget(java.lang.Object target)
protected void resetView()
public java.lang.Object invoke(Invocation (src) invocation) throws java.lang.Exception
invoke
in interface Invoker (src)
invocation
- A pointer to the invocation object
java.lang.Exception
- Failed to invoke method.public void writeExternal(java.io.ObjectOutput out) throws java.io.IOException
writeExternal
in interface java.io.Externalizable
java.io.IOException
public void readExternal(java.io.ObjectInput in) throws java.io.IOException, java.lang.ClassNotFoundException
readExternal
in interface java.io.Externalizable
java.io.IOException
java.lang.ClassNotFoundException
|
||||||||||
PREV CLASS (src) NEXT CLASS (src) | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |