org.gridgain.visor.commands.tasks

VisorTasksCommand

class VisorTasksCommand extends AnyRef

Overview

Visor 'tasks' command implementation.

Help

+---------------------------------------------------------------------------------------+
| tasks | Prints statistics about tasks and executions.                                 |
|       |                                                                               |
|       | Note that this command depends on GridGain events.                            |
|       |                                                                               |
|       | GridGain events can be individually enabled and disabled and disabled events  |
|       | can affect the results produced by this command. Note also that configuration |
|       | of Event Storage SPI that is responsible for temporary storage of generated   |
|       | events on each node can also affect the functionality of this command.        |
|       |                                                                               |
|       | By default - all events are enabled and GridGain stores last 10,000 local     |
|       | events on each node. Both of these defaults can be changed in configuration.  |
+---------------------------------------------------------------------------------------+
Specification
tasks
tasks "-l {-t=s|m|h|d} {-r}"
tasks "-s= {-t=s|m|h|d} {-r}"
tasks "-g {-t=s|m|h|d} {-r}"
tasks "-h {-t=s|m|h|d} {-r}"
tasks "-n= {-r}"
tasks "-e="
Arguments
-l
    List all tasks and executions for a given time period.
    Executions sorted chronologically (see '-r'), and tasks alphabetically
    See '-t=<num>s|m|h|d' on how to specify the time limit.
    Default time period is one hour, i.e '-t=1h'

    This is a default mode when command is called without parameters.
-s=<substring>
    List all tasks and executions for a given task name substring.
    Executions sorted chronologically (see '-r'), and tasks alphabetically
    See '-t=<num>s|m|h|d' on how to specify the time limit.
    Default time period is one hour, i.e '-t=1h'
-g
    List all tasks grouped by nodes for a given time period.
    Tasks sorted alphabetically
    See '-t=<num>s|m|h|d' on how to specify the time limit.
    Default time period is one hour, i.e '-t=1h'
-h
    List all tasks grouped by hosts for a given time period.
    Tasks sorted alphabetically
    See '-t=<num>s|m|h|d' on how to specify the time limit.
    Default time period is one hour, i.e '-t=1h'
-t=<num>s|m|h|d
    Defines time frame for '-l' parameter:
       =<num>s Last <num> seconds.
       =<num>m Last <num> minutes.
       =<num>h Last <num> hours.
       =<num>d Last <num> days.
-r
    Reverse sorting of executions.
-n=<task-name>
    Prints aggregated statistic for named task.
-e=<exec-id>
    Prints aggregated statistic for given task execution.
Examples
visor tasks "-l"
    Prints list of all tasks and executions for the last hour (default).
visor tasks
    Prints list of all tasks and executions for the last hour (default).
visor tasks "-l -t=5m"
    Prints list of tasks and executions that started during last 5 minutes.
visor tasks "-s=Task"
    Prints list of all tasks and executions that have 'Task' in task name.
visor tasks "-g"
    Prints list of tasks grouped by nodes.
visor tasks "-g -t=5m"
    Prints list of tasks that started during last 5 minutes grouped by nodes.
visor tasks "-h"
    Prints list of tasks grouped by hosts.
visor tasks "-h -t=5m"
    Prints list of tasks that started during last 5 minutes grouped by hosts.
visor tasks "-n=GridTask"
    Prints summary for task named 'GridTask'.
visor tasks "-e=7D5CB773-225C-4165-8162-3BB67337894B"
    Traces task execution with ID '7D5CB773-225C-4165-8162-3BB67337894B'.
visor tasks "-e=@s1"
    Traces task execution with ID taken from 's1' memory variable.
Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. VisorTasksCommand
  2. AnyRef
  3. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new VisorTasksCommand()

Value Members

  1. final def !=(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  5. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  6. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  7. def equals(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  8. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  9. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  10. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  11. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  12. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  13. final def notify(): Unit

    Definition Classes
    AnyRef
  14. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  15. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  16. def tasks(): Unit

    Simply a shortcut for tasks("-l")

    Command

    Simply a shortcut for tasks("-l")

    Examples

    <ex>tasks</ex> Prints list of all tasks and executions for the last hour (default).

  17. def tasks(args: String): Unit

    Prints statistics about executed tasks.

    Command

    Prints statistics about executed tasks.

    Examples

    <ex>tasks</ex> Prints list of all tasks for the last hour (default).

    <ex>tasks "-l"</ex> Prints list of all tasks for the last hour (default).

    <ex>tasks "-l -a"</ex> Prints list of all tasks and executions for the last hour (default).

    <ex>tasks "-l -t=5m"</ex> Prints list of tasks that started during last 5 minutes.

    <ex>tasks "-g"</ex> Prints list of tasks grouped by nodes.

    <ex>tasks "-g -t=5m"</ex> Prints list of tasks that started during last 5 minutes grouped by nodes.

    <ex>tasks "-h"</ex> Prints list of tasks grouped by hosts.

    <ex>tasks "-h -t=5m"</ex> Prints list of tasks that started during last 5 minutes grouped by hosts.

    <ex>tasks "-n=GridTask"</ex> Prints summary for task named 'GridTask'.

    <ex>tasks "-n=GridTask -a"</ex> Prints summary and executions for task named 'GridTask'.

    <ex>tasks "-e=7D5CB773-225C-4165-8162-3BB67337894B"</ex> Traces task execution with ID '7D5CB773-225C-4165-8162-3BB67337894B'.

    <ex>tasks "-e=@s1"</ex> Traces task execution with ID taken from 's1' memory variable.

    args

    Command arguments.

  18. def toString(): String

    Definition Classes
    AnyRef → Any
  19. final def wait(): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  20. final def wait(arg0: Long, arg1: Int): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  21. final def wait(arg0: Long): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from AnyRef

Inherited from Any

Ungrouped