vgrid.test
Class VeryActiveTestTask

java.lang.Object
  extended by vgrid.test.VeryActiveTestTask
All Implemented Interfaces:
java.io.Serializable, Task

public class VeryActiveTestTask
extends java.lang.Object
implements Task

A testtask that uses CPU power. To be used for stress tests.

See Also:
Serialized Form

Field Summary
protected  int count
           
 
Constructor Summary
VeryActiveTestTask()
           
VeryActiveTestTask(java.lang.String id, int pause, int maxSteps)
           
 
Method Summary
 int getCount()
           
 java.lang.String getExecutionHistory()
          Returns the execution history of the task.
 java.lang.String getId()
          Gets the tasks unique id.
 boolean isFinished()
          Indicates that the task is finished.
 void setExecutionHistory(java.lang.String executionHistory)
          Sets the tasks execution history.
 void setId(java.lang.String id)
          Sets the tasks id.
 void takeOneStep()
          Executes one step of the task.
 java.lang.String toStateString()
          Should produce some info about the task and its current state.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

count

protected int count
Constructor Detail

VeryActiveTestTask

public VeryActiveTestTask()

VeryActiveTestTask

public VeryActiveTestTask(java.lang.String id,
                          int pause,
                          int maxSteps)
Method Detail

getId

public java.lang.String getId()
Description copied from interface: Task
Gets the tasks unique id.

Specified by:
getId in interface Task
Returns:
The id.

isFinished

public boolean isFinished()
Description copied from interface: Task
Indicates that the task is finished. A task must finish after a finite amount of steps.

Specified by:
isFinished in interface Task
Returns:
True if the task is finished.

setId

public void setId(java.lang.String id)
Description copied from interface: Task
Sets the tasks id.

Specified by:
setId in interface Task
Parameters:
id - Unique id.

toStateString

public java.lang.String toStateString()
Description copied from interface: Task
Should produce some info about the task and its current state. Is used in the client GUI.

Specified by:
toStateString in interface Task
Returns:
A string containing a description of the state of task.

takeOneStep

public void takeOneStep()
Description copied from interface: Task
Executes one step of the task. Execution of this method should bring the task closer to termination.

Specified by:
takeOneStep in interface Task

getCount

public int getCount()

getExecutionHistory

public java.lang.String getExecutionHistory()
Description copied from interface: Task
Returns the execution history of the task.

Specified by:
getExecutionHistory in interface Task
Returns:
The execution history.

setExecutionHistory

public void setExecutionHistory(java.lang.String executionHistory)
Description copied from interface: Task
Sets the tasks execution history. Typically this method is used by the client to inform the vendor what happend during execution. If an exception occures dureing execution the vendor finds the execution stack here.

Specified by:
setExecutionHistory in interface Task
Parameters:
executionHistory - The message to be reported.


vgrid the vienna grid project