cz.cuni.amis.pogamut.ut2004.utils
Class UCCWrapper.ScannerSink

java.lang.Object
  extended by java.lang.Thread
      extended by cz.cuni.amis.pogamut.ut2004.utils.UCCWrapper.StreamSink
          extended by cz.cuni.amis.pogamut.ut2004.utils.UCCWrapper.ScannerSink
All Implemented Interfaces:
java.lang.Runnable
Enclosing class:
UCCWrapper

public class UCCWrapper.ScannerSink
extends UCCWrapper.StreamSink

Scanns the output of UCC for some specific srings (Ports bounded. START MATCH).


Nested Class Summary
 
Nested classes/interfaces inherited from class java.lang.Thread
java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler
 
Field Summary
 int botsPort
           
 int controlPort
           
 UCCStartException exception
          Exception that ended the startig.
 java.util.concurrent.CountDownLatch portsBindedLatch
           
 long startingTimeout
           
 
Fields inherited from class cz.cuni.amis.pogamut.ut2004.utils.UCCWrapper.StreamSink
os
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
UCCWrapper.ScannerSink(java.io.InputStream is)
           
 
Method Summary
protected  void handleInput(java.lang.String str)
           
protected  void raiseLatch()
           
 
Methods inherited from class cz.cuni.amis.pogamut.ut2004.utils.UCCWrapper.StreamSink
run
 
Methods inherited from class java.lang.Thread
activeCount, checkAccess, clone, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

startingTimeout

public long startingTimeout

exception

public UCCStartException exception
Exception that ended the startig. Should be checked after the latch is raised.


portsBindedLatch

public java.util.concurrent.CountDownLatch portsBindedLatch

controlPort

public int controlPort

botsPort

public int botsPort
Constructor Detail

UCCWrapper.ScannerSink

public UCCWrapper.ScannerSink(java.io.InputStream is)
Method Detail

handleInput

protected void handleInput(java.lang.String str)
Overrides:
handleInput in class UCCWrapper.StreamSink

raiseLatch

protected void raiseLatch()