org.asyrinx.brownie.core.io
クラス FileWatchdog

java.lang.Object
  拡張java.lang.Thread
      拡張org.asyrinx.brownie.core.io.FileWatchdog
すべての実装インタフェース:
java.lang.Runnable

public abstract class FileWatchdog
extends java.lang.Thread

ファイルの変更を監視するスレッドです。

作成者:
akima

フィールドの概要
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.
 
クラス java.lang.Thread から継承したフィールド
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
コンストラクタの概要
protected FileWatchdog(java.lang.String filename)
           
protected FileWatchdog(java.lang.String filename, long delay_msec)
           
 
メソッドの概要
 void checkAndConfigure()
           
protected abstract  void doOnChange()
           
 void run()
           
 void setDelay(long delay)
          Set the delay to observe between each check of the file changes.
 
クラス 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
 
クラス java.lang.Object から継承したメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

フィールドの詳細

DEFAULT_DELAY

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

関連項目:
定数フィールド値

delay

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

コンストラクタの詳細

FileWatchdog

protected FileWatchdog(java.lang.String filename)

FileWatchdog

protected FileWatchdog(java.lang.String filename,
                       long delay_msec)
メソッドの詳細

setDelay

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


doOnChange

protected abstract void doOnChange()

checkAndConfigure

public void checkAndConfigure()

run

public void run()


Copyright © 2004 asyrinx organization. All Rights Reserved.