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 <christopher.zell@camunda.com>
- See Also:
-
Field Summary
-
Constructor Summary
ConstructorDescriptionMetricIntervalEntity
(Long timestamp, String name, String reporter) Ctor will be used by MybatisMetricIntervalEntity
(Date timestamp, String name, String reporter) -
Method Summary
Modifier and TypeMethodDescriptionboolean
getId()
getName()
Returns the name of the metric.Returns a representation of the object, as would be stored in the database.Returns the reporter name of the metric, identifies the node which generates this metric.Returns the timestamp as date object, on which the metric was created.long
getValue()
Returns the value of the metric.int
hashCode()
void
void
void
setReporter
(String reporter) void
setTimestamp
(long timestamp) void
setTimestamp
(Date timestamp) void
setValue
(long value)
-
Field Details
-
timestamp
-
name
-
reporter
-
value
protected long value
-
-
Constructor Details
-
MetricIntervalEntity
-
MetricIntervalEntity
Ctor will be used by Mybatis- Parameters:
timestamp
-name
-reporter
-
-
-
Method Details
-
getTimestamp
Description copied from interface:MetricIntervalValue
Returns the timestamp as date object, on which the metric was created.- Specified by:
getTimestamp
in interfaceMetricIntervalValue
- Returns:
- the timestamp
-
setTimestamp
-
setTimestamp
public void setTimestamp(long timestamp) -
getName
Description copied from interface:MetricIntervalValue
Returns the name of the metric.- Specified by:
getName
in interfaceMetricIntervalValue
- Returns:
- the name of the metric
- See Also:
-
in Metrics for a list of names which can be returned here
-
setName
-
getReporter
Description copied from interface:MetricIntervalValue
Returns the reporter name of the metric, identifies the node which generates this metric. 'null' when the metrics are aggregated by reporter.- Specified by:
getReporter
in interfaceMetricIntervalValue
- Returns:
- the reporter name
-
setReporter
-
getValue
public long getValue()Description copied from interface:MetricIntervalValue
Returns the value of the metric.- Specified by:
getValue
in interfaceMetricIntervalValue
- Returns:
- the value
-
setValue
public void setValue(long value) -
getId
-
setId
-
getPersistentState
Description copied from interface:DbEntity
Returns 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:
getPersistentState
in interfaceDbEntity
-
hashCode
public int hashCode() -
equals
-