org.specrunner.plugins
Interface ITimedPlugin

All Superinterfaces:
IActionType, IParameterHolder, IPlugin
All Known Implementing Classes:
AbstractPlugin, AbstractPluginDefine, AbstractPluginDual, AbstractPluginNamed, AbstractPluginObject, AbstractPluginObjectCompare, AbstractPluginObjectSelect, AbstractPluginObjectSelectNone, AbstractPluginObjectSelectUnique, AbstractPluginResource, AbstractPluginResourceReplaceable, AbstractPluginResourceReplaceableSrc, AbstractPluginScoped, AbstractPluginTable, AbstractPluginValue, PluginAssertion, PluginBean, PluginCall, PluginColumn, PluginCompareTree, PluginContains, PluginDefineCondition, PluginDefineGlobal, PluginDefineLocal, PluginDelete, PluginElse, PluginEquals, PluginExecute, PluginExecuteLatter, PluginExecuteRows, PluginFor, PluginHtml, PluginIf, PluginIfBranch, PluginImg, PluginImport, PluginInclude, PluginInsert, PluginIterable, PluginIterator, PluginLink, PluginMacro, PluginMap, PluginNop, PluginNotContains, PluginNotEquals, PluginPause, PluginReplacer, PluginReplacerMap, PluginScript, PluginSentence, PluginThen, PluginVerifyRows, PluginWhile

public interface ITimedPlugin
extends IPlugin

Stand for a plugin with time constrains. If doStart() or doEnd() is performed in time superior to timeout an error is thrown.

Author:
Thiago Santos

Method Summary
 Long getTimeout()
          The plugin timeout.
 IModel<Long> getTimeoutModel()
          Model for timeout testing.
 void setTimeout(Long timeout)
          Set the plugin timeout.
 void setTimeoutModel(IModel<Long> timeoutModel)
          Set the model.
 
Methods inherited from interface org.specrunner.plugins.IPlugin
copy, doEnd, doStart, getParent, initialize, setParent
 
Methods inherited from interface org.specrunner.parameters.IParameterHolder
getParameters, setParameters
 
Methods inherited from interface org.specrunner.plugins.IActionType
getActionType
 

Method Detail

setTimeout

void setTimeout(Long timeout)
Set the plugin timeout.

Parameters:
timeout - The plugin timeout.

getTimeout

Long getTimeout()
The plugin timeout.

Returns:
The timeout.

getTimeoutModel

IModel<Long> getTimeoutModel()
Model for timeout testing.

Returns:
The timeout model.

setTimeoutModel

void setTimeoutModel(IModel<Long> timeoutModel)
Set the model.

Parameters:
timeoutModel - A time model.


Copyright © 2014. All rights reserved.