public class PerformanceStatisticsProcessor extends GridProcessorAdapter
Manages collecting performance statistics.
| Modifier and Type | Class and Description |
|---|---|
static interface |
PerformanceStatisticsProcessor.PerformanceStatisticsStateListener
Performance statistics state listener.
|
GridComponent.DiscoveryDataExchangeTypectx, diagnosticLog, log| Constructor and Description |
|---|
PerformanceStatisticsProcessor(GridKernalContext ctx) |
| Modifier and Type | Method and Description |
|---|---|
void |
cacheOperation(OperationType type,
int cacheId,
long startTime,
long duration) |
void |
cacheStart(int cacheId,
String name) |
boolean |
enabled() |
void |
job(IgniteUuid sesId,
long queuedTime,
long startTime,
long duration,
boolean timedOut) |
void |
onDisconnected(IgniteFuture<?> reconnectFut)
Client disconnected callback.
|
void |
onKernalStop(boolean cancel)
Callback to notify that kernal is about to stop.
|
void |
query(GridCacheQueryType type,
String text,
long id,
long startTime,
long duration,
boolean success) |
void |
queryReads(GridCacheQueryType type,
UUID queryNodeId,
long id,
long logicalReads,
long physicalReads) |
void |
registerStateListener(PerformanceStatisticsProcessor.PerformanceStatisticsStateListener lsnr)
Registers state listener.
|
void |
startCollectStatistics()
Starts collecting performance statistics.
|
void |
stopCollectStatistics()
Stops collecting performance statistics.
|
void |
task(IgniteUuid sesId,
String taskName,
long startTime,
long duration,
int affPartId) |
void |
transaction(GridIntList cacheIds,
long startTime,
long duration,
boolean commited) |
assertParameter, collectGridNodeData, collectJoiningNodeData, discoveryDataType, onGridDataReceived, onJoiningNodeDataReceived, onKernalStart, onReconnected, printMemoryStats, start, stop, toString, validateNode, validateNodepublic PerformanceStatisticsProcessor(GridKernalContext ctx)
ctx - Kernal context.public void registerStateListener(PerformanceStatisticsProcessor.PerformanceStatisticsStateListener lsnr)
public void cacheStart(int cacheId,
String name)
cacheId - Cache id.name - Cache name.public void cacheOperation(OperationType type, int cacheId, long startTime, long duration)
type - Operation type.cacheId - Cache id.startTime - Start time in milliseconds.duration - Duration in nanoseconds.public void transaction(GridIntList cacheIds, long startTime, long duration, boolean commited)
cacheIds - Cache IDs.startTime - Start time in milliseconds.duration - Duration in nanoseconds.commited - True if commited.public void query(GridCacheQueryType type, String text, long id, long startTime, long duration, boolean success)
type - Cache query type.text - Query text in case of SQL query. Cache name in case of SCAN query.id - Query id.startTime - Start time in milliseconds.duration - Duration in nanoseconds.success - Success flag.public void queryReads(GridCacheQueryType type, UUID queryNodeId, long id, long logicalReads, long physicalReads)
type - Cache query type.queryNodeId - Originating node id.id - Query id.logicalReads - Number of logical reads.physicalReads - Number of physical reads.public void task(IgniteUuid sesId, String taskName, long startTime, long duration, int affPartId)
sesId - Session id.taskName - Task name.startTime - Start time in milliseconds.duration - Duration.affPartId - Affinity partition id.public void job(IgniteUuid sesId, long queuedTime, long startTime, long duration, boolean timedOut)
sesId - Session id.queuedTime - Time job spent on waiting queue.startTime - Start time in milliseconds.duration - Job execution time.timedOut - True if job is timed out.public void startCollectStatistics()
throws IgniteCheckedException
IgniteCheckedException - If starting failed.public void stopCollectStatistics()
throws IgniteCheckedException
IgniteCheckedException - If stopping failed.public boolean enabled()
True if collecting performance statistics is enabled.public void onKernalStop(boolean cancel)
onKernalStop in interface GridComponentonKernalStop in class GridProcessorAdaptercancel - Flag indicating whether jobs should be canceled.public void onDisconnected(IgniteFuture<?> reconnectFut)
onDisconnected in interface GridComponentonDisconnected in class GridProcessorAdapterreconnectFut - Reconnect future.
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 2.10.0 Release Date : March 10 2021