Package org.opennms.netmgt.model
Class StatisticsReport
- java.lang.Object
-
- org.opennms.netmgt.model.StatisticsReport
-
- All Implemented Interfaces:
java.io.Serializable
@Entity public class StatisticsReport extends java.lang.Object implements java.io.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)
addDatajava.util.Set<StatisticsReportData>
getData()
getDatajava.lang.String
getDescription()
User-friendly description for this report.long
getDuration()
getDurationjava.lang.String
getDurationString()
getDurationStringjava.util.Date
getEndDate()
The end date for the report (data up to, but not including this time stamp is included).java.lang.Integer
getId()
Unique identifier for report.java.util.Date
getJobCompletedDate()
The date when this report run completed.long
getJobDuration()
getJobDurationjava.lang.String
getJobDurationString()
getJobDurationStringjava.util.Date
getJobStartedDate()
The date when this report run started.java.lang.Double
getMaxDatumValue()
getMaxDatumValuejava.lang.Double
getMinDatumValue()
getMinDatumValuejava.lang.String
getName()
Report name this references a report definition in statsd-configuration.xml.java.util.Date
getPurgeDate()
The date at which this report can be purgedjava.util.Date
getStartDate()
The beginning date for the report (data starting at this time stamp is included).void
setData(java.util.Set<StatisticsReportData> data)
setDatavoid
setDescription(java.lang.String description)
setDescriptionvoid
setEndDate(java.util.Date endDate)
setEndDatevoid
setId(java.lang.Integer id)
setIdvoid
setJobCompletedDate(java.util.Date jobCompletedDate)
setJobCompletedDatevoid
setJobStartedDate(java.util.Date jobStartedDate)
setJobStartedDatevoid
setName(java.lang.String name)
setNamevoid
setPurgeDate(java.util.Date purgeDate)
setPurgeDatevoid
setStartDate(java.util.Date startDate)
setStartDate
-
-
-
Method Detail
-
getId
public java.lang.Integer getId()
Unique identifier for report.- Returns:
- a
Integer
object.
-
setId
public void setId(java.lang.Integer id)
setId
- Parameters:
id
- aInteger
object.
-
getStartDate
public java.util.Date getStartDate()
The beginning date for the report (data starting at this time stamp is included).- Returns:
- a
Date
object.
-
setStartDate
public void setStartDate(java.util.Date startDate)
setStartDate
- Parameters:
startDate
- aDate
object.
-
getEndDate
public java.util.Date getEndDate()
The end date for the report (data up to, but not including this time stamp is included).- Returns:
- a
Date
object.
-
setEndDate
public void setEndDate(java.util.Date endDate)
setEndDate
- Parameters:
endDate
- aDate
object.
-
getName
public java.lang.String getName()
Report name this references a report definition in statsd-configuration.xml.- Returns:
- a
String
object.
-
setName
public void setName(java.lang.String name)
setName
- Parameters:
name
- aString
object.
-
getDescription
public java.lang.String getDescription()
User-friendly description for this report.- Returns:
- a
String
object.
-
setDescription
public void setDescription(java.lang.String description)
setDescription
- Parameters:
description
- aString
object.
-
getJobStartedDate
public java.util.Date getJobStartedDate()
The date when this report run started.- Returns:
- a
Date
object.
-
setJobStartedDate
public void setJobStartedDate(java.util.Date jobStartedDate)
setJobStartedDate
- Parameters:
jobStartedDate
- aDate
object.
-
getJobCompletedDate
public java.util.Date getJobCompletedDate()
The date when this report run completed.- Returns:
- a
Date
object.
-
setJobCompletedDate
public void setJobCompletedDate(java.util.Date jobCompletedDate)
setJobCompletedDate
- Parameters:
jobCompletedDate
- aDate
object.
-
getPurgeDate
public java.util.Date getPurgeDate()
The date at which this report can be purged- Returns:
- a
Date
object.
-
setPurgeDate
public void setPurgeDate(java.util.Date purgeDate)
setPurgeDate
- Parameters:
purgeDate
- aDate
object.
-
getData
public java.util.Set<StatisticsReportData> getData()
getData
- Returns:
- a
Set
object.
-
setData
public void setData(java.util.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.
-
getDurationString
public java.lang.String getDurationString()
getDurationString
- Returns:
- a
String
object.
-
getJobDuration
public long getJobDuration()
getJobDuration
- Returns:
- a long.
-
getJobDurationString
public java.lang.String getJobDurationString()
getJobDurationString
- Returns:
- a
String
object.
-
getMaxDatumValue
public java.lang.Double getMaxDatumValue()
getMaxDatumValue
- Returns:
- a
Double
object.
-
getMinDatumValue
public java.lang.Double getMinDatumValue()
getMinDatumValue
- Returns:
- a
Double
object.
-
-