gov.bnl.star.offline.scheduler.policy.copyselector
Interface CopySelector

All Known Implementing Classes:
AllCopiesSelector, MinMaxSingleCopySelector, RootdMinMaxSingleCopySelector, SingleCopySelector, XrootdMinMaxSingleCopySelector

public interface CopySelector

Process the result of a query and selected the actual copies to run the job on. This is part of the SelectorAssignmentStrategy, which is a non optimal but reasonable strategy. Refer the strategy documentation for more information

Author:
Gabriele Carcassi

Method Summary
 int selectCopy(QueryResult list, CatalogQuery query, FileAssignment assignment)
          Selects the physical copies from the query result according to the parameters of the query, and puts them in the assignment.
 

Method Detail

selectCopy

int selectCopy(QueryResult list,
               CatalogQuery query,
               FileAssignment assignment)
Selects the physical copies from the query result according to the parameters of the query, and puts them in the assignment. The selector has to guarantee not to remove files from the received assignment, but only add them.

Parameters:
list - the result of the query
query - the query that generated the result
assignment - the assignment where to add the copies
Returns:
the number of files added to the assignment


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