org.opennms.web.svclayer.support
Class DefaultDistributedStatusService.ServiceGraphComparator

java.lang.Object
  extended by org.opennms.web.svclayer.support.DefaultDistributedStatusService.ServiceGraphComparator
All Implemented Interfaces:
Serializable, Comparator<DistributedStatusHistoryModel.ServiceGraph>
Enclosing class:
DefaultDistributedStatusService

public static class DefaultDistributedStatusService.ServiceGraphComparator
extends Object
implements Comparator<DistributedStatusHistoryModel.ServiceGraph>, Serializable

Comparator for ServiceGraph objects. Orders objects with no errors and then those with errors and orders within each of these groups by the service ordering (see MonitoredServiceComparator).

Author:
DJ Gregor
See Also:
Serialized Form

Constructor Summary
DefaultDistributedStatusService.ServiceGraphComparator()
           
 
Method Summary
 int compare(DistributedStatusHistoryModel.ServiceGraph o1, DistributedStatusHistoryModel.ServiceGraph o2)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface java.util.Comparator
equals
 

Constructor Detail

DefaultDistributedStatusService.ServiceGraphComparator

public DefaultDistributedStatusService.ServiceGraphComparator()
Method Detail

compare

public int compare(DistributedStatusHistoryModel.ServiceGraph o1,
                   DistributedStatusHistoryModel.ServiceGraph o2)
Specified by:
compare in interface Comparator<DistributedStatusHistoryModel.ServiceGraph>


Copyright © 2009. All Rights Reserved.