|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object gov.bnl.star.offline.scheduler.policy.copyselector.MinMaxSingleCopySelector
public class MinMaxSingleCopySelector
Select the copies trying to comply with the minFilesPerProcess parameter. The selection is split in five staged.
1) Assigns all the files that are on one machine only. There is no chioce to be made there. 2) Checks if, due to the min limit, some groups can't be split into valid jobs. In that case, looks for files that have one copy on that machines, and assigns them 3) Assigns all the files that have multiple copies. If preferStorage is used, it chooses a file on the given storage. Local copies as chosen randomly. 4) Checks if, due to the min limits, some groups can't be split correctly. In that cases, uses files on NFS to fill the minimum requirements. 5) Assigns the rest of the files on NFS. First, it fills to the max all the processes already created. Then it assigns the rest to processes that run on NFS
Constructor Summary | |
---|---|
MinMaxSingleCopySelector()
|
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 |
---|
public MinMaxSingleCopySelector()
Method Detail |
---|
public int selectCopy(QueryResult list, CatalogQuery query, FileAssignment assignment)
CopySelector
selectCopy
in interface CopySelector
list
- the result of the queryquery
- the query that generated the resultassignment
- the assignment where to add the copies
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |