public class FilePerformanceStatisticsWriter extends Object
Each node collects statistics to a file placed under PERF_STAT_DIR.
To iterate over records use FilePerformanceStatisticsReader.
| Modifier and Type | Field and Description |
|---|---|
static int |
DFLT_BUFFER_SIZE
Default off heap buffer size in bytes.
|
static int |
DFLT_CACHED_STRINGS_THRESHOLD
Default maximum cached strings threshold.
|
static long |
DFLT_FILE_MAX_SIZE
Default maximum file size in bytes.
|
static int |
DFLT_FLUSH_SIZE
Default minimal batch size to flush in bytes.
|
static String |
PERF_STAT_DIR
Directory to store performance statistics files.
|
| Constructor and Description |
|---|
FilePerformanceStatisticsWriter(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 |
job(IgniteUuid sesId,
long queuedTime,
long startTime,
long duration,
boolean timedOut) |
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 |
start()
Starts collecting performance statistics.
|
void |
stop()
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) |
public static final String PERF_STAT_DIR
public static final long DFLT_FILE_MAX_SIZE
public static final int DFLT_BUFFER_SIZE
public static final int DFLT_FLUSH_SIZE
public static final int DFLT_CACHED_STRINGS_THRESHOLD
public FilePerformanceStatisticsWriter(GridKernalContext ctx) throws IgniteCheckedException, IOException
ctx - Kernal context.IgniteCheckedExceptionIOExceptionpublic void start()
public void stop()
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.
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 2.10.0 Release Date : March 10 2021