A Talon XVM has the ability to discover annotated 'Command' methods provided by an application. This release provides the ability to for administrative tools such as Robin to discover these commands by requesting and retrieving a command list for an application via Talon's Command And Control Model @Command(name = "resetOrderStats",
description="Resets the number of orders processed")
public String resetOrderStats(
@Option(shortForm = 'v', longForm ="verbose", defaultValue="false")
boolean verbose,
@Argument(name = "newOrderReceivedCount"), position=1)
long newNumOrdersReceived,
@Argument(name = "newOrderProcessingCount", position=2)
long newNumOrdersProcessed) { ... }
|
The above command could then be discovered and its usage printed via API: Controller controller = new Controller();
Server server = Controller.getModel().getServer("MyVM");
App app = server.getApp("OrderProcessing");
for (ISrvMonCommandDescription command : app.getCommands()) {
SrvMonUtil.printCommmandUsage(command, System.out);
System.out.println();
}
|
or via the the robin command line tool: listAppCommands -u MyVM OrderProcessing *
|
Compatibility Notes: Note listing commands requires Robin to be talking to a Talon XVM of version 3.4 or newer |