org.livetribe.slp.spi.ua
Class StandardUserAgentManager
java.lang.Object
org.livetribe.slp.spi.StandardAgentManager
org.livetribe.slp.spi.ua.StandardUserAgentManager
- All Implemented Interfaces:
- AgentManager, UserAgentManager
public class StandardUserAgentManager
- extends StandardAgentManager
- implements UserAgentManager
TODO: rework javadocs: they refer to StandardUserAgent, more than this class.
An SLP User Agent (UA) can discover SLP ServiceAgents (SAs) and SLP DirectoryAgents (DAs).
It caches the DAs discovered, and listens for multicast DAAdverts coming from new DAs
or from known DAs that changed (for example, rebooted).
UAs also listens for SAAdverts emitted by SAs.
UAs have scopes assigned so that they can discover services belonging to those scopes.
- Version:
- $Rev: 200 $ $Date: 2006-08-09 14:17:10 +0200 (Wed, 09 Aug 2006) $
Method Summary |
void |
addNotificationListener(MessageListener listener)
|
protected void |
configureNotificationConnector(UDPConnector connector)
|
protected UDPConnector |
createNotificationConnector()
|
protected void |
doStart()
|
protected void |
doStop()
|
UDPConnector |
getNotificationConnector()
|
DAAdvert[] |
multicastDASrvRqst(Scopes scopes,
String filter,
String language,
long timeframe)
|
SAAdvert[] |
multicastSASrvRqst(Scopes scopes,
String filter,
String language,
int timeframe)
|
SrvRply[] |
multicastSrvRqst(ServiceType serviceType,
Scopes scopes,
String filter,
String language,
int timeframe)
|
void |
removeNotificationListener(MessageListener listener)
|
void |
setNotificationConnector(UDPConnector notificationConnector)
|
SrvRply |
tcpSrvRqst(InetAddress address,
ServiceType serviceType,
Scopes scopes,
String filter,
String language)
|
Methods inherited from class org.livetribe.slp.spi.StandardAgentManager |
addMessageListener, closeNoExceptions, configureTCPConnector, configureUDPConnector, convergentDASrvRqst, convergentMulticastSend, convergentSASrvRqst, convergentSrvRqst, createTCPConnector, createUDPConnector, generateXID, getMaxTransmissionUnit, getMulticastAddress, getMulticastMaxWait, getMulticastTimeouts, getNotificationPort, getPort, getTCPConnector, getUDPConnector, isRunning, removeMessageListener, serializeMessage, setMaxTransmissionUnit, setMulticastAddress, setMulticastMaxWait, setMulticastTimeouts, setNotificationPort, setPort, setTCPConnector, setUDPConnector, start, stop |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
StandardUserAgentManager
public StandardUserAgentManager()
getNotificationConnector
public UDPConnector getNotificationConnector()
setNotificationConnector
public void setNotificationConnector(UDPConnector notificationConnector)
doStart
protected void doStart()
throws IOException
- Overrides:
doStart
in class StandardAgentManager
- Throws:
IOException
doStop
protected void doStop()
throws IOException
- Overrides:
doStop
in class StandardAgentManager
- Throws:
IOException
createNotificationConnector
protected UDPConnector createNotificationConnector()
throws IOException
- Throws:
IOException
configureNotificationConnector
protected void configureNotificationConnector(UDPConnector connector)
addNotificationListener
public void addNotificationListener(MessageListener listener)
- Specified by:
addNotificationListener
in interface UserAgentManager
removeNotificationListener
public void removeNotificationListener(MessageListener listener)
- Specified by:
removeNotificationListener
in interface UserAgentManager
multicastDASrvRqst
public DAAdvert[] multicastDASrvRqst(Scopes scopes,
String filter,
String language,
long timeframe)
throws IOException
- Specified by:
multicastDASrvRqst
in interface UserAgentManager
- Throws:
IOException
multicastSASrvRqst
public SAAdvert[] multicastSASrvRqst(Scopes scopes,
String filter,
String language,
int timeframe)
throws IOException
- Specified by:
multicastSASrvRqst
in interface UserAgentManager
- Throws:
IOException
multicastSrvRqst
public SrvRply[] multicastSrvRqst(ServiceType serviceType,
Scopes scopes,
String filter,
String language,
int timeframe)
throws IOException
- Specified by:
multicastSrvRqst
in interface UserAgentManager
- Throws:
IOException
tcpSrvRqst
public SrvRply tcpSrvRqst(InetAddress address,
ServiceType serviceType,
Scopes scopes,
String filter,
String language)
throws IOException
- Specified by:
tcpSrvRqst
in interface UserAgentManager
- Throws:
IOException
Copyright © 2006-2012 LiveTribe. All Rights Reserved.