public interface GridTcpDiscoveryMetricsStore
GridTcpDiscoverySpi.| Modifier and Type | Method and Description |
|---|---|
Collection<UUID> |
allNodeIds()
Gets all node IDs currently contained in the store.
|
int |
getMetricsExpireTime()
Gets metrics expire time in milliseconds.
|
Map<UUID,GridNodeMetrics> |
metrics(Collection<UUID> nodeIds)
Gets metrics map for provided nodes.
|
void |
onSpiContextDestroyed()
Callback invoked prior to stopping grid before SPI context is destroyed.
|
void |
onSpiContextInitialized(GridSpiContext spiCtx)
Callback invoked when SPI context is initialized after
GridTcpDiscoverySpi.spiStart(String)
method is completed, SPI context can be stored for future access. |
void |
removeMetrics(Collection<UUID> nodeIds)
Removes metrics of provided nodes from the store.
|
void |
updateLocalMetrics(UUID locNodeId,
GridNodeMetrics metrics)
Updates local node metrics in the store.
|
void onSpiContextInitialized(GridSpiContext spiCtx) throws GridSpiException
GridTcpDiscoverySpi.spiStart(String)
method is completed, SPI context can be stored for future access.spiCtx - Spi context.GridSpiException - In case of error.void onSpiContextDestroyed()
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.Map<UUID,GridNodeMetrics> metrics(Collection<UUID> nodeIds) throws GridSpiException
nodeIds - Nodes to get metrics for.GridSpiException - If an error occurs.void removeMetrics(Collection<UUID> nodeIds) throws GridSpiException
nodeIds - Nodes to remove metrics of.GridSpiException - If an error occurs.Collection<UUID> allNodeIds() throws GridSpiException
GridSpiException - if an error occurs.int getMetricsExpireTime()
Copyright © 2014. All rights reserved.