org.gridgain.visor.commands

cache

package cache

Overview

Visor 'cache' command implementation.

Help

+-----------------------------------------------------------------------------------------+
| cache          | Prints statistics about caches from specified node on the entire grid. |
|                | Output sorting can be specified in arguments.                          |
|                |                                                                        |
|                | Output abbreviations:                                                  |
|                |     #   Number of nodes.                                               |
|                |     H/h Number of cache hits.                                          |
|                |     M/m Number of cache misses.                                        |
|                |     R/r Number of cache reads.                                         |
|                |     W/w Number of cache writes.                                        |
+-----------------------------------------------------------------------------------------+
| cache -compact | Compacts all entries in cache on all nodes.                            |
+-----------------------------------------------------------------------------------------+
| cache -clear   | Clears all entries from cache on all nodes.                            |
+-----------------------------------------------------------------------------------------+
| cache -scan    | List all entries in cache with specified name.                         |
+-----------------------------------------------------------------------------------------+
Specification
cache
cache -i
cache {-c=<cache-name>} {-id=<node-id>|id8=<node-id8>} {-s=lr|lw|hi|mi|re|wr} {-a} {-r}
cache -clear {-c=<cache-name>}
cache -compact {-c=<cache-name>}
cache -scan -c=<cache-name> {-id=<node-id>|id8=<node-id8>} {-p=<page size>}
Arguments
-id=<node-id>
    Full ID of the node to get cache statistics from.
    Either '-id8' or '-id' can be specified.
    If neither is specified statistics will be gathered from all nodes.
-id8=<node-id>
    ID8 of the node to get cache statistics from.
    Either '-id8' or '-id' can be specified.
    If neither is specified statistics will be gathered from all nodes.
-c=<cache-name>
    Name of the cache.
-s=lr|lw|hi|mi|re|wr|cn
    Defines sorting type. Sorted by:
       lr Last read.
       lw Last write.
       hi Hits.
       mi Misses.
       rd Reads.
       wr Writes.
    If not specified - default sorting is 'lr'.
-i
    Interactive mode.
    User can interactively select node for cache statistics.
-r
    Defines if sorting should be reversed.
    Can be specified only with '-s' argument.
-a
    Prints details statistics about each cache.
    By default only aggregated summary is printed.
-compact
     Compacts entries in cache.
-clear
     Clears cache.
-scan
     Prints list of all entries from cache.
-p=<page size>
    Number of object to fetch from cache at once.
    Valid range from 1 to 100.
    By default page size is 25.
Examples
cache
    Prints summary statistics about all caches.
cache -id8=12345678 -s=hi -r
    Prints summary statistics about caches from node with specified id8
    sorted by number of hits in reverse order.
cache -i
    Prints cache statistics for interactively selected node.
cache -s=hi -r -a
    Prints detailed statistics about all caches sorted by number of hits in reverse order.
cache -compact
    Compacts entries in interactively selected cache.
cache -compact -c=cache
    Compacts entries in cache with name 'cache'.
cache -clear
    Clears interactively selected cache.
cache -clear -c=cache
    Clears cache with name 'cache'.
cache -scan
    Prints list entries from interactively selected cache.
cache -scan -c=cache
    Prints list entries from cache with name 'cache' from all nodes with this cache.
cache -scan -c=@c0 -p=50
    Prints list entries from cache with name taken from 'c0' memory variable
    with page of 50 items from all nodes with this cache.
