public class MetricIntervalEntity extends Object implements MetricIntervalValue, DbEntity, Serializable
Modifier and Type | Field and Description |
---|---|
protected String |
name |
protected String |
reporter |
protected Date |
timestamp |
protected long |
value |
Constructor and Description |
---|
MetricIntervalEntity(Date timestamp,
String name,
String reporter) |
MetricIntervalEntity(Long timestamp,
String name,
String reporter)
Ctor will be used by Mybatis
|
Modifier and Type | Method and Description |
---|---|
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, identifies the node which generates this 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) |
protected Date timestamp
protected String name
protected String reporter
protected long value
public Date getTimestamp()
MetricIntervalValue
getTimestamp
in interface MetricIntervalValue
public void setTimestamp(Date timestamp)
public void setTimestamp(long timestamp)
public String getName()
MetricIntervalValue
getName
in interface MetricIntervalValue
in {@link Metrics} for a list of names which can be returned here
public void setName(String name)
public String getReporter()
MetricIntervalValue
getReporter
in interface MetricIntervalValue
public void setReporter(String reporter)
public long getValue()
MetricIntervalValue
getValue
in interface MetricIntervalValue
public void setValue(long value)
public Object getPersistentState()
DbEntity
getPersistentState
in interface DbEntity
Copyright © 2020. All rights reserved.