org.camunda.bpm.engine.impl.persistence.entity
Class MetricIntervalEntity

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

Field Summary
protected  String name
           
protected  String reporter
           
protected  Date timestamp
           
protected  long value
           
 
Constructor Summary
MetricIntervalEntity(Date timestamp, String name, String reporter)
           
MetricIntervalEntity(Long timestamp, String name, String reporter)
          Ctor will be used by Mybatis
 
Method Summary
 boolean equals(Object obj)
           
 String getId()
           
 String getName()
          Returns the name of the metric.
 Object getPersistentState()
          Returns a representation of the object, as would be stored in the database.
 String getReporter()
          Returns the reporter name of the metric.
 Date getTimestamp()
          Returns the timestamp as date object, on which the metric was created.
 long getValue()
          Returns the value of the metric.
 int hashCode()
           
 void setId(String id)
           
 void setName(String name)
           
 void setReporter(String reporter)
           
 void setTimestamp(Date timestamp)
           
 void setTimestamp(long timestamp)
           
 void setValue(long value)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

timestamp

protected Date timestamp

name

protected String name

reporter

protected String reporter

value

protected long value
Constructor Detail

MetricIntervalEntity

public MetricIntervalEntity(Date timestamp,
                            String name,
                            String reporter)

MetricIntervalEntity

public MetricIntervalEntity(Long timestamp,
                            String name,
                            String reporter)
Ctor will be used by Mybatis

Parameters:
timestamp -
name -
reporter -
Method Detail

getTimestamp

public Date getTimestamp()
Description copied from interface: MetricIntervalValue
Returns the timestamp as date object, on which the metric was created.

Specified by:
getTimestamp in interface MetricIntervalValue
Returns:
the timestamp

setTimestamp

public void setTimestamp(Date timestamp)

setTimestamp

public void setTimestamp(long timestamp)

getName

public String getName()
Description copied from interface: MetricIntervalValue
Returns the name of the metric.

Specified by:
getName in interface MetricIntervalValue
Returns:
the name of the metric
See Also:
in {@link Metrics} for a list of names which can be returned here

setName

public void setName(String name)

getReporter

public String getReporter()
Description copied from interface: MetricIntervalValue
Returns the reporter name of the metric. Identifies the node which generates this metric.

Specified by:
getReporter in interface MetricIntervalValue
Returns:
the reporter name

setReporter

public void setReporter(String reporter)

getValue

public long getValue()
Description copied from interface: MetricIntervalValue
Returns the value of the metric.

Specified by:
getValue in interface MetricIntervalValue
Returns:
the value

setValue

public void setValue(long value)

getId

public String getId()
Specified by:
getId in interface DbEntity

setId

public void setId(String id)
Specified by:
setId in interface DbEntity

getPersistentState

public Object 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 interface DbEntity

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object


Copyright © 2016 camunda services GmbH. All rights reserved.