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 DiscoveryConnector
DiscoveryConnectorException
public void deregisterSpace(SpaceCard spaceCard) throws DiscoveryConnectorException
DiscoveryConnector
deregisterSpace
in interface DiscoveryConnector
DiscoveryConnectorException
public List<SpaceCard> findSpace() throws DiscoveryConnectorException
DiscoveryConnector
findSpace
in interface DiscoveryConnector
DiscoveryConnectorException
public List<SpaceCard> findSpace(Dictionary<String,String> filters) throws DiscoveryConnectorException
findSpace
in interface DiscoveryConnector
DiscoveryConnectorException
protected static Dictionary unmarshalServiceAttributes(ServiceLocationEnumeration attributes) throws DiscoveryConnectorException
attributes
- DiscoveryConnectorException
public void loadConfigurations(Dictionary properties)
Connector
loadConfigurations
in interface Connector
public String getDescription()
getDescription
in interface Connector
public String getProvider()
getProvider
in interface Connector
public String getVersion()
getVersion
in interface Connector
public String getSDPPRotocol()
getSDPPRotocol
in interface DiscoveryConnector
public String toString()
public void addSpaceListener(ServiceListener listener)
addSpaceListener
in interface DiscoveryConnector
public void removeSpaceListener(ServiceListener listener)
removeSpaceListener
in interface DiscoveryConnector
public void sharedObjectAdded(Object sharedObj, Object removeHook)
sharedObjectAdded
in interface SharedObjectListener
public void sharedObjectRemoved(Object removeHook)
sharedObjectRemoved
in interface SharedObjectListener
Copyright © 2018 universAAL Consortium. All rights reserved.