org.opennms.netmgt.dao.support
Class BottomNAttributeStatisticVisitor
java.lang.Object
org.opennms.netmgt.dao.support.BottomNAttributeStatisticVisitor
- All Implemented Interfaces:
- org.opennms.netmgt.model.AttributeStatisticVisitor, org.opennms.netmgt.model.AttributeStatisticVisitorWithResults, org.springframework.beans.factory.InitializingBean
- Direct Known Subclasses:
- TopNAttributeStatisticVisitor
public class BottomNAttributeStatisticVisitor
- extends Object
- implements org.opennms.netmgt.model.AttributeStatisticVisitorWithResults, org.springframework.beans.factory.InitializingBean
- Author:
- DJ Gregor
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
m_comparator
protected Comparator<Double> m_comparator
BottomNAttributeStatisticVisitor
public BottomNAttributeStatisticVisitor()
visit
public void visit(org.opennms.netmgt.model.OnmsAttribute attribute,
double statistic)
- Specified by:
visit in interface org.opennms.netmgt.model.AttributeStatisticVisitor
- See Also:
AttributeStatisticVisitor.visit(org.opennms.netmgt.model.OnmsAttribute, double)
afterPropertiesSet
public void afterPropertiesSet()
- Specified by:
afterPropertiesSet in interface org.opennms.netmgt.model.AttributeStatisticVisitorWithResults- Specified by:
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBean
- See Also:
InitializingBean.afterPropertiesSet()
getCount
public Integer getCount()
- Specified by:
getCount in interface org.opennms.netmgt.model.AttributeStatisticVisitorWithResults
setCount
public void setCount(Integer count)
- Specified by:
setCount in interface org.opennms.netmgt.model.AttributeStatisticVisitorWithResults
getResults
public SortedSet<org.opennms.netmgt.model.AttributeStatistic> getResults()
- Specified by:
getResults in interface org.opennms.netmgt.model.AttributeStatisticVisitorWithResults
- Returns:
- top attribute statistics (up to getCount() number)
getComparator
public Comparator<Double> getComparator()
setComparator
public void setComparator(Comparator<Double> comparator)
Copyright ? 2008. All Rights Reserved.