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  Date startDate
           
 
Constructor Summary
MetricsQueryImpl(CommandExecutor commandExecutor)
           
 
Method Summary
 MetricsQueryImpl endDate(Date endDate)
          Restrict to data collected before the given date
 Object execute(CommandContext commandContext)
           
 Date getEndDate()
           
 String getName()
           
 Date getStartDate()
           
 MetricsQueryImpl name(String name)
           
 MetricsQueryImpl startDate(Date startDate)
          Restrict to data collected after the given date
 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

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.

startDate

public MetricsQueryImpl startDate(Date startDate)
Description copied from interface: MetricsQuery
Restrict to data collected after the given date

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

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()


Copyright © 2015 camunda services GmbH. All rights reserved.