Package com.microstrategy.web.objects
Class JobPriorityMap
- java.lang.Object
-
- com.microstrategy.web.objects.JobPriorityMap
-
public class JobPriorityMap extends java.lang.Object
JobPriorityMap, as part of Job prioritization, models rules to define how a job is dispatched to job queue. Each rule, implemented as JobPriorityDefn, specifies a priority of a job which matches criteria of report cost, project, application type, user or user group, request type.
-
-
Constructor Summary
Constructors Constructor Description JobPriorityMap(WebObjectsFactory objectsFactory)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getDefaultPriority()
java.lang.String
getDescription()
JobPriorityDefn
getItemByName(java.lang.String name)
Get JobPriorityDefn by name.int
getItemIndexByName(java.lang.String name)
Get 0-based index of item by name.java.lang.String
getName()
java.util.List<JobPriorityDefn>
getPriorityDefinitions()
java.util.List<java.lang.Integer>
getReportCostThresholds()
int
getReportCostThresholdsCount()
java.util.List<java.lang.Integer>
getReportCostWeights()
boolean
hasNamedItem(java.lang.String name)
Check if named rule exists.protected void
populateFromLeanXML(org.w3c.dom.Node jpmNode)
void
removeItem(int index)
protected void
saveToLeanXML(org.w3c.dom.Node jpmNode)
void
setDefaultPriority(int defaultPriority)
void
setDescription(java.lang.String description)
void
setName(java.lang.String name)
-
-
-
Constructor Detail
-
JobPriorityMap
public JobPriorityMap(WebObjectsFactory objectsFactory)
-
-
Method Detail
-
getName
public java.lang.String getName()
-
setName
public void setName(java.lang.String name)
-
getDescription
public java.lang.String getDescription()
-
setDescription
public void setDescription(java.lang.String description)
-
getDefaultPriority
public int getDefaultPriority()
-
setDefaultPriority
public void setDefaultPriority(int defaultPriority)
-
getReportCostThresholdsCount
public int getReportCostThresholdsCount()
-
getReportCostThresholds
public java.util.List<java.lang.Integer> getReportCostThresholds()
-
getReportCostWeights
public java.util.List<java.lang.Integer> getReportCostWeights()
-
getPriorityDefinitions
public java.util.List<JobPriorityDefn> getPriorityDefinitions()
-
getItemByName
public JobPriorityDefn getItemByName(java.lang.String name)
Get JobPriorityDefn by name.- Parameters:
name
- - name of the JobPriorityDefn- Returns:
- JobPriorityDefn - a rule
-
hasNamedItem
public boolean hasNamedItem(java.lang.String name)
Check if named rule exists.- Parameters:
name
- - name for checking- Returns:
- true if found
-
getItemIndexByName
public int getItemIndexByName(java.lang.String name)
Get 0-based index of item by name.- Parameters:
name
- - name of JobPriorityDefn- Returns:
- index
-
removeItem
public void removeItem(int index)
-
populateFromLeanXML
protected void populateFromLeanXML(org.w3c.dom.Node jpmNode) throws WebObjectsException
- Throws:
WebObjectsException
-
saveToLeanXML
protected void saveToLeanXML(org.w3c.dom.Node jpmNode) throws WebObjectsException
- Throws:
WebObjectsException
-
-