|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.camunda.bpm.engine.impl.db.ListQueryParameterObject
org.camunda.bpm.engine.impl.metrics.MetricsQueryImpl
public class MetricsQueryImpl
| Field Summary | |
|---|---|
protected Command<Object> |
callback
Contains the command implementation which should be executed either metric sum or select metric grouped by time interval. |
protected CommandExecutor |
commandExecutor
|
static int |
DEFAULT_LIMIT_SELECT_INTERVAL
|
static long |
DEFAULT_SELECT_INTERVAL
|
protected Date |
endDate
|
protected Long |
endDateMilliseconds
|
protected Long |
interval
|
protected String |
name
|
protected String |
reporter
|
protected Date |
startDate
|
protected Long |
startDateMilliseconds
|
| Fields inherited from class org.camunda.bpm.engine.impl.db.ListQueryParameterObject |
|---|
authCheck, databaseType, firstResult, maxResults, orderingProperties, parameter, tenantCheck |
| Constructor Summary | |
|---|---|
MetricsQueryImpl(CommandExecutor commandExecutor)
|
|
| Method Summary | |
|---|---|
MetricsQueryImpl |
endDate(Date endDate)
Restrict to data collected before the given date (exclusive) |
Object |
execute(CommandContext commandContext)
|
Date |
getEndDate()
|
Long |
getEndDateMilliseconds()
|
Long |
getInterval()
|
int |
getMaxResults()
|
String |
getName()
|
String |
getReporter()
|
Date |
getStartDate()
|
Long |
getStartDateMilliseconds()
|
List<MetricIntervalValue> |
interval()
Returns the metrics summed up and aggregated on a time interval. |
List<MetricIntervalValue> |
interval(long interval)
Returns the metrics summed up and aggregated on a time interval. |
MetricsQuery |
limit(int maxResults)
Sets the limit row count of the result. |
MetricsQueryImpl |
name(String name)
|
MetricsQuery |
offset(int offset)
Sets the offset of the returned results. |
MetricsQuery |
reporter(String reporter)
Restrict to data collected by the reported with the given identifier |
void |
setMaxResults(int maxResults)
|
MetricsQueryImpl |
startDate(Date startDate)
Restrict to data collected after the given date (inclusive) |
long |
sum()
|
| Methods inherited from class org.camunda.bpm.engine.impl.db.ListQueryParameterObject |
|---|
getAuthCheck, getDatabaseType, getFirstResult, getFirstRow, getLastRow, getOrderingProperties, getParameter, getTenantCheck, setAuthCheck, setDatabaseType, setFirstResult, setOrderingProperties, setParameter, setTenantCheck |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int DEFAULT_LIMIT_SELECT_INTERVAL
public static final long DEFAULT_SELECT_INTERVAL
protected String name
protected String reporter
protected Date startDate
protected Date endDate
protected Long startDateMilliseconds
protected Long endDateMilliseconds
protected Long interval
protected transient CommandExecutor commandExecutor
protected Command<Object> callback
| Constructor Detail |
|---|
public MetricsQueryImpl(CommandExecutor commandExecutor)
| Method Detail |
|---|
public MetricsQueryImpl name(String name)
name in interface MetricsQueryname - The name of the metrics to query forin {@link Metrics} for a list of names which can be used here.public MetricsQuery reporter(String reporter)
MetricsQuery
reporter in interface MetricsQuerypublic MetricsQueryImpl startDate(Date startDate)
MetricsQuery
startDate in interface MetricsQuerypublic MetricsQueryImpl endDate(Date endDate)
MetricsQuery
endDate in interface MetricsQuerypublic List<MetricIntervalValue> interval()
MetricsQuery
interval in interface MetricsQuerypublic List<MetricIntervalValue> interval(long interval)
MetricsQuery
interval in interface MetricsQueryinterval - The time interval on which the metrics should be aggregated.
The time unit is seconds.
public long sum()
sum in interface MetricsQuerypublic Object execute(CommandContext commandContext)
execute in interface Command<Object>public MetricsQuery offset(int offset)
MetricsQuery
offset in interface MetricsQueryoffset - indicates after which row the result begins
public MetricsQuery limit(int maxResults)
MetricsQuery
limit in interface MetricsQuerymaxResults - the new row limit of the result
public void setMaxResults(int maxResults)
setMaxResults in class ListQueryParameterObjectpublic Date getStartDate()
public Date getEndDate()
public Long getStartDateMilliseconds()
public Long getEndDateMilliseconds()
public String getName()
public String getReporter()
public Long getInterval()
public int getMaxResults()
getMaxResults in class ListQueryParameterObject
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||