Package com.microstrategy.web.objects
Class JobPriorityDefn
- java.lang.Object
-
- com.microstrategy.web.objects.JobPriorityDefn
-
public class JobPriorityDefn extends java.lang.Object
Class to define a rule to diapatch jobs into job queues.
-
-
Constructor Summary
Constructors Constructor Description JobPriorityDefn()
JobPriorityDefn(WebObjectsFactory objectsFactory)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getApplicationType()
Get application type.java.lang.String
getName()
Get name of job priority map entry.int
getPriority()
Get priority for this entry of job priority map.java.lang.String
getProjectId()
Get project ID of this entry of job priority map.java.lang.String
getProjectName()
Get project name of this entry of job priority map.int
getReportCost()
Get report cost.int
getReportCostLowerLimit()
Get report cost lower limit.int
getReportCostUpperLimit()
Get report cost upper limit for this entry.int
getRequestType()
Get job request type.java.lang.String
getUserId()
Get user object DSSID of this entry.java.lang.String
getUserName()
Get user object name of this entry.protected void
populateFromLeanXML(org.w3c.dom.Node defnNode)
protected void
saveToLeanXML(org.w3c.dom.Element elementNode)
void
setApplicationType(int type)
Set application type.void
setName(java.lang.String name)
Set name of job priority map entry.void
setPriority(int priority)
Set priority.void
setProjectId(java.lang.String projectId)
Set project ID.void
setReportCost(int reportCost)
Set report cost.void
setReportCostLowerLimit(int reportCostLowerLimit)
Set report cost lower limitvoid
setReportCostUpperLimit(int reportCostUpperLimit)
Set report cost upper limit.void
setRequestType(int requestType)
Set job request typevoid
setUserId(java.lang.String userId)
Set user object DSSID.
-
-
-
Constructor Detail
-
JobPriorityDefn
public JobPriorityDefn(WebObjectsFactory objectsFactory)
-
JobPriorityDefn
public JobPriorityDefn()
-
-
Method Detail
-
getName
public java.lang.String getName()
Get name of job priority map entry.- Returns:
- name
-
setName
public void setName(java.lang.String name)
Set name of job priority map entry.- Parameters:
name
- - name of the entry
-
getReportCost
public int getReportCost()
Get report cost.- Returns:
- reportCost
-
setReportCost
public void setReportCost(int reportCost)
Set report cost.- Parameters:
reportCost
- - report cost
-
getRequestType
public int getRequestType()
Get job request type. Type is defined in EnumDSSJobRequestType at backend as EnumDSSJobRequestType{ { [hidden] DssJobRequestTypeReserved = -1, DssJobRequestAnyType, DssJobRequestTypeElement, DssJobRequestTypeObject, DssJobRequestTypeReport, DssJobRequestTypeDocument, DssJobRequestBatchRequest } }- Returns:
- requestType
-
setRequestType
public void setRequestType(int requestType)
Set job request type- Parameters:
requestType
- - request type
-
getPriority
public int getPriority()
Get priority for this entry of job priority map.- Returns:
- priority
-
setPriority
public void setPriority(int priority)
Set priority.- Parameters:
priority
- - priority
-
getReportCostUpperLimit
public int getReportCostUpperLimit()
Get report cost upper limit for this entry.- Returns:
- reportCostUpperLimit
-
setReportCostUpperLimit
public void setReportCostUpperLimit(int reportCostUpperLimit)
Set report cost upper limit.- Parameters:
reportCostUpperLimit
- - report cost upper limit
-
getReportCostLowerLimit
public int getReportCostLowerLimit()
Get report cost lower limit.- Returns:
- reportCostLowerCost
-
setReportCostLowerLimit
public void setReportCostLowerLimit(int reportCostLowerLimit)
Set report cost lower limit- Parameters:
reportCostLowerLimit
- - report cost lower limit
-
getProjectId
public java.lang.String getProjectId()
Get project ID of this entry of job priority map.- Returns:
- projectId
-
getProjectName
public java.lang.String getProjectName()
Get project name of this entry of job priority map.- Returns:
- projectId
-
setProjectId
public void setProjectId(java.lang.String projectId)
Set project ID.- Parameters:
projectId
- - project ID
-
getUserId
public java.lang.String getUserId()
Get user object DSSID of this entry. User object can represents a user or a user group.- Returns:
- userId
-
getUserName
public java.lang.String getUserName()
Get user object name of this entry. User object can represents a user or a user group.- Returns:
- userId
-
setUserId
public void setUserId(java.lang.String userId)
Set user object DSSID.- Parameters:
userId
- - user or user group ID
-
getApplicationType
public int getApplicationType()
Get application type. Seems backend uses EnumDSSApplication, which is different from EnumDSSXMLApplicationType with the following value: reserved -1, agent 0 web 1 scheduler 2 custom 3 NCS 9 javaDesktop 21- Returns:
- appType
-
setApplicationType
public void setApplicationType(int type)
Set application type.- Parameters:
type
- - application type
-
populateFromLeanXML
protected void populateFromLeanXML(org.w3c.dom.Node defnNode) throws WebObjectsException
- Throws:
WebObjectsException
-
saveToLeanXML
protected void saveToLeanXML(org.w3c.dom.Element elementNode) throws WebObjectsException
- Throws:
WebObjectsException
-
-