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
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 queryquery
- the query that generated the resultassignment
- 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.