verinec.importer.analysis
Class AAnalyserTask

java.lang.Object
  extended by java.lang.Thread
      extended by verinec.importer.analysis.AAnalyserTask
All Implemented Interfaces:
Runnable
Direct Known Subclasses:
HostScanWorker, SnifferThread, TraceWorkerThread

public abstract class AAnalyserTask
extends Thread

This class contains some common mehtods of the task which are needed to rebuilt a network.

Author:
martial.seifriz at unifr.ch

Nested Class Summary
 
Nested classes/interfaces inherited from class java.lang.Thread
Thread.State, Thread.UncaughtExceptionHandler
 
Field Summary
(package private)  AAnalyserStartOperation starter
          The starter which controls this task
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
AAnalyserTask(String name)
          The constructor just call the super constructor.
 
Method Summary
abstract  void abortOperation()
          Abort the task as soon as possible.
 AAnalyserStartOperation getStarter()
          Fetch the starter of this task.
 void printMessage(String message)
          Print a message, eg. on the standart output or in the gui.
 void setStarter(AAnalyserStartOperation starter)
          Set the starter of this task.
 
Methods inherited from class java.lang.Thread
activeCount, checkAccess, 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, run, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

starter

AAnalyserStartOperation starter
The starter which controls this task

Constructor Detail

AAnalyserTask

public AAnalyserTask(String name)
The constructor just call the super constructor.

Parameters:
name - The name of the task
Method Detail

setStarter

public void setStarter(AAnalyserStartOperation starter)
Set the starter of this task.

Parameters:
starter - The starter of this thread.

getStarter

public AAnalyserStartOperation getStarter()
Fetch the starter of this task.

Returns:
The starter.

printMessage

public void printMessage(String message)
Print a message, eg. on the standart output or in the gui.

Parameters:
message - The message to print.

abortOperation

public abstract void abortOperation()
Abort the task as soon as possible.


Copyright © 2005 Verinec, DIUF