public class DefaultTimeoutHandler extends NodeImpl implements ExecutionPhaseListener, TimeoutHandler
Modifier and Type | Field and Description |
---|---|
protected static LongProperty |
durationProperty |
static String |
PROPERTY_DURATION |
static String |
PROPERTY_REACTION_TIME |
protected static LongProperty |
reactionTimeProperty |
protected Timer |
timer
Timer used for the timeout.
|
Constructor and Description |
---|
DefaultTimeoutHandler() |
Modifier and Type | Method and Description |
---|---|
void |
cancelTimeout()
Cancels the timeout.
|
long |
getDefaultTimerDuration() |
long |
getReactionTime() |
protected Timer |
getTimer() |
protected long |
getTimerStartTimestamp() |
boolean |
isLogTrialProperties() |
void |
processExecutionPhase(ExecutionContext context)
Called by the Executor to signal an element execution context
|
void |
setDefaultTimerDuration(long defaultTimerDuration) |
void |
setLogTrialProperties(boolean logTrialProperties)
Set whether timeout information should be logged in the trial.
|
void |
setReactionTime(long reactionTime) |
void |
startTimeout(ExecutionContext context)
Starts the timer.
|
protected void |
timerElapsed() |
assignParent, assignParent, assignParents, getId, getLocalId, getParent, setBeanName, setId, setLocalId, setParent
clearProperties, getKeys, getProperty, removeProperty, setProperty
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
clearProperties, getId, getKeys, getProperty, removeProperty, setProperty
public static final String PROPERTY_DURATION
public static final String PROPERTY_REACTION_TIME
protected Timer timer
protected static LongProperty durationProperty
protected static LongProperty reactionTimeProperty
public void startTimeout(ExecutionContext context)
startTimeout
in interface TimeoutHandler
public void cancelTimeout()
cancelTimeout
in interface TimeoutHandler
protected void timerElapsed()
protected long getTimerStartTimestamp()
public void processExecutionPhase(ExecutionContext context)
ExecutionPhaseListener
processExecutionPhase
in interface ExecutionPhaseListener
protected Timer getTimer()
public boolean isLogTrialProperties()
public void setLogTrialProperties(boolean logTrialProperties)
public long getDefaultTimerDuration()
getDefaultTimerDuration
in interface TimeoutHandler
public void setDefaultTimerDuration(long defaultTimerDuration)
setDefaultTimerDuration
in interface TimeoutHandler
public long getReactionTime()
public void setReactionTime(long reactionTime)
Copyright © 2013. All Rights Reserved.