org.opengts.db
Class CommandPingDispatcher

java.lang.Object
  extended by org.opengts.db.CommandPingDispatcher
All Implemented Interfaces:
PingDispatcher

public class CommandPingDispatcher
extends java.lang.Object
implements PingDispatcher


Constructor Summary
CommandPingDispatcher()
           
 
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 command notification to the specified Device
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CommandPingDispatcher

public CommandPingDispatcher()
Method Detail

isPingSupported

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

Specified by:
isPingSupported in interface PingDispatcher
Parameters:
device - The device
Returns:
True if 'ping' is supported for the specified device

sendDeviceCommand

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

Specified by:
sendDeviceCommand in interface PingDispatcher
Parameters:
device - The device to which the command is to be sent.
cmdType - The command type
cmdName - The command name
cmdArgs - The arguments to the command sent to the device.
Returns:
True if the command was sent successfully.