public static final class TaskMonitorTest.TestTaskListener extends Object implements org.jdtaus.core.monitor.TaskListener
TaskListener
implementation monitoring is tested with.Constructor and Description |
---|
TaskMonitorTest.TestTaskListener(Task task)
Creates a new
TestTaskListener instance taking the tested
task. |
Modifier and Type | Method and Description |
---|---|
boolean |
getChangedState()
Flag indicating that corresponding events caused by the task
changing its state were fired.
|
long |
getEndTime()
Sets the timestamp the tested task ended.
|
long |
getStartTime()
Gets the timestamp the tested task started.
|
void |
onTaskEvent(org.jdtaus.core.monitor.TaskEvent taskEvent) |
void |
reset()
Resets the state of the listener.
|
public TaskMonitorTest.TestTaskListener(Task task)
TestTaskListener
instance taking the tested
task.task
- the tested task.public long getStartTime()
-1
if no
corresponding event got fired.public long getEndTime()
-1
if no
corresponding event got fired.public boolean getChangedState()
true
if corresponding event got fired indicating
the task having changed state; false
if no corresponding
events got fired.public void reset()
public void onTaskEvent(org.jdtaus.core.monitor.TaskEvent taskEvent)
onTaskEvent
in interface org.jdtaus.core.monitor.TaskListener
Copyright © 2005-2012 jDTAUS. All Rights Reserved.