org.eclipse.soda.dk.command.service
Interface MultiplexCommandListener
- All Superinterfaces:
- CommandListener, ErrorListener
- All Known Implementing Classes:
- Adapter, AdapterTest, CommandListeners, Commands, ConcreteMeasurement, DeviceAdapter, DeviceProfile, DeviceTest, NotificationController, Profile, TestAdapter, Wire
public interface MultiplexCommandListener
- extends CommandListener
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.2
- Version:
- 1.2.0
- See Also:
CommandService,
ControlService,
ErrorListener
commandExecuted
void commandExecuted(CommandService source,
java.lang.Object timestamp,
ChannelService channel,
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 - The source (CommandService) parameter.timestamp - The time stamp (Object) parameter.channel - The channel (ChannelService) parameter.data - The data (Object) parameter.
Copyright (c) 2009 IBM. See license in Legal section.