BEAST
|
The implementation of all commands that we currently can parse. More...
Public Member Functions | |
Command | parse (InputStream inputStream) |
Parses an input stream into a command object. | |
Command | parse (String s) |
Parses a JSON request if supported. | |
Command | parse (JsonNode node) |
Processes a JsonNode according to administrator command conventions. | |
Command | parseCommand (String command, JsonNode arguments) |
Takes care of and maps the command to the appropriate method. | |
Command | parseHelpCommand (String operation, JsonNode arguments) |
Provides the help command to get information about available commands. | |
Command | parseAdaptorCommand (String operation, JsonNode node) |
Manages an adaptor, either ADD, UPDATE or REMOVE. | |
Command | parseAnomalyDetectorCommand (String operation, JsonNode node) |
Manages an anomaly detector. | |
Command | parseRouteCommand (String operation, JsonNode node) |
Manages an anomaly detector. | |
Command | parseSettingCommand (String operation, JsonNode arguments) |
Parses a setting command. | |
Command | parseScheduleCommand (String operation, JsonNode node) |
Parses a schedule command. | |
Command | parseUserCommand (String operation, JsonNode arguments) |
Parses a user manipulation command. | |
void | setRouteCommandHelper (RouteCommandHelper helper) |
The route command helper. | |
RouteCommandHelper | getRouteCommandHelper () |
String | getHelp () |
String | getHelp (String method) |
Generates help text about a method. | |
String | getMethodHelp (String method) throws Exception |
Returns help about the specified method. | |
String | createFullCommand (String method, Object object) throws Exception |
Creates a full command object for usage in the help text. | |
String | createSimpleCommand (String method, Object[] objs) throws Exception |
Creates a json representation when the arguments are just fields and not complete objects. | |
The implementation of all commands that we currently can parse.
|
inline |
Creates a full command object for usage in the help text.
method | the method |
object | the object that should be jsonified |
Exception | when an error occurs |
|
inline |
Creates a json representation when the arguments are just fields and not complete objects.
method | the method |
objs | an array of of N*2 items where N = name of field, N+1 = field value |
Exception | when an error occurs |
|
inline |
Implements eu.baltrad.beast.admin.JsonCommandParser.
|
inline |
Generates help text about a method.
If method == null it will be the same as calling getHelp()
.
method | - the method for which help text should be produced |
Implements eu.baltrad.beast.admin.JsonCommandParser.
|
inline |
Returns help about the specified method.
method | - the method for which help should be generated |
|
inline |
|
inline |
Parses an input stream into a command object.
{ |
link AdministratorException} when a problem occurs.
Implements eu.baltrad.beast.admin.JsonCommandParser.
|
inline |
Processes a JsonNode according to administrator command conventions.
node | the json node |
{ |
link AdministratorException} when a problem occurs.
|
inline |
Parses a JSON request if supported.
a | RuntimeException if not handled |
Implements eu.baltrad.beast.admin.JsonCommandParser.
|
inline |
Manages an adaptor, either ADD, UPDATE or REMOVE.
operation | the operation |
node | the json node containing an adaptor definition |
{ |
link AdministratorException} when a problem occurs.
|
inline |
Manages an anomaly detector.
operation | the operation |
node | the anomaly detector |
{ |
link AdministratorException} when a problem occurs.
|
inline |
Takes care of and maps the command to the appropriate method.
command | the command |
arguments | the arguments as a json node if any |
|
inline |
Provides the help command to get information about available commands.
operation | the operation |
arguments | the arguments |
|
inline |
Manages an anomaly detector.
operation | the operation |
node | the anomaly detector |
{ |
link AdministratorException} when a problem occurs.
|
inline |
Parses a schedule command.
operation | the operation |
node | the node |
{ |
link AdministratorException} when a problem occurs.
|
inline |
Parses a setting command.
operation | the operation |
node | the arguments |
{ |
link AdministratorException} when a problem occurs.
|
inline |
Parses a user manipulation command.
operation | the operation |
node | the arguments |
{ |
link AdministratorException} when a problem occurs.
|
inline |
The route command helper.
helper |