org.openmrs.scheduler.tasks
Class HelloWorldTask

java.lang.Object
  extended by org.openmrs.scheduler.tasks.AbstractTask
      extended by org.openmrs.scheduler.tasks.HelloWorldTask
All Implemented Interfaces:
Task

public class HelloWorldTask
extends AbstractTask

Implementation of a task that writes "Hello World" to a log file.

Version:
1.0

Field Summary
 
Fields inherited from class org.openmrs.scheduler.tasks.AbstractTask
isExecuting, taskDefinition
 
Constructor Summary
HelloWorldTask()
          Public constructor.
 
Method Summary
 void execute()
          Illustrates stateless functionality as simply as possible.
 
Methods inherited from class org.openmrs.scheduler.tasks.AbstractTask
authenticate, getTaskDefinition, initialize, isExecuting, shutdown, startExecuting, stopExecuting
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HelloWorldTask

public HelloWorldTask()
Public constructor.

Method Detail

execute

public void execute()
Illustrates stateless functionality as simply as possible. Not very useful in our system, except maybe as a polling thread that checks internet connectivity by opening a connection to an external URL. But even that isn't very useful unless it tells someone or something about the connectivity (i.e. calls another service method)

Specified by:
execute in interface Task
Specified by:
execute in class AbstractTask
See Also:
Task.execute()

OpenMRS-1.7.x

Generated Apr 27 2012 10:06 PM. NOTE - these libraries are in active development and subject to change