Argument type.
Type alias for command argument list.
Type alias for general event filter.
Type alias for general node filter.
Node filter that includes any node.
System line separator.
Nil is for empty list, Til is for empty tuple.
Adds close callback.
Adds close callback. Added function will be called every time
command close is called.
Close callback to add.
Adds command help to the Visor console.
Adds command help to the Visor console. This will be printed as part of help command.
Command name.
Short command description.
Optional multi-line long command description. If not provided - short description will be used instead.
List of aliases. Optional.
Command specification.
List of (host, description) tuples for command arguments. Optional.
List of (example, description) tuples for command examples.
- command implementation.
Adds close callback.
Adds close callback. Added function will be called every time
command close is called.
Close callback to add.
Prints standard 'not connected' error message.
Prints out status and help in case someone calls visor().
Helper function that makes up the full argument host from tuple.
Helper function that makes up the full argument host from tuple.
Command argument tuple.
Gets the value for a given argument host.
Gets the value for a given argument host.
Argument host.
Argument list.
Argument value.
Asks user input.
Asks user input.
Prompt string.
Default value for user input.
If true, input will be masked with '*' character. false by default.
Asks user to choose configuration file.
Asks user to choose configuration file.
Option for file path.
Asks user to select a host from the list.
Asks user to select a host from the list.
Title displayed before the list of hosts.
Option for projection of nodes located on selected host.
Asks user to select a node from the list.
Asks user to select a node from the list.
Title displayed before the list of nodes.
Option for ID of selected node.
Asks user to choose node id8.
Asks user to choose node id8.
Option for node id8.
Configuration file path, if any.
Disconnects visor.
Disconnects visor.
<ex>close</ex> Disconnects from the grid.
Gets timestamp of Visor console connection.
Gets timestamp of Visor console connection. Returns 0 if Visor console is not connected.
Timestamp of Visor console connection.
Convert to task argument.
Returns string representation of the date provided.
Returns string representation of the date provided. Result formatted using
pattern MM/dd/yy.
Date.
Returns string representation of the timestamp provided.
Returns string representation of the timestamp provided. Result formatted
using pattern MM/dd/yy.
Timestamp.
Returns string representation of the date provided.
Returns string representation of the date provided. Result formatted using
pattern MM/dd/yy, HH:mm:ss.
Date.
Returns string representation of the timestamp provided.
Returns string representation of the timestamp provided. Result formatted
using pattern MM/dd/yy, HH:mm:ss.
Timestamp.
Formats double value with #0.00 formatter.
Formats double value with #0.00 formatter.
Double value to format.
Formats double value with #0 formatter.
Formats double value with #0 formatter.
Double value to format.
Returns string representation of the memory.
Returns string representation of the memory.
Memory size.
Returns string representation of the memory limit.
Returns string representation of the memory limit.
Memory size.
Returns string representation of the number.
Returns string representation of the number.
Number.
Try get variable value with given name.
Try get variable value with given name.
variable name.
variable value or v if variable with name v not exist.
Gets global projection as an option.
Shortcut method that checks if flag (non-null host and null value) is set
in the argument list.
Shortcut method that checks if flag (non-null host and null value) is set
in the argument list.
Name of the flag.
Command argument list.
Shortcut method that checks if passed in argument list has an argument with given host.
Shortcut method that checks if passed in argument list has an argument with given host.
Argument host to check for existence in this list.
Command argument list.
Shortcut method that checks if passed in argument list has an argument with given value.
Shortcut method that checks if passed in argument list has an argument with given value.
Argument value to check for existence in this list.
Command argument list.
Prints generic help.
Prints generic help.
<ex>help</ex> Prints help.
Prints help for specific command(s) or for all commands.
Prints help for specific command(s) or for all commands.
<ex>help</ex> Prints general help.
<ex>help open</ex> Prints help for 'open' command.
List of commands to print help for. If empty - prints generic help.
Tests whether or not Visor console is connected.
Tests whether or not Visor console is connected.
True if Visor console is connected.
Starts or stops logging.
Starts or stops logging.
<ex>log -l -f=/home/user/visor-log</ex>
Starts logging to file visor-log located at /home/user.
<ex>log -l -f=log/visor-log</ex>
Starts logging to file visor-log located at <GridGain home folder>/log.
<ex>log -l -p=20</ex>
Starts logging with querying events period of 20 seconds.
<ex>log -l -t=30</ex>
Starts logging with topology snapshot logging period of 30 seconds.
<ex>log -s</ex>
Stops logging.
Command arguments.
Prints log status.
Prints log status.
<ex>log</ex> Prints log status.
Logs text message.
Logs text message.
Message to log.
Reconstructs string presentation for given argument.
Reconstructs string presentation for given argument.
Argument to reconstruct.
Reconstructs string presentation for given argument list.
Reconstructs string presentation for given argument list.
Argument list to reconstruct.
Parses string containing mnemonic predicate and returns Scala predicate.
Parses string containing mnemonic predicate and returns Scala predicate.
Mnemonic predicate.
Long to Boolean predicate or null if predicate cannot be created.
Clears all Visor console memory.
Clears given Visor console variable or the whole namespace.
Clears given Visor console variable or the whole namespace.
Variable host or namespace mnemonic.
Finds variable by its value.
Finds variable by its value.
Value to find by.
Trap for missing arguments.
Gets Visor console memory variable.
Gets Visor console memory variable. Note that this method does not perform variable substitution on its parameters.
<ex>mget @a</ex> Gets the value for Visor console variable '@a'.
Name of the variable.
Variable value or null if such variable doesn't exist or its value was set as null.
Gets Visor console memory variable.
Gets Visor console memory variable. Note that this method does not perform variable substitution on its parameters.
<ex>mgetOpt a</ex> Gets the value as an option for Visor console variable 'a'.
Name of the variable.
Variable host as an option.
Lists all Visor console memory.
Lists all Visor console memory.
<ex>mlist</ex> Lists all variables in Visor console memory.
Lists Visor console memory variables.
Lists Visor console memory variables.
<ex>mlist ac</ex>
Lists variables that start with a or c from Visor console memory.
<ex>mlist</ex> Lists all variables from Visor console memory.
String that contains start characters of listed variables. If empty - all variables will be listed.
Sets Visor console memory variable.
Sets Visor console memory variable. Note that this method does not perform variable substitution on its parameters.
Name of the variable. Can't be null.
Value of the variable. Can't be null.
Previous value.
Sets Visor console memory variable.
Sets Visor console memory variable. Note that this method does not perform variable substitution on its parameters.
Name of the variable. Can't be null.
Value of the variable. Can't be null.
Previous value as an option.
Transform node ID to ID8 string.
Transform node ID to ID8 string.
Node ID.
Node ID in ID8 format.
Transform node ID to ID8 string.
Transform node ID to ID8 string.
Node to take ID from.
Node ID in ID8 format.
Shortcut for println().
Get grid node for specified ID.
Get grid node for specified ID.
Node ID.
GridNode instance.
if Visor is disconnected or node not found.
Get node by ID8 string.
Get node by ID8 string.
Node ID in ID8 format.
Collection of nodes that has specified ID8.
Returns string with node id8 and its memory variable, if available.
Returns string with node id8 and its memory variable, if available.
Node ID.
String.
Returns string with node id8, its memory variable, if available, and its IP address (first internal address), if node is alive.
Returns string with node id8, its memory variable, if available, and its IP address (first internal address), if node is alive.
Node ID.
String.
Connects Visor console to the default grid.
Connects Visor console to the default grid.
<ex>open</ex> Connects to the default grid.
Connects Visor console to configuration with path.
Connects Visor console to configuration with path.
Configuration.
Configuration path.
Connects Visor console to default or named grid.
Connects Visor console to default or named grid.
<ex>open -g=mygrid</ex> Connects to 'mygrid' grid.
Command arguments.
Utility method that parses command arguments.
Utility method that parses command arguments. Arguments represented as a string into argument list represented as list of tuples (host, value) performing variable substitution:
-p=@n - A named parameter where @n will be considered as a reference to variable named n.
@ n - An unnamed parameter where @n will be considered as a reference to variable named n.
-p - A flag doesn't support variable substitution.
Note that recursive substitution isn't supported. If specified variable isn't set - the value
starting with @ will be used as-is.
Command arguments to parse.
Extract node from command arguments.
Extract node from command arguments.
Command arguments.
error message or node ref.
Internal thread pool.
quit from Visor console.
quit from Visor console.
<ex>quit</ex> Quit from Visor console.
Removes close callback.
Removes close callback.
Close callback to remove.
Removes all close callbacks.
Gets a non-null value for given parameter.
Gets a non-null value for given parameter.
Parameter.
Value to return if a is null.
Guards against invalid percent readings.
Guards against invalid percent readings.
Value in '%' to guard. Any value below 0 and greater than 100
will return n/a string.
Creates a new variable with given value and returns its host.
Creates a new variable with given value and returns its host.
Value.
Variable host prefix.
New variable host.
If variable with given value and prefix doesn't exist - creates a new variable with given value and returns its host.
If variable with given value and prefix doesn't exist - creates a new variable with given value and returns its host. Otherwise, returns an existing variable host.
Value.
Variable host prefix.
Existing variable host or the new variable host.
Prints Visor console status (with ASCII logo).
Prints Visor console status (with ASCII logo).
<ex>status</ex> Prints Visor console status.
Prints Visor console status.
Prints Visor console status.
<ex>status -q</ex> Prints Visor console status without ASCII logo.
Optional "-q" flag to disable ASCII logo printout.
Decode time frame from string.
Decode time frame from string.
Optional time frame: <num>s|m|h|d
Time in milliseconds.
Introduction of ^^ operator for Any type that will call break.
Introduction of ^^ operator for Any type that will call break.
Any value.
Convert to task argument.
Convert to task argument.
Gets visor uptime.
Prints properly formatted error message like:
Prints properly formatted error message like:
<visor>: err: error messageError messages to print. If null - this function is no-op.
Overview
Visor console provides monitoring capabilities for GridGain.
Usage
GridGain ships with
GRIDGAIN_HOME/bin/ggvisorcmd.{sh|bat}script that starts Visor console.Just type:<ex>help</ex> in Visor console to get help and get started.