org.drupal.project.computing.common
Class PingMe

java.lang.Object
  extended by org.drupal.project.computing.DCommand
      extended by org.drupal.project.computing.common.PingMe
All Implemented Interfaces:
java.lang.Runnable, java.util.concurrent.Callable<DRecord>

@Identifier(value="PingMe")
public class PingMe
extends DCommand

This is a simple command that might be used in any DApplication.


Field Summary
 
Fields inherited from class org.drupal.project.computing.DCommand
application, logger, record
 
Constructor Summary
PingMe()
           
 
Method Summary
protected  void execute()
          The execution of DCommand sub-class doesn't have to care about DRecord.
 void keepResults(DRecord record)
          Saves command results back to the record.
 void mapArgs(java.lang.String[] args, DRecord record)
          Defines how to map the args to the given record.
 void mapRecord(DRecord record)
          Defines how to map a record to the parameters in the command.
 
Methods inherited from class org.drupal.project.computing.DCommand
after, before, call, create, create, getApplication, getDrupalSite, getIdentifier, getRecord, markProgress, markStatus, printMessage, run
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PingMe

public PingMe()
Method Detail

mapRecord

public void mapRecord(DRecord record)
Description copied from class: DCommand
Defines how to map a record to the parameters in the command.

Specified by:
mapRecord in class DCommand

mapArgs

public void mapArgs(java.lang.String[] args,
                    DRecord record)
Description copied from class: DCommand
Defines how to map the args to the given record. DApplication will then run mapRecord() so there's no need to initialize the command here.

Specified by:
mapArgs in class DCommand

keepResults

public void keepResults(DRecord record)
Description copied from class: DCommand
Saves command results back to the record. If you don't want to save results to the record, you don't need to write code here.

Specified by:
keepResults in class DCommand

execute

protected void execute()
                throws DCommandExecutionException
Description copied from class: DCommand
The execution of DCommand sub-class doesn't have to care about DRecord.

Specified by:
execute in class DCommand
Throws:
DCommandExecutionException