Package com.microstrategy.web.objects
Interface WebJobPrioritization
-
- All Known Implementing Classes:
WebJobPrioritizatoinImpl
public interface WebJobPrioritization
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description intgetInitialThreadCount()Get initial thread count.WebJobPrioritizationgetItemByName(java.lang.String name)Get sub-queue by name.intgetItemIndexByName(java.lang.String name)Get index of named sub-queue.intgetMaxThreadCount()Get max thread count.intgetMinThreadCount()Get minimal thread count.java.lang.StringgetName()Get name.intgetPriorityLowBound()Get priority low limit.intgetPriorityLowerBound()Get priority lower limit.JobPriorityMapgetPriorityMap()Get job priority map.intgetPriorityScheme()Get Priority scheme, with value defined in (Default = 1, Random = 2).intgetPriorityUpperBound()Get priority upper limit.java.util.List<java.lang.Integer>getPriorityWeights()Get priority weight.intgetServiceScheme()Get Service scheme, with value defined in (Default = 1, FixedThread = 2, HighestPriorityFirst = 3, WeightedShare = 4).intgetThreadCount()Get thread count.java.util.List<WebJobPrioritization>getWebJobPrioritizations()Get list of sub queues which defines job queues by prioritiesbooleanhasNamedItem(java.lang.String name)Check if named sub-queue exists.voidpopulateFromLeanXML(org.w3c.dom.Node jobPrioritizationRoot)Populate from DBRole lean XMLvoidsaveToLeanXML(org.w3c.dom.Node jobQueues)Save this to XML Node specified by the parameter.voidsetInitialThreadCount(int initialThreadCount)Set initial thread count.voidsetMaxThreadCount(int maxThreadCount)Set max thread count for this queue.voidsetMinThreadCount(int minThreadCount)Set minimal thread count for this queue.voidsetName(java.lang.String name)Set name.voidsetPriorityLowBound(int lowBound)Set priority low bound of the queue.voidsetPriorityLowerBound(int lowerBound)Set priority lower bound of the queuevoidsetPriorityMap(JobPriorityMap map)Set job priority map.voidsetPriorityScheme(int scheme)Set priority scheme.voidsetPriorityUpperBound(int upperBound)Set priority upper bound of the queuevoidsetServiceScheme(int serviceScheme)Set service scheme.voidsetThreadCount(int threadCount)Set thread count.
-
-
-
Method Detail
-
getName
java.lang.String getName()
Get name.- Returns:
-
setName
void setName(java.lang.String name)
Set name.- Parameters:
name- -
-
getPriorityLowerBound
int getPriorityLowerBound()
Get priority lower limit.- Returns:
-
setPriorityLowerBound
void setPriorityLowerBound(int lowerBound)
Set priority lower bound of the queue- Parameters:
lowerBound- -
-
getPriorityUpperBound
int getPriorityUpperBound()
Get priority upper limit.- Returns:
-
setPriorityUpperBound
void setPriorityUpperBound(int upperBound)
Set priority upper bound of the queue- Parameters:
upperBound- -
-
getPriorityLowBound
int getPriorityLowBound()
Get priority low limit.- Returns:
-
setPriorityLowBound
void setPriorityLowBound(int lowBound)
Set priority low bound of the queue. Obsolete property.- Parameters:
lowBound- -
-
getThreadCount
int getThreadCount()
Get thread count.- Returns:
-
setThreadCount
void setThreadCount(int threadCount)
Set thread count.- Parameters:
threadCount- -
-
getInitialThreadCount
int getInitialThreadCount()
Get initial thread count.- Returns:
-
setInitialThreadCount
void setInitialThreadCount(int initialThreadCount)
Set initial thread count.- Parameters:
initialThreadCount- -
-
getMaxThreadCount
int getMaxThreadCount()
Get max thread count.- Returns:
-
setMaxThreadCount
void setMaxThreadCount(int maxThreadCount)
Set max thread count for this queue.- Parameters:
maxThreadCount- -
-
getMinThreadCount
int getMinThreadCount()
Get minimal thread count.- Returns:
-
setMinThreadCount
void setMinThreadCount(int minThreadCount)
Set minimal thread count for this queue.- Parameters:
minThreadCount- -
-
getPriorityScheme
int getPriorityScheme()
Get Priority scheme, with value defined in (Default = 1, Random = 2).- Returns:
-
setPriorityScheme
void setPriorityScheme(int scheme)
Set priority scheme.- Parameters:
scheme- -
-
getServiceScheme
int getServiceScheme()
Get Service scheme, with value defined in (Default = 1, FixedThread = 2, HighestPriorityFirst = 3, WeightedShare = 4).- Returns:
-
setServiceScheme
void setServiceScheme(int serviceScheme)
Set service scheme.- Parameters:
serviceScheme- - backward compatible.
-
getWebJobPrioritizations
java.util.List<WebJobPrioritization> getWebJobPrioritizations()
Get list of sub queues which defines job queues by priorities- Returns:
-
getPriorityMap
JobPriorityMap getPriorityMap()
Get job priority map.- Returns:
-
setPriorityMap
void setPriorityMap(JobPriorityMap map)
Set job priority map.- Parameters:
map- - job priority map defining task dispatching rules.
-
getPriorityWeights
java.util.List<java.lang.Integer> getPriorityWeights()
Get priority weight.- Returns:
-
getItemByName
WebJobPrioritization getItemByName(java.lang.String name)
Get sub-queue by name.- Parameters:
name- - get sub-queue specified by name.- Returns:
-
hasNamedItem
boolean hasNamedItem(java.lang.String name)
Check if named sub-queue exists.- Parameters:
name- - check if named sub-queue exists.- Returns:
-
getItemIndexByName
int getItemIndexByName(java.lang.String name)
Get index of named sub-queue.- Parameters:
name- - get index of sub-queue specified by name.- Returns:
-
populateFromLeanXML
void populateFromLeanXML(org.w3c.dom.Node jobPrioritizationRoot) throws WebObjectsExceptionPopulate from DBRole lean XML- Parameters:
jobPrioritizationRoot- - Root node of job prioritization tagged "q"- Throws:
WebObjectsException
-
saveToLeanXML
void saveToLeanXML(org.w3c.dom.Node jobQueues)
Save this to XML Node specified by the parameter.- Parameters:
jobQueues- - org.w3c.dom node to persist this
-
-