com.ibm.wsspi.kernel.service.utils

Class ServiceReferenceUtils

  1. java.lang.Object
  2. extended bycom.ibm.wsspi.kernel.service.utils.ServiceReferenceUtils

  1. public class ServiceReferenceUtils
  2. extends java.lang.Object

Constructor Summary

Constructor and Description
ServiceReferenceUtils()

Method Summary

Modifier and Type Method and Description
  1. static
  2. java.lang.Long
getId( ref)
  1. static
  2. java.lang.Integer
getRanking( ref)
  1. static
  2. void
sortByRankingOrder([] refs)
Sorts an array of service references in reverse order (highest service ranking first).
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Constructor Detail

ServiceReferenceUtils

  1. public ServiceReferenceUtils()

Method Detail

getId

  1. public static java.lang.Long getId( ref)
Parameters:
ref - the service reference
Returns:
the service id
See Also:
Constants#SERVICE_ID

getRanking

  1. public static java.lang.Integer getRanking( ref)
Parameters:
ref - the service reference
Returns:
the service ranking, or 0 if unspecified
See Also:
Constants#SERVICE_RANKING

sortByRankingOrder

  1. public static void sortByRankingOrder( [] refs)
Sorts an array of service references in reverse order (highest service ranking first). This method properly handles asynchronous updates to the service ranking.
Parameters:
refs - input and output array of service references