Class MetricIntervalEntity
- java.lang.Object
-
- org.camunda.bpm.engine.impl.persistence.entity.MetricIntervalEntity
-
- All Implemented Interfaces:
Serializable,DbEntity,MetricIntervalValue
public class MetricIntervalEntity extends Object implements MetricIntervalValue, DbEntity, Serializable
- Author:
- Christopher Zell
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description MetricIntervalEntity(Long timestamp, String name, String reporter)Ctor will be used by MybatisMetricIntervalEntity(Date timestamp, String name, String reporter)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)StringgetId()StringgetName()Returns the name of the metric.ObjectgetPersistentState()Returns a representation of the object, as would be stored in the database.StringgetReporter()Returns the reporter name of the metric, identifies the node which generates this metric.DategetTimestamp()Returns the timestamp as date object, on which the metric was created.longgetValue()Returns the value of the metric.inthashCode()voidsetId(String id)voidsetName(String name)voidsetReporter(String reporter)voidsetTimestamp(long timestamp)voidsetTimestamp(Date timestamp)voidsetValue(long value)
-
-
-
Method Detail
-
getTimestamp
public Date getTimestamp()
Description copied from interface:MetricIntervalValueReturns the timestamp as date object, on which the metric was created.- Specified by:
getTimestampin interfaceMetricIntervalValue- Returns:
- the timestamp
-
setTimestamp
public void setTimestamp(Date timestamp)
-
setTimestamp
public void setTimestamp(long timestamp)
-
getName
public String getName()
Description copied from interface:MetricIntervalValueReturns the name of the metric.- Specified by:
getNamein interfaceMetricIntervalValue- Returns:
- the name of the metric
- See Also:
in for a list of names which can be returned here
-
setName
public void setName(String name)
-
getReporter
public String getReporter()
Description copied from interface:MetricIntervalValueReturns the reporter name of the metric, identifies the node which generates this metric. 'null' when the metrics are aggregated by reporter.- Specified by:
getReporterin interfaceMetricIntervalValue- Returns:
- the reporter name
-
setReporter
public void setReporter(String reporter)
-
getValue
public long getValue()
Description copied from interface:MetricIntervalValueReturns the value of the metric.- Specified by:
getValuein interfaceMetricIntervalValue- Returns:
- the value
-
setValue
public void setValue(long value)
-
getPersistentState
public Object getPersistentState()
Description copied from interface:DbEntityReturns a representation of the object, as would be stored in the database. Used when deciding if updates have occurred to the object or not since it was last loaded.- Specified by:
getPersistentStatein interfaceDbEntity
-
-