Package com.microstrategy.web.objects
Class WebJobPrioritizatoinImpl
- java.lang.Object
-
- com.microstrategy.web.objects.WebJobPrioritizatoinImpl
-
- All Implemented Interfaces:
WebJobPrioritization
public class WebJobPrioritizatoinImpl extends java.lang.Object implements WebJobPrioritization
-
-
Constructor Summary
Constructors Constructor Description WebJobPrioritizatoinImpl(WebObjectsFactory objectsFactory)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getInitialThreadCount()
Get initial thread count.WebJobPrioritization
getItemByName(java.lang.String name)
Get sub-queue by name.int
getItemIndexByName(java.lang.String name)
Get index of named sub-queue.int
getMaxThreadCount()
Get max thread count.int
getMinThreadCount()
Get minimal thread count.java.lang.String
getName()
Get name.int
getPriorityLowBound()
Get priority low limit.int
getPriorityLowerBound()
Get priority lower limit.JobPriorityMap
getPriorityMap()
Get job priority map.int
getPriorityScheme()
Get Priority scheme, with value defined in (Default = 1, Random = 2).int
getPriorityUpperBound()
Get priority upper limit.java.util.List<java.lang.Integer>
getPriorityWeights()
Get priority weight.int
getServiceScheme()
Get Service scheme, with value defined in (Default = 1, FixedThread = 2, HighestPriorityFirst = 3, WeightedShare = 4).int
getThreadCount()
Get thread count.java.util.List<WebJobPrioritization>
getWebJobPrioritizations()
Get list of sub queues which defines job queues by prioritiesboolean
hasNamedItem(java.lang.String name)
Check if named sub-queue exists.void
populateFromLeanXML(org.w3c.dom.Node jobPrioritizationRoot)
Populate from DBRole lean XMLvoid
saveToLeanXML(org.w3c.dom.Node jobQueue)
Save this to XML Node specified by the parameter.void
setInitialThreadCount(int initialThreadCount)
Set initial thread count.void
setMaxThreadCount(int maxThreadCount)
Set max thread count for this queue.void
setMinThreadCount(int minThreadCount)
Set minimal thread count for this queue.void
setName(java.lang.String name)
Set name.void
setPriorityLowBound(int priorityLowBound)
Set priority low bound of the queue.void
setPriorityLowerBound(int priorityLowerBound)
Set priority lower bound of the queuevoid
setPriorityMap(JobPriorityMap map)
Set job priority map.void
setPriorityScheme(int priorityScheme)
Set priority scheme.void
setPriorityUpperBound(int priorityUpperBound)
Set priority upper bound of the queuevoid
setServiceScheme(int serviceScheme)
Set service scheme.void
setThreadCount(int threadCount)
Set thread count.
-
-
-
Constructor Detail
-
WebJobPrioritizatoinImpl
public WebJobPrioritizatoinImpl(WebObjectsFactory objectsFactory)
-
-
Method Detail
-
getName
public java.lang.String getName()
Description copied from interface:WebJobPrioritization
Get name.- Specified by:
getName
in interfaceWebJobPrioritization
- Returns:
-
setName
public void setName(java.lang.String name)
Description copied from interface:WebJobPrioritization
Set name.- Specified by:
setName
in interfaceWebJobPrioritization
- Parameters:
name
- -
-
getPriorityLowerBound
public int getPriorityLowerBound()
Description copied from interface:WebJobPrioritization
Get priority lower limit.- Specified by:
getPriorityLowerBound
in interfaceWebJobPrioritization
- Returns:
-
setPriorityLowerBound
public void setPriorityLowerBound(int priorityLowerBound)
Description copied from interface:WebJobPrioritization
Set priority lower bound of the queue- Specified by:
setPriorityLowerBound
in interfaceWebJobPrioritization
- Parameters:
priorityLowerBound
- -
-
getPriorityUpperBound
public int getPriorityUpperBound()
Description copied from interface:WebJobPrioritization
Get priority upper limit.- Specified by:
getPriorityUpperBound
in interfaceWebJobPrioritization
- Returns:
-
setPriorityUpperBound
public void setPriorityUpperBound(int priorityUpperBound)
Description copied from interface:WebJobPrioritization
Set priority upper bound of the queue- Specified by:
setPriorityUpperBound
in interfaceWebJobPrioritization
- Parameters:
priorityUpperBound
- -
-
getPriorityLowBound
public int getPriorityLowBound()
Description copied from interface:WebJobPrioritization
Get priority low limit.- Specified by:
getPriorityLowBound
in interfaceWebJobPrioritization
- Returns:
-
setPriorityLowBound
public void setPriorityLowBound(int priorityLowBound)
Description copied from interface:WebJobPrioritization
Set priority low bound of the queue. Obsolete property.- Specified by:
setPriorityLowBound
in interfaceWebJobPrioritization
- Parameters:
priorityLowBound
- -
-
getThreadCount
public int getThreadCount()
Description copied from interface:WebJobPrioritization
Get thread count.- Specified by:
getThreadCount
in interfaceWebJobPrioritization
- Returns:
-
setThreadCount
public void setThreadCount(int threadCount)
Description copied from interface:WebJobPrioritization
Set thread count.- Specified by:
setThreadCount
in interfaceWebJobPrioritization
- Parameters:
threadCount
- -
-
getInitialThreadCount
public int getInitialThreadCount()
Description copied from interface:WebJobPrioritization
Get initial thread count.- Specified by:
getInitialThreadCount
in interfaceWebJobPrioritization
- Returns:
-
setInitialThreadCount
public void setInitialThreadCount(int initialThreadCount)
Description copied from interface:WebJobPrioritization
Set initial thread count.- Specified by:
setInitialThreadCount
in interfaceWebJobPrioritization
- Parameters:
initialThreadCount
- -
-
getMaxThreadCount
public int getMaxThreadCount()
Description copied from interface:WebJobPrioritization
Get max thread count.- Specified by:
getMaxThreadCount
in interfaceWebJobPrioritization
- Returns:
-
setMaxThreadCount
public void setMaxThreadCount(int maxThreadCount)
Description copied from interface:WebJobPrioritization
Set max thread count for this queue.- Specified by:
setMaxThreadCount
in interfaceWebJobPrioritization
- Parameters:
maxThreadCount
- -
-
getMinThreadCount
public int getMinThreadCount()
Description copied from interface:WebJobPrioritization
Get minimal thread count.- Specified by:
getMinThreadCount
in interfaceWebJobPrioritization
- Returns:
-
setMinThreadCount
public void setMinThreadCount(int minThreadCount)
Description copied from interface:WebJobPrioritization
Set minimal thread count for this queue.- Specified by:
setMinThreadCount
in interfaceWebJobPrioritization
- Parameters:
minThreadCount
- -
-
getWebJobPrioritizations
public java.util.List<WebJobPrioritization> getWebJobPrioritizations()
Description copied from interface:WebJobPrioritization
Get list of sub queues which defines job queues by priorities- Specified by:
getWebJobPrioritizations
in interfaceWebJobPrioritization
- Returns:
-
getItemByName
public WebJobPrioritization getItemByName(java.lang.String name)
Description copied from interface:WebJobPrioritization
Get sub-queue by name.- Specified by:
getItemByName
in interfaceWebJobPrioritization
- Parameters:
name
- - get sub-queue specified by name.- Returns:
-
hasNamedItem
public boolean hasNamedItem(java.lang.String name)
Description copied from interface:WebJobPrioritization
Check if named sub-queue exists.- Specified by:
hasNamedItem
in interfaceWebJobPrioritization
- Parameters:
name
- - check if named sub-queue exists.- Returns:
-
getItemIndexByName
public int getItemIndexByName(java.lang.String name)
Description copied from interface:WebJobPrioritization
Get index of named sub-queue.- Specified by:
getItemIndexByName
in interfaceWebJobPrioritization
- Parameters:
name
- - get index of sub-queue specified by name.- Returns:
-
getPriorityMap
public JobPriorityMap getPriorityMap()
Description copied from interface:WebJobPrioritization
Get job priority map.- Specified by:
getPriorityMap
in interfaceWebJobPrioritization
- Returns:
-
setPriorityMap
public void setPriorityMap(JobPriorityMap map)
Description copied from interface:WebJobPrioritization
Set job priority map.- Specified by:
setPriorityMap
in interfaceWebJobPrioritization
- Parameters:
map
- - job priority map defining task dispatching rules.
-
getPriorityScheme
public int getPriorityScheme()
Description copied from interface:WebJobPrioritization
Get Priority scheme, with value defined in (Default = 1, Random = 2).- Specified by:
getPriorityScheme
in interfaceWebJobPrioritization
- Returns:
-
setPriorityScheme
public void setPriorityScheme(int priorityScheme)
Description copied from interface:WebJobPrioritization
Set priority scheme.- Specified by:
setPriorityScheme
in interfaceWebJobPrioritization
- Parameters:
priorityScheme
- -
-
getServiceScheme
public int getServiceScheme()
Description copied from interface:WebJobPrioritization
Get Service scheme, with value defined in (Default = 1, FixedThread = 2, HighestPriorityFirst = 3, WeightedShare = 4).- Specified by:
getServiceScheme
in interfaceWebJobPrioritization
- Returns:
-
setServiceScheme
public void setServiceScheme(int serviceScheme)
Description copied from interface:WebJobPrioritization
Set service scheme.- Specified by:
setServiceScheme
in interfaceWebJobPrioritization
- Parameters:
serviceScheme
- - backward compatible.
-
getPriorityWeights
public java.util.List<java.lang.Integer> getPriorityWeights()
Description copied from interface:WebJobPrioritization
Get priority weight.- Specified by:
getPriorityWeights
in interfaceWebJobPrioritization
- Returns:
-
populateFromLeanXML
public void populateFromLeanXML(org.w3c.dom.Node jobPrioritizationRoot) throws WebObjectsException
Populate from DBRole lean XML- Specified by:
populateFromLeanXML
in interfaceWebJobPrioritization
- Parameters:
jobPrioritizationRoot
- - Root node of job prioritization tagged "q"- Throws:
WebObjectsException
-
saveToLeanXML
public void saveToLeanXML(org.w3c.dom.Node jobQueue) throws WebObjectsException
Description copied from interface:WebJobPrioritization
Save this to XML Node specified by the parameter.- Specified by:
saveToLeanXML
in interfaceWebJobPrioritization
- Parameters:
jobQueue
- - org.w3c.dom node to persist this- Throws:
WebObjectsException
-
-