org.mule.module.launcher.log4j
Class ArtifactAwareRepositorySelector.ConfigWatchDog

java.lang.Object
  extended by java.lang.Thread
      extended by org.mule.module.launcher.log4j.ArtifactAwareRepositorySelector.ConfigWatchDog
All Implemented Interfaces:
Runnable
Enclosing class:
ArtifactAwareRepositorySelector

protected class ArtifactAwareRepositorySelector.ConfigWatchDog
extends Thread


Nested Class Summary
 
Nested classes/interfaces inherited from class java.lang.Thread
Thread.State, Thread.UncaughtExceptionHandler
 
Field Summary
static long DEFAULT_DELAY
          The default delay between every file modification check, set to 60 seconds.
protected  long delay
          The delay to observe between every check.
protected  File file
           
protected  String filename
          The name of the file to observe for changes.
protected  boolean interrupted
           
protected  long lastModif
           
protected  LoggerRepository repository
           
protected  boolean warnedAlready
           
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
ArtifactAwareRepositorySelector.ConfigWatchDog(ClassLoader classLoader, String filename, LoggerRepository repository)
           
 
Method Summary
protected  void checkAndConfigure()
           
 void doOnChange()
           
 void run()
           
 void setDelay(long delay)
          Set the delay to observe between each check of the file changes.
 
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

repository

protected LoggerRepository repository

file

protected File file

lastModif

protected long lastModif

warnedAlready

protected boolean warnedAlready

interrupted

protected volatile boolean interrupted

DEFAULT_DELAY

public static final long DEFAULT_DELAY
The default delay between every file modification check, set to 60 seconds.

See Also:
Constant Field Values

filename

protected String filename
The name of the file to observe for changes.


delay

protected long delay
The delay to observe between every check. By default set DEFAULT_DELAY.

Constructor Detail

ArtifactAwareRepositorySelector.ConfigWatchDog

public ArtifactAwareRepositorySelector.ConfigWatchDog(ClassLoader classLoader,
                                                      String filename,
                                                      LoggerRepository repository)
Method Detail

doOnChange

public void doOnChange()

setDelay

public void setDelay(long delay)
Set the delay to observe between each check of the file changes.


checkAndConfigure

protected void checkAndConfigure()

run

public void run()
Specified by:
run in interface Runnable
Overrides:
run in class Thread


Copyright © 2003-2014 MuleSoft, Inc.. All Rights Reserved.