public class QueryHistory extends Object
| Constructor and Description |
|---|
QueryHistory(String qry,
String schema,
boolean loc,
long startTime,
long duration,
boolean failed)
Constructor with metrics.
|
| Modifier and Type | Method and Description |
|---|---|
QueryHistory |
aggregateWithNew(QueryHistory m)
Aggregate new metrics with already existen.
|
long |
executions()
Gets total number execution of query.
|
long |
failures()
Gets number of times a query execution failed.
|
QueryHistoryKey |
key() |
long |
lastStartTime()
Gets latest query start time.
|
ConcurrentLinkedDeque8.Node<QueryHistory> |
link() |
boolean |
local() |
long |
maximumTime()
Gets maximum execution time of query.
|
long |
minimumTime()
Gets minimum execution time of query.
|
String |
query() |
boolean |
replaceLink(ConcurrentLinkedDeque8.Node<QueryHistory> expLink,
ConcurrentLinkedDeque8.Node<QueryHistory> updatedLink)
Atomically replace link to new.
|
String |
schema() |
String |
toString() |
public QueryHistory(String qry, String schema, boolean loc, long startTime, long duration, boolean failed)
qry - Textual query representation.schema - Schema name.loc - true for local query.startTime - Start time of query execution.duration - Duration of query execution.failed - True query executed unsuccessfully false otherwise.public QueryHistoryKey key()
public QueryHistory aggregateWithNew(QueryHistory m)
m - Other metrics to take into account.public String query()
public String schema()
public boolean local()
true For query with enabled local flag.public long executions()
public long failures()
public long minimumTime()
public long maximumTime()
public long lastStartTime()
@Nullable public ConcurrentLinkedDeque8.Node<QueryHistory> link()
public boolean replaceLink(ConcurrentLinkedDeque8.Node<QueryHistory> expLink, ConcurrentLinkedDeque8.Node<QueryHistory> updatedLink)
expLink - Link which should be replaced.updatedLink - New link which should be set.true If link has been updated.
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 2.10.0 Release Date : March 10 2021