public interface AgentUtils
A reference to the global AgentUtils object can
be obtained using the getAgentUtils
PublicAPI method.
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
COPYRIGHT |
static java.lang.String |
VERSION |
Modifier and Type | Method and Description |
---|---|
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.Map<java.lang.String,java.lang.Object> |
getAgentDetails(java.lang.String aRuleSetName,
java.lang.String qName)
Fetch the agent details
|
java.util.Map<java.lang.String,java.lang.Object> |
getAgentDetailsForNode(java.lang.String aRuleSetName,
java.lang.String qName,
java.lang.String nodeName)
Fetch the agent details on the given node
|
IAgentInfo |
getAgentInfoForNode(java.lang.String aRuleSetName,
java.lang.String qName,
java.lang.String nodeName)
Fetch the agent details on the given node
|
java.lang.String |
getAgentMode(java.lang.String aRuleSetName,
java.lang.String aQueueName) |
java.util.List |
getAgentNames()
Returns the names of all Agents currently configured on this node.
|
java.lang.String |
getAgentStatus(java.lang.String aRuleSetName,
java.lang.String aQueueName) |
int |
getNumberOfRunningAgents()
Returns the number of agents currently
running 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.
|
java.lang.String |
getScheduleExecutionPattern(java.lang.String mCurrentLocale,
ClipboardPage page)
Fetch the agent details
|
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.
|
java.lang.Boolean |
restartQueue(java.lang.String aRuleSetName,
java.lang.String aQueueName) |
java.lang.String |
startQueue(java.util.Set<java.lang.String> nodes,
java.lang.String aRuleSetName,
java.lang.String aQueueName)
Start 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)
Deprecated.
|
java.lang.Boolean |
startQueue(java.lang.String aRuleSetName,
java.lang.String aQueueName)
Start an agent queue.
|
java.lang.String |
terminateQueue(java.util.Set<java.lang.String> nodes,
java.lang.String aRuleSetName,
java.lang.String aQueueName)
Terminate 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)
Deprecated.
|
java.lang.Boolean |
terminateQueue(java.lang.String aRuleSetName,
java.lang.String aQueueName)
Terminate an agent queue.
|
void |
upgradeDAQsWithOlderNodeType(PRThread thread) |
static final java.lang.String VERSION
static final java.lang.String COPYRIGHT
@Deprecated boolean startQueue(java.lang.String aRuleSetName, int aQueueNumber)
terminateAgentQueue
first before
being started again. Use startQueue
insteadaRuleSetName
- 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.java.lang.Boolean startQueue(java.lang.String aRuleSetName, java.lang.String aQueueName)
terminateAgentQueue
first before
being started again.aRuleSetName
- The name of the agent (key to the Rule-Agent-Queue record) to modify.aQueueName
- The queue name.java.lang.String startQueue(java.util.Set<java.lang.String> nodes, java.lang.String aRuleSetName, java.lang.String aQueueName)
terminateAgentQueue
first before
being started again.nodes
- The node ids where this operation has to be executedaRuleSetName
- The Rule set nameaQueueName
- The agent nameboolean startQueue(java.lang.String aRuleSetName)
aRuleSetName
- The name of the agent (key to the Rule-Agent-Queue record) to modify.@Deprecated boolean terminateQueue(java.lang.String aRuleSetName, int aQueueNumber)
terminateQueue
insteadaRuleSetName
- 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.java.lang.Boolean terminateQueue(java.lang.String aRuleSetName, java.lang.String aQueueName)
aRuleSetName
- The name of the agent (key to the Rule-Agent-Queue record) to modify.aQueueName
- The queue namejava.lang.String terminateQueue(java.util.Set<java.lang.String> nodes, java.lang.String aRuleSetName, java.lang.String aQueueName)
nodes
- The node ids where this operation has to be executedaRuleSetName
- aQueueName
- 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 queryjava.util.List getAgentNames()
java.util.List getQueues(java.lang.String aRuleSetName)
getQueue
for details on how that state data is formatted and returnedaRuleSetName
- Name of the Agent to queryStringMap 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 describeboolean 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.java.util.Map<java.lang.String,java.lang.Object> getAgentDetails(java.lang.String aRuleSetName, java.lang.String qName)
aRuleSetName
- - Rule set nameqName
- - Agent queue namejava.lang.String getScheduleExecutionPattern(java.lang.String mCurrentLocale, ClipboardPage page)
mCurrentLocale
- - browser localepage
- - clipboard page that contains the schedulejava.lang.String getAgentStatus(java.lang.String aRuleSetName, java.lang.String aQueueName)
aRuleSetName
- The name of the agent (key to the Rule-Agent-Queue record).aQueueName
- The queue namejava.util.Map<java.lang.String,java.lang.Object> getAgentDetailsForNode(java.lang.String aRuleSetName, java.lang.String qName, java.lang.String nodeName)
aRuleSetName
- qName
- nodeName
- IAgentInfo getAgentInfoForNode(java.lang.String aRuleSetName, java.lang.String qName, java.lang.String nodeName)
aRuleSetName
- qName
- nodeName
- int getNumberOfRunningAgents()
java.lang.Boolean restartQueue(java.lang.String aRuleSetName, java.lang.String aQueueName)
java.lang.String getAgentMode(java.lang.String aRuleSetName, java.lang.String aQueueName)
void upgradeDAQsWithOlderNodeType(PRThread thread)
Copyright © 2018 Pegasystems Inc. All Rights Reserved.