|
| ExecutionTargetSorter (const Broker &b, const std::list< URL > &rejectEndpoints=std::list< URL >()) |
| Basic constructor. More...
|
|
| ExecutionTargetSorter (const Broker &b, const JobDescription &j, const std::list< URL > &rejectEndpoints=std::list< URL >()) |
| Constructor passing JobDescription. More...
|
|
| ExecutionTargetSorter (const Broker &b, const std::list< ComputingServiceType > &csList, const std::list< URL > &rejectEndpoints=std::list< URL >()) |
| Constructor passing list of targets. More...
|
|
| ExecutionTargetSorter (const Broker &b, const JobDescription &j, const std::list< ComputingServiceType > &csList, const std::list< URL > &rejectEndpoints=std::list< URL >()) |
| Constructor passing JobDescription and list of targets. More...
|
|
void | addEntity (const ExecutionTarget &et) |
| Add an ExecutionTarget and rank it according to the Broker. More...
|
|
void | addEntity (const ComputingServiceType &cs) |
| Add an ComputingServiceType and rank it according to the Broker. More...
|
|
void | addEntities (const std::list< ComputingServiceType > &) |
| Add a list of ComputingServiceTypes and rank them according to the Broker. More...
|
|
void | reset () |
| Reset to the first target in the ranked list. More...
|
|
bool | next () |
| Advance to the next target. Returns false if the current target is the last one. More...
|
|
bool | endOfList () const |
| Returns true if current target is last in the list. More...
|
|
const ExecutionTarget & | operator* () const |
| Returns current target. More...
|
|
const ExecutionTarget & | getCurrentTarget () const |
| Returns current target. More...
|
|
const ExecutionTarget * | operator-> () const |
| Returns pointer to current target. More...
|
|
const std::list
< ExecutionTarget > & | getMatchingTargets () const |
| Get sorted list of matching targets. More...
|
|
const std::list
< ExecutionTarget > & | getNonMatchingTargets () const |
| Get list of non-matching targets. More...
|
|
void | clear () |
| Clear lists of targets. More...
|
|
void | registerJobSubmission () |
| Register that job was submitted to current target. More...
|
|
void | set (const Broker &newBroker) |
| Set a new Broker and recreate the ranked list of targets,. More...
|
|
void | set (const JobDescription &j) |
| Set a new job description and recreate the ranked list of targets,. More...
|
|
void | setRejectEndpoints (const std::list< URL > &newRejectEndpoints) |
| Set a list of endpoints to reject when matching. More...
|
|
Wrapper around Broker functionality.
This class can be used instead of calling Broker methods directly. It automatically takes care of matching and sorting ExecutionTargets. It can be thought of as an iterator over the list of sorted targets and supports some iterator-style methods such as next(), operator-> and operator*.