ch.ethz.iks.slp
Class ServiceLocationManager
java.lang.Object
ch.ethz.iks.slp.impl.SLPCore
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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.