ch.ethz.iks.slp.impl
Class SLPDaemonImpl

Package class diagram package SLPDaemonImpl
java.lang.Object
  extended by ch.ethz.iks.slp.impl.SLPDaemonImpl
All Implemented Interfaces:
SLPDaemon

public final class SLPDaemonImpl
extends Object
implements SLPDaemon

the jSLP daemon class. This class is only required, if the peer is configured as a SA and no other SLP daemon is running on the machine. UA-only configurations or distributions that are intended to run on a machine with OpenSLP slpd can be packaged without this class.

Since:
0.6
Author:
Jan S. Rellermeyer, ETH Zurich

Constructor Summary
SLPDaemonImpl()
          create a new SLPDaemon instance.
 
Method Summary
 ch.ethz.iks.slp.impl.ReplyMessage handleMessage(SLPMessage msg)
          all incoming messages are handled here.
 void newDaDiscovered(ch.ethz.iks.slp.impl.DAAdvertisement advert)
          get informed about a new discovered DA.
 void stopDaemon()
          Michele issue 65
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SLPDaemonImpl

public SLPDaemonImpl()
              throws Exception
create a new SLPDaemon instance.

Parameters:
tcpSocket - the server socket.
Throws:
Exception - if something goes wrong.
Method Detail

handleMessage

public ch.ethz.iks.slp.impl.ReplyMessage handleMessage(SLPMessage msg)
                                                throws ServiceLocationException
all incoming messages are handled here.

Specified by:
handleMessage in interface SLPDaemon
Parameters:
msg - the message to be processed.
Returns:
the reply if the handled message came in via TCP. Otherwise null will be returned.
Throws:
ServiceLocationException - for various reasons like authentication failures etc.

newDaDiscovered

public void newDaDiscovered(ch.ethz.iks.slp.impl.DAAdvertisement advert)
get informed about a new discovered DA. Registers all services in the scopes of the new DA.

Specified by:
newDaDiscovered in interface SLPDaemon
Parameters:
advert - the DA advertisement.

stopDaemon

public void stopDaemon()
Michele issue 65

Specified by:
stopDaemon in interface SLPDaemon


Copyright © 2014 universAAL Consortium. All Rights Reserved.