things.thinger.service.command.impl
Class Command_PINGPONG

java.lang.Object
  extended by things.thinger.service.command.Command
      extended by things.thinger.service.command.impl.Command_PINGPONG

public class Command_PINGPONG
extends Command

An implemented command. This is a ping-pong used for testing. It requires a ping parameter and will respond with a pong and some nonsense.

Version:
1.0

Version History

EPG - Initial - 5 JAN 07
 
Author:
Erich P. Gatejen

Nested Class Summary
 
Nested classes/interfaces inherited from class things.thinger.service.command.Command
Command.CheckType, Command.DataType, Command.Occurrence, Command.Requirement
 
Field Summary
static java.lang.String NAME
           
static java.lang.String PARAMETER_PING
           
static java.lang.String RESPONSE_PONG
           
static java.lang.String RESPONSE_SECOND_PONG
           
 
Constructor Summary
Command_PINGPONG()
           
 
Method Summary
 void accept()
          This will be called when the command is called.
 void declare()
          Command declaration.
 java.lang.String named()
          Return the official name of this command.
 
Methods inherited from class things.thinger.service.command.Command
checkDataForm, checkRequiredData, DECLARE_NAME, DECLARE_PARAMETER, DECLARE_RESPONSE, DONE, FLUSH, GET_PARAMETER, GET_SYSTEM_INTERFACE, getDefinition, getInstanceData, instantiateCommand, instantiateResponse, RESPOND, RESPOND, SET_PARAMETER, validateReceiptList
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NAME

public static final java.lang.String NAME
See Also:
Constant Field Values

PARAMETER_PING

public static final java.lang.String PARAMETER_PING
See Also:
Constant Field Values

RESPONSE_PONG

public static final java.lang.String RESPONSE_PONG
See Also:
Constant Field Values

RESPONSE_SECOND_PONG

public static final java.lang.String RESPONSE_SECOND_PONG
See Also:
Constant Field Values
Constructor Detail

Command_PINGPONG

public Command_PINGPONG()
Method Detail

declare

public void declare()
             throws SystemException
Command declaration. Do not call this directly!

Specified by:
declare in class Command
Throws:
SystemException

named

public java.lang.String named()
Return the official name of this command. If there is another command named the same of different class signature, it will cause a significant system fault.

Specified by:
named in class Command
Returns:
The official name of the command.

accept

public void accept()
            throws SystemException
This will be called when the command is called.

Specified by:
accept in class Command
Throws:
SystemException


Things.