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) |
void |
checkpoint(long beforeLockDuration,
long lockWaitDuration,
long listenersExecDuration,
long markDuration,
long lockHoldDuration,
long pagesWriteDuration,
long fsyncDuration,
long walCpRecordFsyncDuration,
long writeCpEntryDuration,
long splitAndSortCpPagesDuration,
long totalDuration,
long cpStartTime,
int pagesSize,
int dataPagesWritten,
int cowPagesWritten) |
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 |
pagesWriteThrottle(long endTime,
long duration) |
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 |
rotateCollectStatistics()
Rotate collecting performance statistics.
|
void |
start()
Starts grid component.
|
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, stop, toString, validateNode, validateNodepublic PerformanceStatisticsProcessor(GridKernalContext ctx)
ctx - Kernal context.public void start()
throws IgniteCheckedException
start in interface GridComponentstart in class GridProcessorAdapterIgniteCheckedException - Throws in case of any errors.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 checkpoint(long beforeLockDuration,
long lockWaitDuration,
long listenersExecDuration,
long markDuration,
long lockHoldDuration,
long pagesWriteDuration,
long fsyncDuration,
long walCpRecordFsyncDuration,
long writeCpEntryDuration,
long splitAndSortCpPagesDuration,
long totalDuration,
long cpStartTime,
int pagesSize,
int dataPagesWritten,
int cowPagesWritten)
beforeLockDuration - Before lock duration.lockWaitDuration - Lock wait duration.listenersExecDuration - Listeners execute duration.markDuration - Mark duration.lockHoldDuration - Lock hold duration.pagesWriteDuration - Pages write duration.fsyncDuration - Fsync duration.walCpRecordFsyncDuration - Wal cp record fsync duration.writeCpEntryDuration - Write checkpoint entry duration.splitAndSortCpPagesDuration - Split and sort cp pages duration.totalDuration - Total duration in milliseconds.cpStartTime - Checkpoint start time in milliseconds.pagesSize - Pages size.dataPagesWritten - Data pages written.cowPagesWritten - Cow pages written.public void pagesWriteThrottle(long endTime,
long duration)
endTime - End time in milliseconds.duration - Duration in milliseconds.public void startCollectStatistics()
throws IgniteCheckedException
IgniteCheckedException - If starting failed.public void stopCollectStatistics()
throws IgniteCheckedException
IgniteCheckedException - If stopping failed.public void rotateCollectStatistics()
throws IgniteCheckedException
IgniteCheckedException - If rotation 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.11.1 Release Date : December 20 2021