gov.bnl.star.offline.scheduler.policy
Interface AssignmentStrategy

All Known Implementing Classes:
SelectorAssignmentStrategy

public interface AssignmentStrategy

Given the query result and the filelist, the AssignmentStrategy assign the copies of the files to the different targets (single nodes, or groups).

This is no easy problem, and is in the end a good part of the Policy. That is why we decided to create directly an interface for this part of the policy: to be able to play with different alternatives.

Also, in different cases it might be easier to find an optimal solution. In that case, different implementation might be used.

Version:
$Revision: 1.9 $ $Date: 2006/11/21 00:41:31 $
Author:
Gabriele Carcassi

Method Summary
 FileAssignment assignFiles(Request job, QueryResult[] results, CatalogQuery[] queries, java.util.List fileList)
          Executes the strategy, by assigning all the copies of the files and creating a FileAssignment.
 

Method Detail

assignFiles

FileAssignment assignFiles(Request job,
                           QueryResult[] results,
                           CatalogQuery[] queries,
                           java.util.List fileList)
Executes the strategy, by assigning all the copies of the files and creating a FileAssignment.

Parameters:
job - the job request
results - the results of all the queries
queries - all the queries
fileList - the files gathered directly from the description
Returns:
the file assignment


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