com.sas.services.deployment
Class ServiceComparator

java.lang.Object
  |
  +--com.sas.services.deployment.ServiceComparator
All Implemented Interfaces:

public class ServiceComparator
extends Object
implements java.util.Comparator

Comparator for DeployableService representations of a foundation service.

Since:
1.0

Constructor Summary
ServiceComparator()
           
 
Method Summary
 int compare(Object service1, Object service2)
          Compares two objects that are of type deployable service in an attempt to ascertain which one should be deployed first based upon their service dependencies.
 
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

ServiceComparator

public ServiceComparator()
Method Detail

compare

public final int compare(Object service1,
                         Object service2)
Compares two objects that are of type deployable service in an attempt to ascertain which one should be deployed first based upon their service dependencies.
Specified by:
compare in interface Comparator
Parameters:
service1 - Object of type DeployableService.
service2 - Object of type DeployableService.
Returns:
0 if it doesn't matter which service should be deployed first, -1 if service #1 should be deployed prior to service #2 or 1 if service #2 should be deployed prior to service #1.




Copyright © 2006 SAS Institute Inc. All Rights Reserved.
javadoc generated Fri, 10 Feb 2006 17:28:53