ch.ethz.iks.slp
Class ServiceLocationManager

java.lang.Object
  extended by ch.ethz.iks.slp.impl.SLPCore
      extended by ch.ethz.iks.slp.ServiceLocationManager

public final class ServiceLocationManager
extends SLPCore

The central manager for SLP interaction. Application can get a Locator for UA functionality and a Advertiser for SA functionality.

Since:
0.1
Author:
Jan S. Rellermeyer, IKS, ETH Zurich

Field Summary
 
Fields inherited from class ch.ethz.iks.slp.impl.SLPCore
advertiser, locator, platform
 
Method Summary
static Advertiser getAdvertiser(Locale locale)
          get a Advertiser to have access to the SA functionalities.
static Locator getLocator(Locale locale)
          get a Locator to have access to the UA functionalities.
static int getRefreshInterval()
          get the refresh interval, that is the maximum over all DA's minimum update intervals.
static void init()
           
 
Methods inherited from class ch.ethz.iks.slp.impl.SLPCore
findScopes
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

init

public static void init()

getRefreshInterval

public static int getRefreshInterval()
                              throws ServiceLocationException
get the refresh interval, that is the maximum over all DA's minimum update intervals.

Returns:
the refresh interval.
Throws:
ServiceLocationException - in case of an exception in the underlying framework.

getLocator

public static Locator getLocator(Locale locale)
                          throws ServiceLocationException
get a Locator to have access to the UA functionalities.

Parameters:
locale - the Locale for all requests.
Returns:
a Locator instance.
Throws:
ServiceLocationException - in case of an exception in the underlying framework.

getAdvertiser

public static Advertiser getAdvertiser(Locale locale)
                                throws ServiceLocationException
get a Advertiser to have access to the SA functionalities.

Parameters:
locale - the Locale for all messages.
Returns:
an Advertiser instance.
Throws:
ServiceLocationException - in case of an exception in the underlying framework.