org.jppf.node.policy
Class PolicyRuleTest

java.lang.Object
  extended by org.jppf.node.policy.ExecutionPolicy
      extended by org.jppf.node.policy.PolicyRuleTest
All Implemented Interfaces:
Serializable

public class PolicyRuleTest
extends ExecutionPolicy

Simple test of an execution policy.

Author:
Laurent Cohen
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
computedToString
 
Constructor Summary
PolicyRuleTest()
           
 
Method Summary
 boolean accepts(JPPFSystemInformation info)
          Determines whether this policy accepts the specified node.
 
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, toString, wait, wait, wait
 

Constructor Detail

PolicyRuleTest

public PolicyRuleTest()
Method Detail

accepts

public boolean accepts(JPPFSystemInformation info)
Determines whether this policy accepts the specified node.

Specified by:
accepts in class ExecutionPolicy
Parameters:
info - system information for the node on which the tasks will run if accepted.
Returns:
true if the node is accepted, false otherwise.
See Also:
ExecutionPolicy.accepts(org.jppf.management.JPPFSystemInformation)


Copyright © 2005-2010 JPPF Team.