org.camunda.bpm.engine.impl.metrics
Class MetricsQueryImpl

java.lang.Object
  extended by 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

Field Summary
protected  CommandExecutor commandExecutor
           
protected  Date endDate
           
protected  String name
           
protected  MetricsQueryType queryType
           
protected  String reporter
           
protected  Date startDate
           
 
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()
           
 String getName()
           
 String getReporter()
           
 Date getStartDate()
           
 MetricsQueryImpl name(String name)
           
 MetricsQuery reporter(String reporter)
          Restrict to data collected by the reported with the given identifier
 MetricsQueryImpl startDate(Date startDate)
          Restrict to data collected after the given date (inclusive)
 long sum()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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
Constructor Detail

MetricsQueryImpl

public MetricsQueryImpl(CommandExecutor commandExecutor)
Method Detail

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.