org.sonar.core.batch
Class AbstractTask

java.lang.Object
  extended by java.lang.Thread
      extended by org.sonar.core.batch.AbstractTask
All Implemented Interfaces:
java.lang.Runnable
Direct Known Subclasses:
JobsExecutor

public abstract class AbstractTask
extends java.lang.Thread


Nested Class Summary
 
Nested classes/interfaces inherited from class java.lang.Thread
java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler
 
Field Summary
protected  Monitored monitored
           
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
protected AbstractTask(DatabaseConnector databaseConnector, Monitor monitor)
           
 
Method Summary
protected abstract  void execute()
           
protected  DaoFacade getDao()
           
protected  DatabaseConnector getDatabaseConnector()
           
protected abstract  java.lang.String getMessage()
           
 void run()
           
protected  void startMonitoring()
           
 void stopMonitoring()
           
 
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, 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

monitored

protected Monitored monitored
Constructor Detail

AbstractTask

protected AbstractTask(DatabaseConnector databaseConnector,
                       Monitor monitor)
Method Detail

run

public final void run()
Specified by:
run in interface java.lang.Runnable
Overrides:
run in class java.lang.Thread

execute

protected abstract void execute()

getMessage

protected abstract java.lang.String getMessage()

getDao

protected DaoFacade getDao()

startMonitoring

protected void startMonitoring()

stopMonitoring

public void stopMonitoring()

getDatabaseConnector

protected DatabaseConnector getDatabaseConnector()


Copyright © 2008 SonarSource SA. All Rights Reserved.