
public class SLPDiscoveryConnector extends Object implements DiscoveryConnector, SharedObjectListener
| Constructor and Description |
|---|
SLPDiscoveryConnector(ModuleContext context) |
| Modifier and Type | Method and Description |
|---|---|
void |
addSpaceListener(ServiceListener listener) |
void |
announceSpace(SpaceCard card)
This method implements how to announce a Space by adopting the SLP
protocol
|
void |
deregisterSpace(SpaceCard spaceCard)
De-register a Space
|
void |
dispose() |
List<SpaceCard> |
findSpace()
Discovers all the Space without a filter
|
List<SpaceCard> |
findSpace(Dictionary<String,String> filters)
This method finds an Space by using the specified filter in the SLP
network
|
String |
getDescription() |
String |
getName() |
String |
getProvider() |
String |
getSDPPRotocol() |
String |
getVersion() |
boolean |
init() |
void |
loadConfigurations(Dictionary properties)
This method allows the connector to obtain all the required
configurations
|
void |
removeSpaceListener(ServiceListener listener) |
void |
sharedObjectAdded(Object sharedObj,
Object removeHook) |
void |
sharedObjectRemoved(Object removeHook) |
String |
toString()
This method prints the Connector properties: name, version, description
and provider
|
protected static Dictionary |
unmarshalServiceAttributes(ServiceLocationEnumeration attributes)
This method converts the list of attributes as a Dictionary of
properties.
|
public SLPDiscoveryConnector(ModuleContext context)
public void announceSpace(SpaceCard card) throws DiscoveryConnectorException
announceSpace in interface DiscoveryConnectorDiscoveryConnectorExceptionpublic void deregisterSpace(SpaceCard spaceCard) throws DiscoveryConnectorException
DiscoveryConnectorderegisterSpace in interface DiscoveryConnectorDiscoveryConnectorExceptionpublic List<SpaceCard> findSpace() throws DiscoveryConnectorException
DiscoveryConnectorfindSpace in interface DiscoveryConnectorDiscoveryConnectorExceptionpublic List<SpaceCard> findSpace(Dictionary<String,String> filters) throws DiscoveryConnectorException
findSpace in interface DiscoveryConnectorDiscoveryConnectorExceptionprotected static Dictionary unmarshalServiceAttributes(ServiceLocationEnumeration attributes) throws DiscoveryConnectorException
attributes - DiscoveryConnectorExceptionpublic void loadConfigurations(Dictionary properties)
ConnectorloadConfigurations in interface Connectorpublic String getDescription()
getDescription in interface Connectorpublic String getProvider()
getProvider in interface Connectorpublic String getVersion()
getVersion in interface Connectorpublic String getSDPPRotocol()
getSDPPRotocol in interface DiscoveryConnectorpublic String toString()
public void addSpaceListener(ServiceListener listener)
addSpaceListener in interface DiscoveryConnectorpublic void removeSpaceListener(ServiceListener listener)
removeSpaceListener in interface DiscoveryConnectorpublic void sharedObjectAdded(Object sharedObj, Object removeHook)
sharedObjectAdded in interface SharedObjectListenerpublic void sharedObjectRemoved(Object removeHook)
sharedObjectRemoved in interface SharedObjectListenerCopyright © 2018 universAAL Consortium. All rights reserved.