Class CLI
java.lang.Object
com.swiftmq.impl.streams.comp.management.CLI
Executor class for CLI commands. Note that you need to change to
the respective context before executing a command on it ("cc context").
- Author:
- IIT Software GmbH, Muenster/Germany, (c) 2016, All Rights Reserved
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionSets the name of the admin role to use.contextJson(String context) Returns the JSON output of the CLI context which must point to an Entity or EntityList.displayName(String context) Returns the display name of a Property.String[]entityNames(String context) Returns a String array with the names of all entities.Tells CLI to don't throw exceptions when they occur on execute().Tells CLI to throw exceptions when they occur on execute().Executes a CLI command on the local router's management tree.executeWithResult(String command) Executes a CLI command on the local router's management tree and returns the result as an Json Array.propertyValue(String context, String propName) Return the value of a Property.longsumProperty(String context, String propName) Return the sum of a Property of an EntityList.
-
Constructor Details
-
CLI
Internal use.
-
-
Method Details
-
adminRole
-
exceptionOn
-
exceptionOff
Tells CLI to don't throw exceptions when they occur on execute(). This is useful if, e.g. a "new queue" command is executed but the queue is already defined.- Returns:
- CLI
-
displayName
Returns the display name of a Property. The context must point to an EntityList. For example, to get the display name of the "messagecount" Property of a queue, the context must be: "sys$queuemanager/usage/messagecount".- Parameters:
context- CLI context- Returns:
- display name or "unknown"
-
entityNames
-
contextJson
-
propertyValue
-
sumProperty
-
execute
-
executeWithResult
-