2009-01-09 1.2.0

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

Method Summary
 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.
 
Methods inherited from interface org.eclipse.soda.dk.command.service.CommandListener
commandExecuted
 
Methods inherited from interface org.eclipse.soda.dk.transport.service.ErrorListener
errorOccurred
 

Method Detail

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:

Parameters:
source - The source (CommandService) parameter.
timestamp - The time stamp (Object) parameter.
channel - The channel (ChannelService) parameter.
data - The data (Object) parameter.

2009-01-09 1.2.0

Copyright (c) 2009 IBM. See license in Legal section.