Class ScenarioHandler
- java.lang.Object
- 
- java.lang.Thread
- 
- org.opendaylight.openflowjava.protocol.impl.clients.ScenarioHandler
 
 
- 
- 
Nested Class Summary- 
Nested classes/interfaces inherited from class java.lang.ThreadThread.State, Thread.UncaughtExceptionHandler
 
- 
 - 
Field Summary- 
Fields inherited from class java.lang.ThreadMAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
- 
 - 
Constructor SummaryConstructors Constructor Description ScenarioHandler(Deque<ClientEvent> scenario)Constructor.ScenarioHandler(Deque<ClientEvent> scenario, int freeze, long sleepBetweenTries)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddOfMsg(byte[] message)Adds a message.Deque<ClientEvent>getScenario()Returns the scenario.booleanisEmpty()Returns true if scenario is done / empty.booleanisFinishedOK()booleanisScenarioFinished()Returns true is scenario is finished.voidrun()voidsetCtx(io.netty.channel.ChannelHandlerContext ctx)Sets the ChannelHandlerContext.voidsetScenario(Deque<ClientEvent> scenario)Sets the scenario.- 
Methods inherited from class java.lang.ThreadactiveCount, checkAccess, clone, countStackFrames, currentThread, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, onSpinWait, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, suspend, toString, yield
 
- 
 
- 
- 
- 
Constructor Detail- 
ScenarioHandlerpublic ScenarioHandler(Deque<ClientEvent> scenario) Constructor.- Parameters:
- scenario-- Deque
 
 - 
ScenarioHandlerpublic ScenarioHandler(Deque<ClientEvent> scenario, int freeze, long sleepBetweenTries) 
 
- 
 - 
Method Detail- 
isEmptypublic boolean isEmpty() Returns true if scenario is done / empty.
 - 
getScenariopublic Deque<ClientEvent> getScenario() Returns the scenario.
 - 
setScenariopublic void setScenario(Deque<ClientEvent> scenario) Sets the scenario.- Parameters:
- scenario- scenario filled with desired events
 
 - 
setCtxpublic void setCtx(io.netty.channel.ChannelHandlerContext ctx) Sets the ChannelHandlerContext.- Parameters:
- ctx- context which will be used for sending messages (SendEvents)
 
 - 
addOfMsgpublic void addOfMsg(byte[] message) Adds a message.- Parameters:
- message- received message that is compared to expected message
 
 - 
isScenarioFinishedpublic boolean isScenarioFinished() Returns true is scenario is finished.
 - 
isFinishedOKpublic boolean isFinishedOK() 
 
- 
 
-