org.jppf.gigaspaces.test
Class HelloTask
java.lang.Object
org.jppf.server.protocol.JPPFTask
org.jppf.gigaspaces.test.HelloTask
- All Implemented Interfaces:
- Serializable, Runnable
public class HelloTask
- extends JPPFTask
Simple Hello World task that displays "Hello World" on a node's console.
- Author:
- Laurent Cohen
- See Also:
- Serialized Form
|
Constructor Summary |
HelloTask()
Default constructor. |
HelloTask(long duration)
Initialize this task with the specified duration. |
|
Method Summary |
void |
run()
Execute the task. |
| Methods inherited from class org.jppf.server.protocol.JPPFTask |
addJPPFTaskListener, fireNotification, getDataProvider, getException, getId, getListeners, getPosition, getResult, getTaskObject, getTimeout, getTimeoutDate, getTimeoutDateFormat, getTimeoutFormat, getTimeoutSchedule, onCancel, onRestart, onTimeout, removeJPPFTaskListener, setDataProvider, setException, setId, setPosition, setResult, setTimeout, setTimeoutDate, setTimeoutDate, setTimeoutSchedule |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
HelloTask
public HelloTask()
- Default constructor.
HelloTask
public HelloTask(long duration)
- Initialize this task with the specified duration.
- Parameters:
duration - duration of this task in milliseconds.
run
public void run()
- Execute the task.
- See Also:
Runnable.run()
Copyright © 2005-2010 JPPF Team.