站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > JBoss 4.0.1 sp1 system API Documentation 英文版文档

AbstractDeploymentScanner.ScannerThread (JBoss System API) - JBoss 4.0.1 sp1 system API Documentation 英文版文档


org.jboss.deployment.scanner
Class AbstractDeploymentScanner.ScannerThread

java.lang.Object
  extended byjava.lang.Thread
      extended byorg.jboss.deployment.scanner.AbstractDeploymentScanner.ScannerThread
All Implemented Interfaces:
Runnable
Enclosing class:
AbstractDeploymentScanner

public class AbstractDeploymentScanner.ScannerThread
extends Thread

Should use Timer/TimerTask instead? This has some issues with interaction with ScanEnabled attribute. ScanEnabled works only when starting/stopping.


Field Summary
protected  boolean enabled
          True if the scan loop should run.
protected  Object lock
          Lock/notify object.
protected  org.jboss.logging.Logger log
          We get our own logger.
protected  boolean shuttingDown
          True if we are shutting down.
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
AbstractDeploymentScanner.ScannerThread(boolean enabled)
           
 
Method Summary
 void doScan()
           
protected  void loop()
           
 void run()
           
 void setEnabled(boolean enabled)
           
 void shutdown()
           
 
Methods inherited from class java.lang.Thread
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getContextClassLoader, getName, getPriority, getThreadGroup, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setName, setPriority, 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

log

protected org.jboss.logging.Logger log
We get our own logger.


enabled

protected boolean enabled
True if the scan loop should run.


shuttingDown

protected boolean shuttingDown
True if we are shutting down.


lock

protected Object lock
Lock/notify object.

Constructor Detail

AbstractDeploymentScanner.ScannerThread

public AbstractDeploymentScanner.ScannerThread(boolean enabled)
Method Detail

setEnabled

public void setEnabled(boolean enabled)

shutdown

public void shutdown()

run

public void run()

doScan

public void doScan()

loop

protected void loop()


Copyright © 2002 JBoss Group, LLC. All Rights Reserved.