org.infinispan.hotrod.impl.cache.ServerStatistics Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of infinispan-hotrod-jakarta Show documentation
Show all versions of infinispan-hotrod-jakarta Show documentation
Infinispan Hot Rod Client Jakarta EE
package org.infinispan.hotrod.impl.cache;
import java.util.Map;
/**
* Defines the possible list of statistics defined by the Hot Rod server.
* Can be obtained through {@link RemoteCache#stats()}
*
* @since 14.0
*/
public interface ServerStatistics {
/**
* Number of seconds since Hot Rod started.
*/
String TIME_SINCE_START = "timeSinceStart";
/**
* Approximate current number of entry replicas in the cache on the server that receives the request.
*
* Includes both entries in memory and in persistent storage.
*/
String APPROXIMATE_ENTRIES = "approximateEntries";
/**
* Approximate current number of entries for which the server that receives the request is the primary owner.
*
* Includes both entries in memory and in persistent storage.
*/
String APPROXIMATE_ENTRIES_UNIQUE = "approximateEntriesUnique";
/**
* Number of entries stored in the cache by the server that receives the request since the cache started running.
*/
String STORES = "stores";
/**
* Number of get operations.
*/
String RETRIEVALS = "retrievals";
/**
* Number of get hits.
*/
String HITS = "hits";
/**
* Number of get misses.
*/
String MISSES = "misses";
/**
* Number of removal hits.
*/
String REMOVE_HITS = "removeHits";
/**
* Number of removal misses.
*/
String REMOVE_MISSES = "removeMisses";
/**
* Approximate current number of entry replicas currently in the cache cluster-wide.
*
* Includes both entries in memory and in persistent storage.
*/
String CLUSTER_APPROXIMATE_ENTRIES = "globalApproximateEntries";
/**
* Approximate current number of unique entries in the cache cluster-wide.
*
* Includes both entries in memory and in persistent storage.
* Entries owned by multiple nodes are counted only once.
*/
String CLUSTER_APPROXIMATE_ENTRIES_UNIQUE = "globalApproximateEntriesUnique";
Map getStatsMap();
String getStatistic(String statsName);
Integer getIntStatistic(String statsName);
}