|
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.jppf.node.policy.ExecutionPolicy
public abstract class ExecutionPolicy
Interface for all execution policy implementations.
| Nested Class Summary | |
|---|---|
static class |
ExecutionPolicy.AndRule
An execution policy that realizes a logical "AND" combination of multiple policies specified as operands. |
static class |
ExecutionPolicy.LogicalRule
An execution policy that realizes a binary logical combination of the policies specified as operands. |
static class |
ExecutionPolicy.NotRule
An execution policy that realizes the negation of a policy specified as operand. |
static class |
ExecutionPolicy.OrRule
An execution policy that realizes a logical "OR" combination of multiple policies specified as operands. |
static class |
ExecutionPolicy.XorRule
An execution policy that realizes a logical "XOR" combination of multiple policies specified as operands. |
| Field Summary | |
|---|---|
protected String |
computedToString
Stores the XML representation of this object. |
| Constructor Summary | |
|---|---|
ExecutionPolicy()
|
|
| Method Summary | |
|---|---|
abstract boolean |
accepts(JPPFSystemInformation info)
Determines whether this policy accepts the specified node. |
ExecutionPolicy |
and(ExecutionPolicy... rules)
Create an execution policy that is a logical "AND" combination of this policy and the one specified as operand. |
String |
getProperty(JPPFSystemInformation info,
String name)
Get the value of the specified property in the specified set of system information. |
protected static String |
indent()
Get an indented string. |
ExecutionPolicy |
not()
Create an execution policy that is a negation of this policy. |
ExecutionPolicy |
or(ExecutionPolicy... rules)
Create an execution policy that is a logical "OR" combination of this policy and those specified as operands. |
ExecutionPolicy |
xor(ExecutionPolicy... rules)
Create an execution policy that is a logical "XOR" combination of the 2 policies specified as operands. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected String computedToString
| Constructor Detail |
|---|
public ExecutionPolicy()
| Method Detail |
|---|
public abstract boolean accepts(JPPFSystemInformation info)
info - system information for the node on which the tasks will run if accepted.
public ExecutionPolicy and(ExecutionPolicy... rules)
rules - rules to combine this one with.
public ExecutionPolicy or(ExecutionPolicy... rules)
rules - rules to combine this one with.
public ExecutionPolicy xor(ExecutionPolicy... rules)
rules - rules to combine this one with.
public ExecutionPolicy not()
public String getProperty(JPPFSystemInformation info,
String name)
info - the system information in which to lookup the property.name - the name of the proeprty to look for.
protected static String indent()
toStringIndent.
|
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||