gov.bnl.star.offline.scheduler.policy.copyselector
Class XrootdMinMaxSingleCopySelector

java.lang.Object
  extended by gov.bnl.star.offline.scheduler.policy.copyselector.MinMaxSingleCopySelector
      extended by gov.bnl.star.offline.scheduler.policy.copyselector.RootdMinMaxSingleCopySelector
          extended by gov.bnl.star.offline.scheduler.policy.copyselector.XrootdMinMaxSingleCopySelector
All Implemented Interfaces:
CopySelector

public class XrootdMinMaxSingleCopySelector
extends RootdMinMaxSingleCopySelector

-----class comment----- This class is copy selector for xrootd syntax

Version:
$Id: XrootdMinMaxSingleCopySelector.java,v 1.3 2006/11/21 00:41:34 lbhajdu Exp $
Author:
Pavel Jakl (pjakl@bnl.gov)

Constructor Summary
XrootdMinMaxSingleCopySelector()
           
 
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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XrootdMinMaxSingleCopySelector

public XrootdMinMaxSingleCopySelector()
Method Detail

selectCopy

public int selectCopy(QueryResult list,
                      CatalogQuery query,
                      FileAssignment assignment)
Description copied from interface: CopySelector
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.

Specified by:
selectCopy in interface CopySelector
Overrides:
selectCopy in class RootdMinMaxSingleCopySelector
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.