|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object gov.bnl.star.offline.scheduler.Dispatchers.RegXResourceStrategy
public class RegXResourceStrategy
Used to build resource requirement strings defined by regular expressions to be used in dispatch commands.
Constructor Summary | |
---|---|
RegXResourceStrategy()
Creates a new instance of StandardExpressionResourceStrategy |
Method Summary | |
---|---|
void |
addResourceMustMatch(java.lang.String mustMatch)
|
void |
addResourceMustNotMatch(java.lang.String mustNotMatch)
|
java.lang.String |
calcUsage(int unitsUsed)
Retunes the amount of resources consumed according to the calculation resourcesConsumed=base+(fileFactor*nItemsMatched); This is however limited by the value of "max". |
int |
getBase()
Retunes the parameter base in the formula resourcesConsumed=base+(fileFactor*nItemsMatched) which is used to calculate the resources consumed. |
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. |
int |
getFileFactor()
Retunes the parameter fileFactor in the formula resourcesConsumed=base+(fileFactor*nItemsMatched) which is used to calculate the resources consumed. |
int |
getMax()
Sets returns the max value that a resource can consume. |
java.util.List |
getMustMatchList()
|
java.util.List |
getMustNotMatchList()
|
java.lang.String |
getRegXResourceNameReplacement()
|
java.lang.String |
getRegXResourceNameSelection()
|
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 |
setBase(int base)
Sets the parameter base in the formula resourcesConsumed=base+(fileFactor*nItemsMatched) which is used to calculate the resources consumed. |
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. |
void |
setFileFactor(int fileFactor)
Sets the parameter fileFactor in the formula resourcesConsumed=base+(fileFactor*nItemsMatched) which is used to calculate the resources consumed. |
void |
setMax(int max)
returns the max value that a resource can consume. |
void |
setMustMatchList(java.util.List mustMatchList)
|
void |
setMustNotMatchList(java.util.List mustNotMatchList)
|
void |
setRegXResourceNameReplacement(java.lang.String regXResourceNameReplacement)
|
void |
setRegXResourceNameSelection(java.lang.String regXResourceNameSelection)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public RegXResourceStrategy()
Method Detail |
---|
public int getBase()
public void setBase(int base)
public int getFileFactor()
public void setFileFactor(int fileFactor)
public int getMax()
public void setMax(int max)
public java.lang.String calcUsage(int unitsUsed)
public java.lang.String getRegXResourceNameSelection()
public void setRegXResourceNameSelection(java.lang.String regXResourceNameSelection)
public java.lang.String getRegXResourceNameReplacement()
public void setRegXResourceNameReplacement(java.lang.String regXResourceNameReplacement)
public java.lang.String getDelimiterCharacter()
getDelimiterCharacter
in interface AbstractResourceStrategy
public void setDelimiterCharacter(java.lang.String delimiterCharacter)
setDelimiterCharacter
in interface AbstractResourceStrategy
public void addResourceMustMatch(java.lang.String mustMatch)
public java.util.List getMustMatchList()
public void setMustMatchList(java.util.List mustMatchList)
public void addResourceMustNotMatch(java.lang.String mustNotMatch)
public java.util.List getMustNotMatchList()
public void setMustNotMatchList(java.util.List mustNotMatchList)
public java.lang.String prepareResourceUsageSwitch(Job job)
prepareResourceUsageSwitch
in interface AbstractResourceStrategy
job
- The job from which the resource usage string will be generated.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |