org.jppf.node.policy
Class ExecutionPolicy.OrRule

java.lang.Object
  extended by org.jppf.node.policy.ExecutionPolicy
      extended by org.jppf.node.policy.ExecutionPolicy.LogicalRule
          extended by org.jppf.node.policy.ExecutionPolicy.OrRule
All Implemented Interfaces:
Serializable
Enclosing class:
ExecutionPolicy

public static class ExecutionPolicy.OrRule
extends ExecutionPolicy.LogicalRule

An execution policy that realizes a logical "OR" combination of multiple policies specified as operands.

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class org.jppf.node.policy.ExecutionPolicy
ExecutionPolicy.AndRule, ExecutionPolicy.LogicalRule, ExecutionPolicy.NotRule, ExecutionPolicy.OrRule, ExecutionPolicy.XorRule
 
Field Summary
 
Fields inherited from class org.jppf.node.policy.ExecutionPolicy.LogicalRule
rules
 
Fields inherited from class org.jppf.node.policy.ExecutionPolicy
computedToString
 
Constructor Summary
ExecutionPolicy.OrRule(ExecutionPolicy... rules)
          Initialize this OR operator with the specified operands.
 
Method Summary
 boolean accepts(JPPFSystemInformation info)
          Determine if a node is acceptable for this policy.
 String toString()
          Print this object to a string.
 
Methods inherited from class org.jppf.node.policy.ExecutionPolicy
and, getProperty, indent, not, or, xor
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ExecutionPolicy.OrRule

public ExecutionPolicy.OrRule(ExecutionPolicy... rules)
Initialize this OR operator with the specified operands.

Parameters:
rules - the rules to combine.
Method Detail

accepts

public boolean accepts(JPPFSystemInformation info)
Determine if a node is acceptable for this policy.

Specified by:
accepts in class ExecutionPolicy
Parameters:
info - system information for the node on which the tasks will run if accepted.
Returns:
true if at least one of the operands' accepts() method returns true.
See Also:
ExecutionPolicy.accepts(org.jppf.management.JPPFSystemInformation)

toString

public String toString()
Print this object to a string.

Overrides:
toString in class ExecutionPolicy.LogicalRule
Returns:
an XML string representation of this object
See Also:
Object.toString()


Copyright © 2005-2010 JPPF Team.