|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface AgentUtils
Utilities for managing agent queues.
A reference to the global AgentUtils object can
be obtained using the getAgentUtils
PublicAPI method.
Field Summary | |
---|---|
static java.lang.String |
COPYRIGHT
|
static java.lang.String |
VERSION
|
Method Summary | |
---|---|
java.util.List |
checkQueuesEnabled(java.lang.String aRuleSetName)
For the specified Agent name, return a list of booleans indicating the running status of each individual queue defined in that Agent. |
java.util.List |
getAgentNames()
Returns the names of all Agents currently configured on this node. |
StringMap |
getQueue(java.lang.String aRuleSetName,
int aQueueNumber)
For the specified Agent name (ruleset name) and the specified row number in that Agent, return state data about that agent queue. |
java.util.List |
getQueues(java.lang.String aRuleSetName)
For the specified Agent name (ruleset name), return state data about each queue owned by this Agent. |
boolean |
isQueueEnabled(java.lang.String aRuleSetName,
int aQueueNumber)
Determine whether the specified queue is currently enabled or not. |
boolean |
restartQueue(java.lang.String aRuleSetName)
Restart all queues for the given Agent. |
boolean |
restartQueue(java.lang.String aRuleSetName,
int aQueueNumber)
Restart an agent queue. |
boolean |
startQueue(java.lang.String aRuleSetName)
Start all currently disabled queues for the specified agent. |
boolean |
startQueue(java.lang.String aRuleSetName,
int aQueueNumber)
Start an agent queue. |
boolean |
terminateQueue(java.lang.String aRuleSetName)
Terminate all currently enabled queues for the specified agent. |
boolean |
terminateQueue(java.lang.String aRuleSetName,
int aQueueNumber)
Terminate an agent queue. |
Field Detail |
---|
static final java.lang.String COPYRIGHT
static final java.lang.String VERSION
Method Detail |
---|
boolean startQueue(java.lang.String aRuleSetName, int aQueueNumber)
terminateAgentQueue
first before
being started again.
aRuleSetName
- The name of the agent (key to the Rule-Agent-Queue record) to modify.aQueueNumber
- The queue number corresponding to the desired row in the Rule-Agent-Queue record.
boolean startQueue(java.lang.String aRuleSetName)
aRuleSetName
- The name of the agent (key to the Rule-Agent-Queue record) to modify.
boolean terminateQueue(java.lang.String aRuleSetName, int aQueueNumber)
aRuleSetName
- The name of the agent (key to the Rule-Agent-Queue record) to modify.aQueueNumber
- The queue number corresponding to the desired row in the Rule-Agent-Queue record.
boolean terminateQueue(java.lang.String aRuleSetName)
aRuleSetName
- The name of the agent (key to the Rule-Agent-Queue record) to modify.
boolean isQueueEnabled(java.lang.String aRuleSetName, int aQueueNumber)
aRuleSetName
- aQueueNumber
-
java.util.List checkQueuesEnabled(java.lang.String aRuleSetName)
aRuleSetName
- Name of the Agent to query
java.util.List getAgentNames()
java.util.List getQueues(java.lang.String aRuleSetName)
getQueue
for details on how that state data is formatted and returned
aRuleSetName
- Name of the Agent to query
StringMap getQueue(java.lang.String aRuleSetName, int aQueueNumber)
Description: The text description of this agent queue row
IsEnabled: (true/false) Is this queue currently enabled, or has it been terminated (manually or due to error)?
IsPeriodic: (true/false) Is this queue executing periodically, or on a recurring calendar schedule?
RescheduleInterval: A textual description of this queue's recurring schedule.
LastRunStart: Time (standard PegaRULES time stamp; ISO format, GMT zone) when queue last run. If queue has never run since the node was started,
this value will be blank ("")
LastRunFinish: Time (standard PegaRULES time stamp; ISO format, GMT zone) when queue last finished a run. If queue has never finished a run since the node was started,
this value will be blank ("")
NextRunTarget: Time (standard PegaRULES time stamp; ISO format, GMT zone) when queue is next scheduled to run.
LastExceptionData: If queue is disabled, detailed text information on the last exception that occurred.
aRuleSetName
- The name of the Agent (RuleSet name)aQueueNumber
- The row number (agent queue) to describe
boolean restartQueue(java.lang.String aRuleSetName, int aQueueNumber)
aRuleSetName
- The name of the agent (key to the Rule-Agent-Queue record) to modify.aQueueNumber
- The queue number corresponding to the desired row in the Rule-Agent-Queue record.
boolean restartQueue(java.lang.String aRuleSetName)
aRuleSetName
- The name of the agent (key to the Rule-Agent-Queue record) to modify.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |