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()
MetricIntervalValuegetTimestamp in interface MetricIntervalValuepublic void setTimestamp(Date timestamp)
public void setTimestamp(long timestamp)
public String getName()
MetricIntervalValuegetName in interface MetricIntervalValuein {@link Metrics} for a list of names which can be returned herepublic void setName(String name)
public String getReporter()
MetricIntervalValuegetReporter in interface MetricIntervalValuepublic void setReporter(String reporter)
public long getValue()
MetricIntervalValuegetValue in interface MetricIntervalValuepublic void setValue(long value)
public Object getPersistentState()
DbEntitygetPersistentState in interface DbEntityCopyright © 2021. All rights reserved.