public class GridTcpDiscoveryVmMetricsStore extends GridTcpDiscoveryMetricsStoreAdapter
GridTcpDiscoveryMetricsStoreAdapter.setMetricsExpireTime(int)).DFLT_METRICS_EXPIRE_TIME| Constructor and Description |
|---|
GridTcpDiscoveryVmMetricsStore() |
| Modifier and Type | Method and Description |
|---|---|
Collection<UUID> |
allNodeIds()
Gets all node IDs currently contained in the store.
|
protected Map<UUID,GridNodeMetrics> |
metrics0(Collection<UUID> nodeIds)
Requests metrics from store in case local cached metrics are outdated.
|
protected void |
removeMetrics0(Collection<UUID> nodeIds)
Removes metrics from store.
|
String |
toString() |
void |
updateLocalMetrics(UUID locNodeId,
GridNodeMetrics metrics)
Updates local node metrics in the store.
|
getMetricsExpireTime, metrics, onSpiContextDestroyed, onSpiContextInitialized, removeMetrics, setMetricsExpireTime, spiContextpublic void updateLocalMetrics(UUID locNodeId, GridNodeMetrics metrics) throws GridSpiException
locNodeId - Id of the local node (caller node).metrics - Local node metrics.GridSpiException - If an error occurs.protected Map<UUID,GridNodeMetrics> metrics0(Collection<UUID> nodeIds)
metrics0 in class GridTcpDiscoveryMetricsStoreAdapternodeIds - Nodes to request metrics for.protected void removeMetrics0(Collection<UUID> nodeIds) throws GridSpiException
removeMetrics0 in class GridTcpDiscoveryMetricsStoreAdapternodeIds - Nodes to remove metrics of.GridSpiException - If any error occurs.public Collection<UUID> allNodeIds() throws GridSpiException
GridSpiException - if an error occurs.Copyright © 2014. All rights reserved.