|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.universAAL.middleware.connectors.discovery.slp.SLPDiscoveryConnector
public class SLPDiscoveryConnector
Implementation of the SLP Discovery Connector
Constructor Summary | |
---|---|
SLPDiscoveryConnector(ModuleContext context)
|
Method Summary | |
---|---|
void |
addAALSpaceListener(ServiceListener listener)
|
void |
announceAALSpace(AALSpaceCard card)
This method implements how to announce an AALSpace by adopting the SLP protocol |
void |
deregisterAALSpace(AALSpaceCard spaceCard)
De-register an AALSpace |
void |
dispose()
|
List<AALSpaceCard> |
findAALSpace()
Discovers all the AALSpace without a filter |
List<AALSpaceCard> |
findAALSpace(Dictionary<String,String> filters)
This method finds an AALSpace 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 |
removeAALSpaceListener(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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public SLPDiscoveryConnector(ModuleContext context)
Method Detail |
---|
public boolean init()
init
in interface Connector
public void dispose()
dispose
in interface Connector
public void announceAALSpace(AALSpaceCard card) throws DiscoveryConnectorException
announceAALSpace
in interface DiscoveryConnector
DiscoveryConnectorException
public void deregisterAALSpace(AALSpaceCard spaceCard) throws DiscoveryConnectorException
DiscoveryConnector
deregisterAALSpace
in interface DiscoveryConnector
DiscoveryConnectorException
public List<AALSpaceCard> findAALSpace() throws DiscoveryConnectorException
DiscoveryConnector
findAALSpace
in interface DiscoveryConnector
DiscoveryConnectorException
public List<AALSpaceCard> findAALSpace(Dictionary<String,String> filters) throws DiscoveryConnectorException
findAALSpace
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 getName()
getName
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()
toString
in class Object
public void addAALSpaceListener(ServiceListener listener)
addAALSpaceListener
in interface DiscoveryConnector
public void removeAALSpaceListener(ServiceListener listener)
removeAALSpaceListener
in interface DiscoveryConnector
public void sharedObjectAdded(Object sharedObj, Object removeHook)
sharedObjectAdded
in interface SharedObjectListener
public void sharedObjectRemoved(Object removeHook)
sharedObjectRemoved
in interface SharedObjectListener
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |