public class TimedDiscovery extends java.lang.Object implements IDiscovery, IListener, IOperation
EXTENSION_COMPRESSION, EXTENSION_DISCOVERY, EXTENSION_ENCRYPTION, EXTENSION_ROUTING, EXTENSION_SEMANTIC, EXTENSION_SERIALIZATION, EXTENSION_TRANSCEIVER
Constructor and Description |
---|
TimedDiscovery()
Creates a new simple discovery plug-in.
|
Modifier and Type | Method and Description |
---|---|
PluginDescription |
getPluginDescription()
Returns the plug-in description of this plug-in.
|
void |
handleEvent(Event event)
Implementation of the plug-in listener that listens to the discovery listener
to detect the addition of new transceiver plug-ins and an implementation of
a transceiver listener that listens to transceivers that are enabled and
disabled.
|
void |
perform(IMonitor monitor)
Performs discovery and waits for the monitor to be canceled.
|
void |
setDiscoveryManager(IDiscoveryManager manager)
Sets the plug-in manager that is used to monitor the installation of new
plug-ins.
|
void |
start()
Called to start the plug-in.
|
void |
stop()
Called to stop the plug-in.
|
public void start()
public void stop()
public void perform(IMonitor monitor)
perform
in interface IOperation
monitor
- The monitor used to determine whether the
operation should be still performed.public void setDiscoveryManager(IDiscoveryManager manager)
setDiscoveryManager
in interface IDiscovery
manager
- The plug-in manager.public PluginDescription getPluginDescription()
getPluginDescription
in interface IPlugin
public void handleEvent(Event event)
handleEvent
in interface IListener
event
- The event that has been thrown by the plug-in manager. At the
present time, the implementation registers for addition and removal events
of plug-ins.