org.opengts.db
Interface PingDispatcher

All Known Implementing Classes:
CommandPingDispatcher

public interface PingDispatcher


Method Summary
 boolean isPingSupported(Device device)
          Returns true if 'ping' is supported for the specified device
 boolean sendDeviceCommand(Device device, java.lang.String cmdType, java.lang.String cmdName, java.lang.String[] cmdArgs)
          Sends a 'ping' notification to the specified Device
 

Method Detail

isPingSupported

boolean isPingSupported(Device device)
Returns true if 'ping' is supported for the specified device

Parameters:
device - The device
Returns:
True if 'ping' is supported for the specified device

sendDeviceCommand

boolean sendDeviceCommand(Device device,
                          java.lang.String cmdType,
                          java.lang.String cmdName,
                          java.lang.String[] cmdArgs)
Sends a 'ping' notification to the specified Device

Parameters:
device - The device to which the command is to be sent.
cmdType - The command type (DCServerConfig.COMMAND_*)
cmdName - The command name
cmdArgs - The argument to the "ping" command sent to the device.
Returns:
True if the 'ping' was sent successfully.