|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.metamatrix.platform.service.proxy.RoundRobinSelectionPolicy
public class RoundRobinSelectionPolicy
Constructor Summary | |
---|---|
RoundRobinSelectionPolicy(boolean preferLocal)
ctor |
Method Summary | |
---|---|
java.util.List |
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 RoundRobinSelectionPolicy(boolean preferLocal)
Method Detail |
---|
public ServiceRegistryBinding getNextInstance() throws ServiceNotFoundException
getNextInstance
in interface ServiceSelectionPolicy
ServiceRegistryBinding
for the next instance after
being operated on by the selection policy.
ServiceNotFoundException
- if there are no services available.
ServiceNotFoundException
- if the policy has no more services to
hand out.com.metamatrix.common.service.ServiceInterface
public java.util.List getInstances() throws ServiceNotFoundException
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 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 |