cache -scan -c=cache -id8=12345678
    Prints list entries from cache with name 'cache' and node '12345678' ID8.
Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. cache
  2. AnyRef
  3. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Type Members

  1. class VisorCacheClearCommand extends AnyRef

    Visor 'clear' command implementation.

    Overview

    Visor 'clear' command implementation.

    Help

    +------------------------------------------------------------+
    | cache -clear | Clears all entries from cache on all nodes. |
    +------------------------------------------------------------+
    Specification
    cache -clear
    cache -clear -c=<cache-name>
    Arguments
    <cache-name>
    Name of the cache.
    If not specified, default cache will be cleared.
    Examples
    cache -clear
        Clears interactively selected cache.
    cache -clear -c=cache
        Clears cache with name 'cache'.
  2. class VisorCacheCommand extends AnyRef

    Visor 'cache' command implementation.

    Overview

    Visor 'cache' command implementation.

    Help

    +-----------------------------------------------------------------------------------------+
    | cache          | Prints statistics about caches from specified node on the entire grid. |
    |                | Output sorting can be specified in arguments.                          |
    |                |                                                                        |
    |                | Output abbreviations:                                                  |
    |                |     #   Number of nodes.                                               |
    |                |     H/h Number of cache hits.                                          |
    |                |     M/m Number of cache misses.                                        |
    |                |     R/r Number of cache reads.                                         |
    |                |     W/w Number of cache writes.                                        |
    +-----------------------------------------------------------------------------------------+
    | cache -compact | Compacts all entries in cache on all nodes.                            |
    +-----------------------------------------------------------------------------------------+
    | cache -clear   | Clears all entries from cache on all nodes.                            |
    +-----------------------------------------------------------------------------------------+
    | cache -scan    | List all entries in cache with specified name.                         |
    +-----------------------------------------------------------------------------------------+
    Specification
    cache
    cache -i
    cache {-c=<cache-name>} {-id=<node-id>|id8=<node-id8>} {-s=lr|lw|hi|mi|re|wr} {-a} {-r}
    cache -clear {-c=<cache-name>}
    cache -compact {-c=<cache-name>}
    cache -scan -c=<cache-name> {-id=<node-id>|id8=<node-id8>} {-p=<page size>}
    cache -swap {-c=<cache-name>} {-id=<node-id>|id8=<node-id8>}
    Arguments
    -id=<node-id>
        Full ID of the node to get cache statistics from.
        Either '-id8' or '-id' can be specified.
        If neither is specified statistics will be gathered from all nodes.
    -id8=<node-id>
        ID8 of the node to get cache statistics from.
        Either '-id8' or '-id' can be specified.
        If neither is specified statistics will be gathered from all nodes.
    -c=<cache-name>
        Name of the cache.
    -s=lr|lw|hi|mi|re|wr|cn
        Defines sorting type. Sorted by:
           lr Last read.
           lw Last write.
           hi Hits.
           mi Misses.
           rd Reads.
           wr Writes.
        If not specified - default sorting is 'lr'.
    -i
        Interactive mode.
        User can interactively select node for cache statistics.
    -r
        Defines if sorting should be reversed.
        Can be specified only with '-s' argument.
    -a
        Prints details statistics about each cache.
        By default only aggregated summary is printed.
    -compact
         Compacts entries in cache.
    -clear
         Clears cache.
    -scan
         Prints list of all entries from cache.
    -swap
         Swaps backup entries in cache.
    -p=<page size>
        Number of object to fetch from cache at once.
        Valid range from 1 to 100.
        By default page size is 25.
    Examples
    cache
        Prints summary statistics about all caches.
    cache -id8=12345678 -s=hi -r
        Prints summary statistics about caches from node with specified id8
        sorted by number of hits in reverse order.
    cache -i
        Prints cache statistics for interactively selected node.
    cache -s=hi -r -a
        Prints detailed statistics about all caches sorted by number of hits in reverse order.
    cache -compact
        Compacts entries in interactively selected cache.
    cache -compact -c=cache
        Compacts entries in cache with name 'cache'.
    cache -clear
        Clears interactively selected cache.
    cache -clear -c=cache
        Clears cache with name 'cache'.
    cache -scan
        Prints list entries from interactively selected cache.
    cache -scan -c=cache
        Prints list entries from cache with name 'cache' from all nodes with this cache.
    cache -scan -c=@c0 -p=50
        Prints list entries from cache with name taken from 'c0' memory variable
        with page of 50 items from all nodes with this cache.
    cache -scan -c=cache -id8=12345678
        Prints list entries from cache with name 'cache' and node '12345678' ID8.
    cache -swap
        Swaps entries in interactively selected cache.
    cache -swap -c=cache
        Swaps entries in cache with name 'cache'.
    cache -swap -c=@c0
        Swaps entries in cache with name taken from 'c0' memory variable.
  3. class VisorCacheCompactCommand extends AnyRef

    Visor 'compact' command implementation.

    Overview

    Visor 'compact' command implementation.

    Help

    +--------------------------------------------------------+
    | compact | Compacts all entries in cache on all nodes. |
    +--------------------------------------------------------+
    Specification
    compact
    compact -c=<cache-name>
    Arguments
    <cache-name>
    Name of the cache.
    If not specified, entries in default cache will be compacted.
    Examples
    compact
        Compacts entries in interactively selected cache.
    compact -c=cache
        Compacts entries in cache with name 'cache'.
  4. class VisorCacheScanCommand extends AnyRef

    Visor 'scan' command implementation.

    Overview

    Visor 'scan' command implementation.

    Specification
    cache {-id=<node-id>|-id8=<node-id8>} {-p=<page size>} -c=<cache name> -scan
    Arguments
    <node-id>
        Full node ID.
    <node-id8>
        Node ID8.
    <page size>
        Number of object to fetch from cache at once.
    <cache-name>
        Name of the cache.
    Examples
    cache -c=cache
        List entries from cache with name 'cache' from all nodes with this cache.
    cache -c=@c0 -scan -p=50
        List entries from cache with name taken from 'c0' memory variable with page of 50 items
        from all nodes with this cache.
    cache -c=cache -scan -id8=12345678
        List entries from cache with name 'cache' and node '12345678' ID8.
  5. class VisorCacheSwapCommand extends AnyRef

    Visor 'cswap' command implementation.

    Overview

    Visor 'cswap' command implementation.

    Help

    +-----------------------------------------------------+
    | cswap | Swaps backup entries in cache on all nodes. |
    +-----------------------------------------------------+
    Specification
    cache -swap
    cache -swap -c=<cache-name>
    Arguments
    <cache-name>
    Name of the cache.
    If not specified, entries in default cache will be swapped.
    Examples
    cache -swap
        Swaps entries in interactively selected cache.
    cache -swap -c=cache
        Swaps entries in cache with name 'cache'.

Value Members

  1. object VisorCacheClearCommand

    Companion object that does initialization of the command.

  2. object VisorCacheCommand

    Companion object that does initialization of the command.

  3. object VisorCacheCompactCommand

    Companion object that does initialization of the command.

  4. object VisorCacheScanCommand

    Companion object that does initialization of the command.

  5. object VisorCacheSwapCommand

    Companion object that does initialization of the command.

Inherited from AnyRef

Inherited from Any

Ungrouped