gov.bnl.star.offline.scheduler
Interface Policy

All Known Implementing Classes:
AssignmentByQueueMonitorPolicy, ClusterAssignmentByMonitorPolicy, ClusterAssignmentByPercentagePolicy, DynamicConfigPolicy, PassivePolicy, ResonanceGroupPolicy, SiteForwardPolicy

public interface Policy

A policy to decide how and where a job should be dispatched. A policy class will be needed to create any scheduler.

Version:
$Revision: 1.13 $ $Date: 2006/11/21 00:41:32 $
Author:
Gabriele Carcassi

Method Summary
 java.util.List assignTargetMachine(Request request)
          Decides how and where to run the job according to its requirements.
 

Method Detail

assignTargetMachine

java.util.List assignTargetMachine(Request request)
Decides how and where to run the job according to its requirements. The policy has to fill in the process list of the job description. This will be used by the dispatcher to execute the job. A policy, therefore, will receive a JobRequest with no processes, and it should return a JobRequest with all the necessary processes created and fully configured.

The Policy is allowed to query the farm status, use the catalog and trigger file movements. It can slice the job into more than one process, according to, for example, where the input files are located.

Parameters:
request - the job description and its requirements


Copyright © 2002-2004 STAR collaboration - Brookhaven National Laboratory. All Rights Reserved.