org.eclipse.soda.dk.command.service
Interface CommandListener
- All Superinterfaces:
- ErrorListener
- All Known Subinterfaces:
- MultiplexCommandListener
- All Known Implementing Classes:
- Adapter, AdapterTest, AgentTest, CommandBridge, CommandBridge, CommandBridge, CommandListeners, Commands, ConcreteMeasurement, DeviceAdapter, DeviceProfile, DeviceTest, DeviceTestcase, NotificationController, Profile, TestAdapter, Wire
public interface CommandListener
- extends ErrorListener
The CommandListener interface defines the methods to be called when event notification occurs.
A CommandListener is implemented by any class which wishes to be notified whenever a
particular CommandService is executed. This can be useful for a GUI, which may wish to
update, when a particular CommandService, such as the power on/off command is executed.
- Since:
- 1.0
- Version:
- 1.2.0
- See Also:
CommandService,
ControlService,
ErrorListener
|
Method Summary |
void |
commandExecuted(CommandService source,
java.lang.Object timestamp,
java.lang.Object data)
This method is fired to all Listeners each time the command is executed. |
commandExecuted
void commandExecuted(CommandService source,
java.lang.Object timestamp,
java.lang.Object data)
- This method is fired to all Listeners each time the command is executed.
Since other notifications are blocked until this method returns,
implementors of this method should:
- Not cause the device or transport to be blocked (e.g. calling read on a measurement).
- Handle this call quickly and return.
- Parameters:
source - CommandService which was executed.timestamp - The time at which the command execution was detected.data - Any data which was contained within the command.
Copyright (c) 2009 IBM. See license in Legal section.