org.opennms.netmgt.dao.support
Class BottomNAttributeStatisticVisitor

java.lang.Object
  extended by 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 java.lang.Object
implements org.opennms.netmgt.model.AttributeStatisticVisitorWithResults, org.springframework.beans.factory.InitializingBean


Nested Class Summary
 class BottomNAttributeStatisticVisitor.AttributeStatisticComparator
           
 class BottomNAttributeStatisticVisitor.DoubleComparator
           
 
Field Summary
protected  java.util.Comparator<java.lang.Double> m_comparator
           
 
Constructor Summary
BottomNAttributeStatisticVisitor()
           
 
Method Summary
 void afterPropertiesSet()
           
 java.util.Comparator<java.lang.Double> getComparator()
           
 java.lang.Integer getCount()
           
 java.util.SortedSet<org.opennms.netmgt.model.AttributeStatistic> getResults()
           
 void setComparator(java.util.Comparator<java.lang.Double> comparator)
           
 void setCount(java.lang.Integer count)
           
 void visit(org.opennms.netmgt.model.OnmsAttribute attribute, double statistic)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

m_comparator

protected java.util.Comparator<java.lang.Double> m_comparator
Constructor Detail

BottomNAttributeStatisticVisitor

public BottomNAttributeStatisticVisitor()
Method Detail

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 java.lang.Integer getCount()
Specified by:
getCount in interface org.opennms.netmgt.model.AttributeStatisticVisitorWithResults

setCount

public void setCount(java.lang.Integer count)
Specified by:
setCount in interface org.opennms.netmgt.model.AttributeStatisticVisitorWithResults

getResults

public java.util.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 java.util.Comparator<java.lang.Double> getComparator()

setComparator

public void setComparator(java.util.Comparator<java.lang.Double> comparator)


Copyright © 2007. All Rights Reserved.