@PublicAPI public class Criteria extends Object implements Serializable
Constructor and Description |
---|
Criteria(int size)
Creates criteria instance
|
Modifier and Type | Method and Description |
---|---|
Set<String> |
getAcceptableNodesUrls() |
Map<String,Serializable> |
getBindings()
returns the bindings map used by selection scripts
|
NodeSet |
getBlackList() |
Collection<String> |
getComputationDescriptors() |
List<Map<String,String>> |
getListUsageInfo() |
String |
getNodeAccessToken()
If a token is specified the resource manager only looks for nodes having this token.
|
String |
getNodeSourceRestriction()
If a node source is specified, the resource manager only looks for nodes which belong to the specified node source
|
List<SelectionScript> |
getScripts() |
int |
getSize() |
TopologyDescriptor |
getTopology() |
boolean |
isBestEffort() |
void |
setAcceptableNodesUrls(Set<String> acceptableNodesUrls)
Sets acceptables nodes that can resulting nodes list.
|
void |
setBestEffort(boolean bestEffort)
Sets the mode of selection:
if best effort is true RM returns up to required number of nodes that satisfy to selection scripts and topology
if false it either exact number of empty node set.
|
void |
setBindings(Map<String,Serializable> bindings)
Sets variable bindings map used by selection scripts
|
void |
setBlackList(NodeSet blackList)
Sets nodes that have not be in resulting nodes list.
|
void |
setComputationDescriptors(Collection<String> computationDescriptors)
Sets descriptors of computations for which nodes will be reserved (for information purposes).
|
void |
setListUsageInfo(List<Map<String,String>> listUsageInfo) |
void |
setNodeAccessToken(String nodeAccessToken)
If key is specified the resource manager only looks for nodes having this token.
|
void |
setNodeSourceRestriction(String nodeSourceRestriction)
If a node source is specified, the resource manager only looks for nodes which belong to the specified node source
|
void |
setScripts(List<SelectionScript> scripts)
Sets a selection scripts list.
|
void |
setTopology(TopologyDescriptor topology)
Sets topology criteria for nodes
TopologyDescriptor |
public Criteria(int size)
size
- - required number of nodespublic int getSize()
public TopologyDescriptor getTopology()
TopologyDescriptor
public void setTopology(TopologyDescriptor topology)
TopologyDescriptor
public List<SelectionScript> getScripts()
public void setScripts(List<SelectionScript> scripts)
public void setBindings(Map<String,Serializable> bindings)
bindings
- public Map<String,Serializable> getBindings()
public NodeSet getBlackList()
public void setBlackList(NodeSet blackList)
public void setAcceptableNodesUrls(Set<String> acceptableNodesUrls)
public Set<String> getAcceptableNodesUrls()
public boolean isBestEffort()
public void setBestEffort(boolean bestEffort)
public Collection<String> getComputationDescriptors()
public void setComputationDescriptors(Collection<String> computationDescriptors)
public String getNodeAccessToken()
public void setNodeAccessToken(String nodeAccessToken)
nodeAccessToken
- public String getNodeSourceRestriction()
public void setNodeSourceRestriction(String nodeSourceRestriction)
nodeSourceRestriction
-