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

Package class diagram package 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:
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
Thread.State, Thread.UncaughtExceptionHandler
 
Field Summary
 int botsPort
           
 int controlPort
           
 UCCStartException exception
          Exception that ended the startig.
 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(InputStream is)
           
 
Method Summary
protected  void handleInput(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, clone, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, checkAccess, 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 CountDownLatch portsBindedLatch

controlPort

public int controlPort

botsPort

public int botsPort
Constructor Detail

UCCWrapper.ScannerSink

public UCCWrapper.ScannerSink(InputStream is)
Method Detail

handleInput

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

raiseLatch

protected void raiseLatch()


Copyright © 2013 AMIS research group, Faculty of Mathematics and Physics, Charles University in Prague, Czech Republic. All Rights Reserved.