org.camunda.bpm.engine.impl.metrics
Class MetricsQueryImpl
java.lang.Object
org.camunda.bpm.engine.impl.metrics.MetricsQueryImpl
- All Implemented Interfaces:
- Serializable, Command<Object>, MetricsQuery
public class MetricsQueryImpl
- extends Object
- implements Serializable, Command<Object>, MetricsQuery
- Author:
- Daniel Meyer
- See Also:
- Serialized Form
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
name
protected String name
reporter
protected String reporter
startDate
protected Date startDate
endDate
protected Date endDate
queryType
protected MetricsQueryType queryType
commandExecutor
protected transient CommandExecutor commandExecutor
MetricsQueryImpl
public MetricsQueryImpl(CommandExecutor commandExecutor)
name
public MetricsQueryImpl name(String name)
- Specified by:
name in interface MetricsQuery
- Parameters:
name - The name of the metrics to query for- See Also:
in {@link Metrics} for a list of names which can be used here.
reporter
public MetricsQuery reporter(String reporter)
- Description copied from interface:
MetricsQuery
- Restrict to data collected by the reported with the given identifier
- Specified by:
reporter in interface MetricsQuery
startDate
public MetricsQueryImpl startDate(Date startDate)
- Description copied from interface:
MetricsQuery
- Restrict to data collected after the given date (inclusive)
- Specified by:
startDate in interface MetricsQuery
endDate
public MetricsQueryImpl endDate(Date endDate)
- Description copied from interface:
MetricsQuery
- Restrict to data collected before the given date (exclusive)
- Specified by:
endDate in interface MetricsQuery
sum
public long sum()
- Specified by:
sum in interface MetricsQuery
- Returns:
- the aggregated sum
execute
public Object execute(CommandContext commandContext)
- Specified by:
execute in interface Command<Object>
getStartDate
public Date getStartDate()
getEndDate
public Date getEndDate()
getName
public String getName()
getReporter
public String getReporter()
Copyright © 2015 camunda services GmbH. All rights reserved.