|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.metamatrix.platform.service.proxy.RandomSelectionPolicy
public class RandomSelectionPolicy
Constructor Summary | |
---|---|
RandomSelectionPolicy(boolean preferLocal)
ctor |
Method Summary | |
---|---|
java.util.List<ServiceRegistryBinding> |
getInstances()
Get list of instances from the given service selection policy. |
ServiceRegistryBinding |
getNextInstance()
Get the next service instance from the given service selection policy. |
void |
updateServices(java.util.List<ServiceRegistryBinding> localServices,
java.util.List<ServiceRegistryBinding> remoteServices)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public RandomSelectionPolicy(boolean preferLocal)
Method Detail |
---|
public java.util.List<ServiceRegistryBinding> getInstances() throws ServiceNotFoundException
ServiceSelectionPolicy
getInstances
in interface ServiceSelectionPolicy
ServiceRegistryBinding
objects for the instances after
being operated on by the selection policy.
ServiceNotFoundException
- if the policy has no more services to
hand out.com.metamatrix.common.service.ServiceInterface
public ServiceRegistryBinding getNextInstance() throws ServiceNotFoundException
ServiceSelectionPolicy
getNextInstance
in interface ServiceSelectionPolicy
ServiceRegistryBinding
for the next instance after
being operated on by the selection policy.
ServiceNotFoundException
- if the policy has no more services to
hand out.com.metamatrix.common.service.ServiceInterface
public void updateServices(java.util.List<ServiceRegistryBinding> localServices, java.util.List<ServiceRegistryBinding> remoteServices)
updateServices
in interface ServiceSelectionPolicy
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |