|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.metamatrix.platform.service.proxy.ServiceProxy
public abstract class ServiceProxy
Provides common functionality for all service proxies.
Proxies for a given type of service extend this class and provide the required
implementation.
Field Summary | |
---|---|
protected static int |
MAX_RETRY_DELAY_VAL
|
Constructor Summary | |
---|---|
ServiceProxy(java.lang.String serviceType)
|
Method Summary | |
---|---|
protected java.util.List<ServiceRegistryBinding> |
getInstances()
Get the list of service instances from the given service selection policy. |
protected ServiceRegistryBinding |
getNextInstance()
Get the next service instance from the given service selection policy. |
int |
getRetryLimit()
|
java.lang.String |
getServiceType()
Returns the service type that this proxy proxies for. |
boolean |
getStickyFlag()
|
protected void |
logException(java.lang.Throwable e)
Log an exception. |
void |
setRetryLimit(int retryLimit)
|
void |
setServiceSelectionPolicy(ServiceSelectionPolicy policy)
Set the ServiceSelectionPolicy that this proxy will use to
select service instances for its lifetime. |
void |
setStickyFlag(boolean sticky)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface java.lang.reflect.InvocationHandler |
---|
invoke |
Field Detail |
---|
protected static final int MAX_RETRY_DELAY_VAL
Constructor Detail |
---|
public ServiceProxy(java.lang.String serviceType)
Method Detail |
---|
public java.lang.String getServiceType()
public void setServiceSelectionPolicy(ServiceSelectionPolicy policy)
ServiceSelectionPolicy
that this proxy will use to
select service instances for its lifetime.
policy
- The ServiceSelectionPolicy
to use.protected ServiceRegistryBinding getNextInstance() throws ServiceNotFoundException
ServiceRegistryBinding
for the next instance after
being operated on by the selection policy.
ServiceNotFoundException
protected java.util.List<ServiceRegistryBinding> getInstances() throws ServiceNotFoundException
ServiceRegistryBinding
for the next instance after
being operated on by the selection policy.
ServiceNotFoundException
public int getRetryLimit()
public void setRetryLimit(int retryLimit)
protected final void logException(java.lang.Throwable e)
public boolean getStickyFlag()
com.metamatrix.platform.service.proxy.ServiceProxyInterface#getStickyFlag()
public void setStickyFlag(boolean sticky)
com.metamatrix.platform.service.proxy.ServiceProxyInterface#setStickyFlag(boolean)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |