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 void
addData(StatisticsReportData datum)
addDataSet<StatisticsReportData>
getData()
getDataString
getDescription()
User-friendly description for this report.long
getDuration()
getDurationString
getDurationString()
getDurationStringDate
getEndDate()
The end date for the report (data up to, but not including this time stamp is included).Integer
getId()
Unique identifier for report.Date
getJobCompletedDate()
The date when this report run completed.long
getJobDuration()
getJobDurationString
getJobDurationString()
getJobDurationStringDate
getJobStartedDate()
The date when this report run started.Double
getMaxDatumValue()
getMaxDatumValueDouble
getMinDatumValue()
getMinDatumValueString
getName()
Report name this references a report definition in statsd-configuration.xml.Date
getPurgeDate()
The date at which this report can be purgedDate
getStartDate()
The beginning date for the report (data starting at this time stamp is included).void
setData(Set<StatisticsReportData> data)
setDatavoid
setDescription(String description)
setDescriptionvoid
setEndDate(Date endDate)
setEndDatevoid
setId(Integer id)
setIdvoid
setJobCompletedDate(Date jobCompletedDate)
setJobCompletedDatevoid
setJobStartedDate(Date jobStartedDate)
setJobStartedDatevoid
setName(String name)
setNamevoid
setPurgeDate(Date purgeDate)
setPurgeDatevoid
setStartDate(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
Date
object.
-
setStartDate
public void setStartDate(Date startDate)
setStartDate
- Parameters:
startDate
- aDate
object.
-
getEndDate
public Date getEndDate()
The end date for the report (data up to, but not including this time stamp is included).- Returns:
- a
Date
object.
-
getName
public String getName()
Report name this references a report definition in statsd-configuration.xml.- Returns:
- a
String
object.
-
getDescription
public String getDescription()
User-friendly description for this report.- Returns:
- a
String
object.
-
setDescription
public void setDescription(String description)
setDescription
- Parameters:
description
- aString
object.
-
getJobStartedDate
public Date getJobStartedDate()
The date when this report run started.- Returns:
- a
Date
object.
-
setJobStartedDate
public void setJobStartedDate(Date jobStartedDate)
setJobStartedDate
- Parameters:
jobStartedDate
- aDate
object.
-
getJobCompletedDate
public Date getJobCompletedDate()
The date when this report run completed.- Returns:
- a
Date
object.
-
setJobCompletedDate
public void setJobCompletedDate(Date jobCompletedDate)
setJobCompletedDate
- Parameters:
jobCompletedDate
- aDate
object.
-
getPurgeDate
public Date getPurgeDate()
The date at which this report can be purged- Returns:
- a
Date
object.
-
setPurgeDate
public void setPurgeDate(Date purgeDate)
setPurgeDate
- Parameters:
purgeDate
- aDate
object.
-
getData
public Set<StatisticsReportData> getData()
getData
- Returns:
- a
Set
object.
-
setData
public void setData(Set<StatisticsReportData> data)
setData
- Parameters:
data
- aSet
object.
-
addData
public void addData(StatisticsReportData datum)
addData
- Parameters:
datum
- aStatisticsReportData
object.
-
getDuration
public long getDuration()
getDuration
- Returns:
- a long.
-
getJobDuration
public long getJobDuration()
getJobDuration
- Returns:
- a long.
-
getJobDurationString
public String getJobDurationString()
getJobDurationString
- Returns:
- a
String
object.
-
-