public class RandomAgentLauncherSelectorImpl extends java.lang.Object implements AgentLauncherSelector
AgentLauncherSelector where a random AgentLauncher is selected from the
options presented.| Constructor and Description |
|---|
RandomAgentLauncherSelectorImpl(java.util.Collection<AgentLauncher> agentLaunchers)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
ResourceSelectionResult<R> |
select(C context)
Select a resource from the given set of resources if possible.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetAgentLaunchersselectpublic RandomAgentLauncherSelectorImpl(java.util.Collection<AgentLauncher> agentLaunchers)
agentLaunchers - the list of available AgentLauncher.public ResourceSelectionResult<R> select(@Valid C context) throws ResourceSelectionException
select in interface ResourceSelector<R,C extends ResourceSelectionContext<R>>context - The context specific for this resource selectionResourceSelectionResult instance which contains information about the result of this
invocationResourceSelectionException - When the underlying implementation can't successfully come to a selection
decision