|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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.
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 |
---|
FileAssignment assignFiles(Request job, QueryResult[] results, CatalogQuery[] queries, java.util.List fileList)
job
- the job requestresults
- the results of all the queriesqueries
- all the queriesfileList
- the files gathered directly from the description
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |