Package org.opennms.netmgt.statsd
Class BaseReportInstance
- java.lang.Object
-
- org.opennms.netmgt.statsd.AbstractReportInstance
-
- org.opennms.netmgt.statsd.BaseReportInstance
-
- All Implemented Interfaces:
ReportInstance
,org.springframework.beans.factory.InitializingBean
- Direct Known Subclasses:
FilteredReportInstance
,UnfilteredReportInstance
public abstract class BaseReportInstance extends AbstractReportInstance implements org.springframework.beans.factory.InitializingBean
BaseReportInstance class.
TODO: Merge this class withAbstractReportInstance
.- Author:
- DJ Gregor
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
BaseReportInstance(AttributeStatisticVisitorWithResults visitor)
Constructor for UnfilteredReportInstance.
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description void
afterPropertiesSet()
afterPropertiesSetjava.lang.String
getAttributeMatch()
getAttributeMatchjava.lang.String
getConsolidationFunction()
getConsolidationFunctionint
getCount()
getCountlong
getEndTime()
getEndTimejava.lang.String
getResourceAttributeKey()
getResourceAttributeKeyjava.lang.String
getResourceAttributeValueMatch()
getResourceAttributeValueMatchjava.lang.String
getResourceTypeMatch()
getResourceTypeMatchjava.util.SortedSet<AttributeStatistic>
getResults()
getResultslong
getStartTime()
getStartTimeabstract ResourceWalker
getWalker()
void
setAttributeMatch(java.lang.String attr)
setAttributeMatchvoid
setConsolidationFunction(java.lang.String cf)
setConsolidationFunctionvoid
setCount(int count)
setCountvoid
setEndTime(long end)
setEndTimevoid
setFetchStrategy(MeasurementFetchStrategy fetchStrategy)
void
setResourceAttributeKey(java.lang.String resourceAttributeKey)
setResourceAttributeKeyvoid
setResourceAttributeValueMatch(java.lang.String resourceAttributeValueMatch)
setResourceAttributeValueMatchvoid
setResourceDao(ResourceDao resourceDao)
setResourceDaovoid
setResourceTypeMatch(java.lang.String resourceType)
setResourceTypeMatchvoid
setStartTime(long start)
setStartTimevoid
walk()
walk-
Methods inherited from class org.opennms.netmgt.statsd.AbstractReportInstance
getDescription, getJobCompletedDate, getJobStartedDate, getName, getReportDefinition, getRetainInterval, setJobCompletedDate, setJobStartedDate, setReportDefinition, toString
-
-
-
-
Constructor Detail
-
BaseReportInstance
protected BaseReportInstance(AttributeStatisticVisitorWithResults visitor)
Constructor for UnfilteredReportInstance.
- Parameters:
visitor
- aAttributeStatisticVisitorWithResults
object.
-
-
Method Detail
-
getWalker
public abstract ResourceWalker getWalker()
-
setResourceDao
public void setResourceDao(ResourceDao resourceDao)
setResourceDao
- Parameters:
resourceDao
- aResourceDao
object.
-
setFetchStrategy
public void setFetchStrategy(MeasurementFetchStrategy fetchStrategy)
-
walk
public void walk()
walk
- Specified by:
walk
in interfaceReportInstance
-
getResults
public java.util.SortedSet<AttributeStatistic> getResults()
getResults
- Specified by:
getResults
in interfaceReportInstance
- Returns:
- a
SortedSet
object.
-
getResourceTypeMatch
public java.lang.String getResourceTypeMatch()
getResourceTypeMatch
- Specified by:
getResourceTypeMatch
in interfaceReportInstance
- Returns:
- a
String
object.
-
setResourceTypeMatch
public void setResourceTypeMatch(java.lang.String resourceType)
setResourceTypeMatch
- Specified by:
setResourceTypeMatch
in interfaceReportInstance
- Parameters:
resourceType
- aString
object.
-
getAttributeMatch
public java.lang.String getAttributeMatch()
getAttributeMatch
- Specified by:
getAttributeMatch
in interfaceReportInstance
- Returns:
- a
String
object.
-
setAttributeMatch
public void setAttributeMatch(java.lang.String attr)
setAttributeMatch
- Specified by:
setAttributeMatch
in interfaceReportInstance
- Parameters:
attr
- aString
object.
-
getStartTime
public long getStartTime()
getStartTime
- Specified by:
getStartTime
in interfaceReportInstance
- Returns:
- a long.
-
setStartTime
public void setStartTime(long start)
setStartTime
- Specified by:
setStartTime
in interfaceReportInstance
- Parameters:
start
- a long.
-
getEndTime
public long getEndTime()
getEndTime
- Specified by:
getEndTime
in interfaceReportInstance
- Returns:
- a long.
-
setEndTime
public void setEndTime(long end)
setEndTime
- Specified by:
setEndTime
in interfaceReportInstance
- Parameters:
end
- a long.
-
getConsolidationFunction
public java.lang.String getConsolidationFunction()
getConsolidationFunction
- Specified by:
getConsolidationFunction
in interfaceReportInstance
- Returns:
- a
String
object.
-
setConsolidationFunction
public void setConsolidationFunction(java.lang.String cf)
setConsolidationFunction
- Specified by:
setConsolidationFunction
in interfaceReportInstance
- Parameters:
cf
- aString
object.
-
getCount
public int getCount()
getCount
- Specified by:
getCount
in interfaceReportInstance
- Returns:
- a int.
-
setCount
public void setCount(int count)
setCount
- Specified by:
setCount
in interfaceReportInstance
- Parameters:
count
- a int.
-
afterPropertiesSet
public void afterPropertiesSet()
afterPropertiesSet
- Specified by:
afterPropertiesSet
in interfaceorg.springframework.beans.factory.InitializingBean
- Overrides:
afterPropertiesSet
in classAbstractReportInstance
-
setResourceAttributeKey
public void setResourceAttributeKey(java.lang.String resourceAttributeKey)
setResourceAttributeKey
- Specified by:
setResourceAttributeKey
in interfaceReportInstance
- Parameters:
resourceAttributeKey
- aString
object.
-
setResourceAttributeValueMatch
public void setResourceAttributeValueMatch(java.lang.String resourceAttributeValueMatch)
setResourceAttributeValueMatch
- Specified by:
setResourceAttributeValueMatch
in interfaceReportInstance
- Parameters:
resourceAttributeValueMatch
- aString
object.
-
getResourceAttributeKey
public java.lang.String getResourceAttributeKey()
getResourceAttributeKey
- Specified by:
getResourceAttributeKey
in interfaceReportInstance
- Returns:
- a
String
object.
-
getResourceAttributeValueMatch
public java.lang.String getResourceAttributeValueMatch()
getResourceAttributeValueMatch
- Specified by:
getResourceAttributeValueMatch
in interfaceReportInstance
- Returns:
- a
String
object.
-
-