|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface AbstractResourceStrategy
This is an intrface for Resource Strategys. Resource Strategies are SUMS scheduler objects that allow the SUMS administrator to configure SUMS to define the quantity of resources a job is consuming to the batch system. Dispatchers that use resource strategies will except any combination of these classes and concatenate the output in to one delimitated string. Basically you must describe to the Resource Strategies how to generate the required string for the particular batch system. The good Resource Strategies are designed to be as generic as possible, to be able to meat the formatting needs of all batch systems.
Method Summary | |
---|---|
java.lang.String |
getDelimiterCharacter()
Returns the character that is used as the delimiter, this is most usaly the "," and this is the default if not set. |
java.lang.String |
prepareResourceUsageSwitch(Job job)
This function returns a string that represents the resource usage of the job, in such a format that it can be passed to the batch system. |
void |
setDelimiterCharacter(java.lang.String delimiterCharacter)
Sets the character that is used as the delimiter, this is most usaly the "," and this is the default if not set. |
Method Detail |
---|
java.lang.String prepareResourceUsageSwitch(Job job)
job
- The job from which the resource usage string will be generatedjava.lang.String getDelimiterCharacter()
void setDelimiterCharacter(java.lang.String delimiterCharacter)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |