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()
afterPropertiesSetString
getAttributeMatch()
getAttributeMatchString
getConsolidationFunction()
getConsolidationFunctionint
getCount()
getCountlong
getEndTime()
getEndTimeString
getResourceAttributeKey()
getResourceAttributeKeyString
getResourceAttributeValueMatch()
getResourceAttributeValueMatchString
getResourceTypeMatch()
getResourceTypeMatchSortedSet<AttributeStatistic>
getResults()
getResultslong
getStartTime()
getStartTimeabstract ResourceWalker
getWalker()
void
setAttributeMatch(String attr)
setAttributeMatchvoid
setConsolidationFunction(String cf)
setConsolidationFunctionvoid
setCount(int count)
setCountvoid
setEndTime(long end)
setEndTimevoid
setFetchStrategy(MeasurementFetchStrategy fetchStrategy)
void
setResourceAttributeKey(String resourceAttributeKey)
setResourceAttributeKeyvoid
setResourceAttributeValueMatch(String resourceAttributeValueMatch)
setResourceAttributeValueMatchvoid
setResourceDao(ResourceDao resourceDao)
setResourceDaovoid
setResourceTypeMatch(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 SortedSet<AttributeStatistic> getResults()
getResults
- Specified by:
getResults
in interfaceReportInstance
- Returns:
- a
SortedSet
object.
-
getResourceTypeMatch
public String getResourceTypeMatch()
getResourceTypeMatch
- Specified by:
getResourceTypeMatch
in interfaceReportInstance
- Returns:
- a
String
object.
-
setResourceTypeMatch
public void setResourceTypeMatch(String resourceType)
setResourceTypeMatch
- Specified by:
setResourceTypeMatch
in interfaceReportInstance
- Parameters:
resourceType
- aString
object.
-
getAttributeMatch
public String getAttributeMatch()
getAttributeMatch
- Specified by:
getAttributeMatch
in interfaceReportInstance
- Returns:
- a
String
object.
-
setAttributeMatch
public void setAttributeMatch(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 String getConsolidationFunction()
getConsolidationFunction
- Specified by:
getConsolidationFunction
in interfaceReportInstance
- Returns:
- a
String
object.
-
setConsolidationFunction
public void setConsolidationFunction(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(String resourceAttributeKey)
setResourceAttributeKey
- Specified by:
setResourceAttributeKey
in interfaceReportInstance
- Parameters:
resourceAttributeKey
- aString
object.
-
setResourceAttributeValueMatch
public void setResourceAttributeValueMatch(String resourceAttributeValueMatch)
setResourceAttributeValueMatch
- Specified by:
setResourceAttributeValueMatch
in interfaceReportInstance
- Parameters:
resourceAttributeValueMatch
- aString
object.
-
getResourceAttributeKey
public String getResourceAttributeKey()
getResourceAttributeKey
- Specified by:
getResourceAttributeKey
in interfaceReportInstance
- Returns:
- a
String
object.
-
getResourceAttributeValueMatch
public String getResourceAttributeValueMatch()
getResourceAttributeValueMatch
- Specified by:
getResourceAttributeValueMatch
in interfaceReportInstance
- Returns:
- a
String
object.
-
-