org.drupal.project.async_command
Class PingMe

java.lang.Object
  extended by org.drupal.project.async_command.AsyncCommand
      extended by org.drupal.project.async_command.PingMe
All Implemented Interfaces:
java.lang.Runnable

public class PingMe
extends AsyncCommand

Simple command to test Drupal database connection.


Nested Class Summary
 
Nested classes/interfaces inherited from class org.drupal.project.async_command.AsyncCommand
AsyncCommand.Status
 
Field Summary
 
Fields inherited from class org.drupal.project.async_command.AsyncCommand
commandMessage, commandStatus, drupalApp, logger, record
 
Constructor Summary
PingMe(CommandRecord record, GenericDrupalApp drupalApp)
           
 
Method Summary
protected  void afterExecute()
          Usually save results back to 'record'
protected  void beforeExecute()
          Usually initialize the command from 'record'
protected  void execute()
          Execute this command.
 
Methods inherited from class org.drupal.project.async_command.AsyncCommand
getDrupalApp, getDrupalConnection, getIdentifier, getRecord, run, setDrupalApp, setRecord
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PingMe

public PingMe(CommandRecord record,
              GenericDrupalApp drupalApp)
Method Detail

beforeExecute

protected void beforeExecute()
Description copied from class: AsyncCommand
Usually initialize the command from 'record'

Overrides:
beforeExecute in class AsyncCommand

execute

protected void execute()
Description copied from class: AsyncCommand
Execute this command. All parameters should be set before executing this command, preferably in the beforeExecute(). After execution, the results could be handled in afterExecute(). Either override this one, or the "run()" method.

Overrides:
execute in class AsyncCommand

afterExecute

protected void afterExecute()
Description copied from class: AsyncCommand
Usually save results back to 'record'

Overrides:
afterExecute in class AsyncCommand