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

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

public static class DefaultDistributedStatusService.ServiceGraphComparator
extends java.lang.Object
implements java.util.Comparator<DistributedStatusHistoryModel.ServiceGraph>

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

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 java.util.Comparator<DistributedStatusHistoryModel.ServiceGraph>


Copyright © 2007. All Rights Reserved.