org.objectweb.proactive.scheduler.policy
Class MixedPolicy

java.lang.Object
  extended by org.objectweb.proactive.scheduler.policy.AbstractPolicy
      extended by org.objectweb.proactive.scheduler.policy.MixedPolicy
All Implemented Interfaces:
java.io.Serializable, Active, RunActive, JobConstants, SchedulerConstants

public class MixedPolicy
extends AbstractPolicy

This is the mixed policy class that takes, while instanciating, the policy names and creates a vector of the policies for the only purpose of using its comparor

Author:
cjarjouh
See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.objectweb.proactive.scheduler.policy.AbstractPolicy
deployedTasks, queue, ressourceManager
 
Fields inherited from interface org.objectweb.proactive.scheduler.JobConstants
XML_DESC
 
Fields inherited from interface org.objectweb.proactive.scheduler.SchedulerConstants
JOB_ID, JVM_PARAMETERS, POLICY_NAME, SCHEDULER_NODE_NAME, SCHEDULER_URL, XML_PATH
 
Constructor Summary
MixedPolicy()
           
MixedPolicy(RessourceManager ressourceManager, java.util.Vector policyNames)
          Here we create a mixed policy job manager by submitting the ressource manager object and a vector of the policies that shall form this policy.
 
Method Summary
 boolean isToBeServed(GenericJob job1, GenericJob job2)
          Returns true if job1 is to be served before job2 according to the policy.
 
Methods inherited from class org.objectweb.proactive.scheduler.policy.AbstractPolicy
checkRunningTasks, del, end, execute, getDeployedTasks, getQueue, nextTask, runActivity, stat, sub
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MixedPolicy

public MixedPolicy()

MixedPolicy

public MixedPolicy(RessourceManager ressourceManager,
                   java.util.Vector policyNames)
Here we create a mixed policy job manager by submitting the ressource manager object and a vector of the policies that shall form this policy.

Parameters:
ressourceManager - the reference to the ressource manager active object responsible of the ressourc allocation
policyNames - a vector of the policies names that form this policy
Method Detail

isToBeServed

public boolean isToBeServed(GenericJob job1,
                            GenericJob job2)
Returns true if job1 is to be served before job2 according to the policy.

Specified by:
isToBeServed in class AbstractPolicy
Parameters:
job1 -
job2 -
Returns:
true if job1 is to be served before job2.


Copyright 2001-2007 INRIA All Rights Reserved.