Visor 'clear' command implementation.
Visor 'clear' command implementation.
+------------------------------------------------------------+ | cache -clear | Clears all entries from cache on all nodes. | +------------------------------------------------------------+
cache -clear cache -clear -c=<cache-name>
<cache-name> Name of the cache. If not specified, default cache will be cleared.
cache -clear
Clears interactively selected cache.
cache -clear -c=cache
Clears cache with name 'cache'.
Visor 'cache' command implementation.
Visor 'cache' command implementation.
+-----------------------------------------------------------------------------------------+ | 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. | +-----------------------------------------------------------------------------------------+
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>}-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.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.
Visor 'compact' command implementation.
Visor 'compact' command implementation.
+--------------------------------------------------------+ | compact | Compacts all entries in cache on all nodes. | +--------------------------------------------------------+
compact compact -c=<cache-name>
<cache-name> Name of the cache. If not specified, entries in default cache will be compacted.
compact
Compacts entries in interactively selected cache.
compact -c=cache
Compacts entries in cache with name 'cache'.
Visor 'scan' command implementation.
Visor 'scan' command implementation.
cache {-id=<node-id>|-id8=<node-id8>} {-p=<page size>} -c=<cache name> -scan<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.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.
Visor 'cswap' command implementation.
Visor 'cswap' command implementation.
+-----------------------------------------------------+ | cswap | Swaps backup entries in cache on all nodes. | +-----------------------------------------------------+
cache -swap cache -swap -c=<cache-name>
<cache-name> Name of the cache. If not specified, entries in default cache will be swapped.
cache -swap
Swaps entries in interactively selected cache.
cache -swap -c=cache
Swaps entries in cache with name 'cache'.
Companion object that does initialization of the command.
Companion object that does initialization of the command.
Companion object that does initialization of the command.
Companion object that does initialization of the command.
Companion object that does initialization of the command.
Overview
Visor 'cache' command implementation.
Help
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.