public abstract class GridTcpDiscoveryMetricsStoreAdapter extends Object implements GridTcpDiscoveryMetricsStore
| Modifier and Type | Field and Description |
|---|---|
static int |
DFLT_METRICS_EXPIRE_TIME
Default metrics expire time in milliseconds (value is 10000).
|
| Constructor and Description |
|---|
GridTcpDiscoveryMetricsStoreAdapter() |
| Modifier and Type | Method and Description |
|---|---|
int |
getMetricsExpireTime()
Gets metrics expire time in milliseconds.
|
Map<UUID,GridNodeMetrics> |
metrics(Collection<UUID> nodeIds)
Gets metrics map for provided nodes.
|
protected abstract Map<UUID,GridNodeMetrics> |
metrics0(Collection<UUID> nodeIds)
Requests metrics from store in case local cached metrics are outdated.
|
void |
removeMetrics(Collection<UUID> nodeIds)
Removes metrics of provided nodes from the store.
|
protected abstract void |
removeMetrics0(Collection<UUID> nodeIds)
Removes metrics from store.
|
void |
setMetricsExpireTime(int metricsExpireTime)
Sets metrics expire time in milliseconds.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitallNodeIds, updateLocalMetricspublic static final int DFLT_METRICS_EXPIRE_TIME
public final Map<UUID,GridNodeMetrics> metrics(Collection<UUID> nodeIds) throws GridSpiException
metrics in interface GridTcpDiscoveryMetricsStorenodeIds - Nodes to get metrics for.GridSpiException - If an error occurs.public final void removeMetrics(Collection<UUID> nodeIds) throws GridSpiException
removeMetrics in interface GridTcpDiscoveryMetricsStorenodeIds - Nodes to remove metrics of.GridSpiException - If an error occurs.public int getMetricsExpireTime()
getMetricsExpireTime in interface GridTcpDiscoveryMetricsStore@GridSpiConfiguration(optional=true) public void setMetricsExpireTime(int metricsExpireTime)
Cached metrics are purged and requested from the store again if older than expire time.
If not provided, default value is DFLT_METRICS_EXPIRE_TIME
metricsExpireTime - Metrics expire time.protected abstract Map<UUID,GridNodeMetrics> metrics0(Collection<UUID> nodeIds) throws GridSpiException
nodeIds - Nodes to request metrics for.GridSpiException - If any error occurs.protected abstract void removeMetrics0(Collection<UUID> nodeIds) throws GridSpiException
nodeIds - Nodes to remove metrics of.GridSpiException - If any error occurs.
Core Products
:
Data Grid ver. 6.0.2,
Streaming ver. 6.0.2
Accelerators
:
Hadoop Accelerator ver. 6.0.2
Release Date
:
March 24 2014