Oracle NoSQL Database
version 11gR2.2.0.26

oracle.kv.stats
Class KVStats

java.lang.Object
  extended by oracle.kv.stats.KVStats
All Implemented Interfaces:
Serializable

public class KVStats
extends Object
implements Serializable

Statistics associated with accessing the KVStore from a client via the KVStore handle. These statistics are from the client's perspective and can therefore vary from client to client depending on the configuration and load on a specific client as well as the network path between the client and the nodes in the KVStore.

See Also:
KVStore.getStats(boolean), Serialized Form

Method Summary
 List<NodeMetrics> getNodeMetrics()
          Returns the metrics associated with each node in the KVStore.
 List<OperationMetrics> getOpMetrics()
          Returns a list of metrics associated with each operation supported by KVStore.
 long getRequestRetryCount()
          Returns the total number of times requests were retried.
 String toString()
          Returns a descriptive string containing metrics for each operation that was actually performed over during the statistics gathering interval, one per line.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

getOpMetrics

public List<OperationMetrics> getOpMetrics()
Returns a list of metrics associated with each operation supported by KVStore. The following table lists the method names and the name associated with it by the OperationMetrics.getOperationName().

It's worth noting that the metrics related to the Iterator methods are special, since each use of an iterator call may result in multiple underlying operations depending upon the batchSize used for the iteration.

KVStore.delete(oracle.kv.Key) delete
KVStore.deleteIfVersion(oracle.kv.Key, oracle.kv.Version) deleteIfVersion
KVStore.execute(java.util.List) execute
KVStore.get(oracle.kv.Key) get
KVStore.multiDelete(oracle.kv.Key, oracle.kv.KeyRange, oracle.kv.Depth) multiDelete
KVStore.multiGet(oracle.kv.Key, oracle.kv.KeyRange, oracle.kv.Depth) multiGet
KVStore.multiGetIterator(oracle.kv.Direction, int, oracle.kv.Key, oracle.kv.KeyRange, oracle.kv.Depth) multiGetIterator
KVStore.multiGetKeys(oracle.kv.Key, oracle.kv.KeyRange, oracle.kv.Depth) multiGetKeys
KVStore.multiGetKeysIterator(oracle.kv.Direction, int, oracle.kv.Key, oracle.kv.KeyRange, oracle.kv.Depth) multiGetKeysIterator
KVStore.put(oracle.kv.Key, oracle.kv.Value) put
KVStore.putIfAbsent(oracle.kv.Key, oracle.kv.Value) putIfAbsent
KVStore.putIfPresent(oracle.kv.Key, oracle.kv.Value) putIfPresent
KVStore.putIfVersion(oracle.kv.Key, oracle.kv.Value, oracle.kv.Version) putIfVersion
KVStore.storeIterator(oracle.kv.Direction, int) storeIterator
KVStore.storeKeysIterator(oracle.kv.Direction, int) storeKeysIterator

Returns:
the list of metrics. One for each of the operations listed above.

toString

public String toString()
Returns a descriptive string containing metrics for each operation that was actually performed over during the statistics gathering interval, one per line.

Overrides:
toString in class Object

getNodeMetrics

public List<NodeMetrics> getNodeMetrics()
Returns the metrics associated with each node in the KVStore.

Returns:
a list containing one entry for each node in the KVStore.

getRequestRetryCount

public long getRequestRetryCount()
Returns the total number of times requests were retried. A single user-level request may be retried transparently at one or more nodes until the request succeeds or it times out. This count reflects those retry operations.

See Also:
KVStoreConfig.getRequestTimeout(TimeUnit)

Oracle NoSQL Database
version 11gR2.2.0.26

Copyright (c) 2011, 2013 Oracle and/or its affiliates. All rights reserved.