org.opennms.netmgt.model
Class StatisticsReport

java.lang.Object
  extended by org.opennms.netmgt.model.StatisticsReport
All Implemented Interfaces:
Serializable

public class StatisticsReport
extends Object
implements Serializable

Model class for a statistics report.

Author:
DJ Gregor
See Also:
StatisticsReportData, Serialized Form

Constructor Summary
StatisticsReport()
           
 
Method Summary
 void addData(StatisticsReportData datum)
           
 Set<StatisticsReportData> getData()
           
 String getDescription()
          User-friendly description for this report.
 long getDuration()
           
 String getDurationString()
           
 Date 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()
           
 String getJobDurationString()
           
 Date getJobStartedDate()
          The date when this report run started.
 String getName()
          Report name this references a report definition in statsd-configuration.xml.
 Date getPurgeDate()
          The date at which this report can be purged
 Date getStartDate()
          The beginning date for the report (data starting at this time stamp is included).
 void setData(Set<StatisticsReportData> data)
           
 void setDescription(String description)
           
 void setEndDate(Date endDate)
           
 void setId(Integer id)
           
 void setJobCompletedDate(Date jobCompletedDate)
           
 void setJobStartedDate(Date jobStartedDate)
           
 void setName(String name)
           
 void setPurgeDate(Date purgeDate)
           
 void setStartDate(Date startDate)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StatisticsReport

public StatisticsReport()
Method Detail

getId

public Integer getId()
Unique identifier for report.


setId

public void setId(Integer id)

getStartDate

public Date getStartDate()
The beginning date for the report (data starting at this time stamp is included).

Returns:

setStartDate

public void setStartDate(Date startDate)

getEndDate

public Date getEndDate()
The end date for the report (data up to, but not including this time stamp is included).


setEndDate

public void setEndDate(Date endDate)

getName

public String getName()
Report name this references a report definition in statsd-configuration.xml.


setName

public void setName(String name)

getDescription

public String getDescription()
User-friendly description for this report.


setDescription

public void setDescription(String description)

getJobStartedDate

public Date getJobStartedDate()
The date when this report run started.


setJobStartedDate

public void setJobStartedDate(Date jobStartedDate)

getJobCompletedDate

public Date getJobCompletedDate()
The date when this report run completed.


setJobCompletedDate

public void setJobCompletedDate(Date jobCompletedDate)

getPurgeDate

public Date getPurgeDate()
The date at which this report can be purged


setPurgeDate

public void setPurgeDate(Date purgeDate)

getData

public Set<StatisticsReportData> getData()

setData

public void setData(Set<StatisticsReportData> data)

addData

public void addData(StatisticsReportData datum)

getDuration

public long getDuration()

getDurationString

public String getDurationString()

getJobDuration

public long getJobDuration()

getJobDurationString

public String getJobDurationString()


Copyright © 2009. All Rights Reserved.