Package org.opennms.netmgt.model
Class StatisticsReport
- java.lang.Object
-
- org.opennms.netmgt.model.StatisticsReport
-
- All Implemented Interfaces:
Serializable
@Entity public class StatisticsReport extends Object implements Serializable
Model class for a statistics report.- Version:
- $Id: $
- Author:
- DJ Gregor
- See Also:
StatisticsReportData, Serialized Form
-
-
Constructor Summary
Constructors Constructor Description StatisticsReport()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddData(StatisticsReportData datum)addDataSet<StatisticsReportData>getData()getDataStringgetDescription()User-friendly description for this report.longgetDuration()getDurationStringgetDurationString()getDurationStringDategetEndDate()The end date for the report (data up to, but not including this time stamp is included).IntegergetId()Unique identifier for report.DategetJobCompletedDate()The date when this report run completed.longgetJobDuration()getJobDurationStringgetJobDurationString()getJobDurationStringDategetJobStartedDate()The date when this report run started.DoublegetMaxDatumValue()getMaxDatumValueDoublegetMinDatumValue()getMinDatumValueStringgetName()Report name this references a report definition in statsd-configuration.xml.DategetPurgeDate()The date at which this report can be purgedDategetStartDate()The beginning date for the report (data starting at this time stamp is included).voidsetData(Set<StatisticsReportData> data)setDatavoidsetDescription(String description)setDescriptionvoidsetEndDate(Date endDate)setEndDatevoidsetId(Integer id)setIdvoidsetJobCompletedDate(Date jobCompletedDate)setJobCompletedDatevoidsetJobStartedDate(Date jobStartedDate)setJobStartedDatevoidsetName(String name)setNamevoidsetPurgeDate(Date purgeDate)setPurgeDatevoidsetStartDate(Date startDate)setStartDate
-
-
-
Method Detail
-
getStartDate
public Date getStartDate()
The beginning date for the report (data starting at this time stamp is included).- Returns:
- a
Dateobject.
-
setStartDate
public void setStartDate(Date startDate)
setStartDate
- Parameters:
startDate- aDateobject.
-
getEndDate
public Date getEndDate()
The end date for the report (data up to, but not including this time stamp is included).- Returns:
- a
Dateobject.
-
getName
public String getName()
Report name this references a report definition in statsd-configuration.xml.- Returns:
- a
Stringobject.
-
getDescription
public String getDescription()
User-friendly description for this report.- Returns:
- a
Stringobject.
-
setDescription
public void setDescription(String description)
setDescription
- Parameters:
description- aStringobject.
-
getJobStartedDate
public Date getJobStartedDate()
The date when this report run started.- Returns:
- a
Dateobject.
-
setJobStartedDate
public void setJobStartedDate(Date jobStartedDate)
setJobStartedDate
- Parameters:
jobStartedDate- aDateobject.
-
getJobCompletedDate
public Date getJobCompletedDate()
The date when this report run completed.- Returns:
- a
Dateobject.
-
setJobCompletedDate
public void setJobCompletedDate(Date jobCompletedDate)
setJobCompletedDate
- Parameters:
jobCompletedDate- aDateobject.
-
getPurgeDate
public Date getPurgeDate()
The date at which this report can be purged- Returns:
- a
Dateobject.
-
setPurgeDate
public void setPurgeDate(Date purgeDate)
setPurgeDate
- Parameters:
purgeDate- aDateobject.
-
getData
public Set<StatisticsReportData> getData()
getData
- Returns:
- a
Setobject.
-
setData
public void setData(Set<StatisticsReportData> data)
setData
- Parameters:
data- aSetobject.
-
addData
public void addData(StatisticsReportData datum)
addData
- Parameters:
datum- aStatisticsReportDataobject.
-
getDuration
public long getDuration()
getDuration
- Returns:
- a long.
-
getJobDuration
public long getJobDuration()
getJobDuration
- Returns:
- a long.
-
getJobDurationString
public String getJobDurationString()
getJobDurationString
- Returns:
- a
Stringobject.
-
-