|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.lang.Thread
kr.co.hit.live.util.FileWatchdog
public class FileWatchdog
File Watch Dog 클래스
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class java.lang.Thread |
|---|
Thread.State, Thread.UncaughtExceptionHandler |
| Field Summary | |
|---|---|
static long |
DEFAULT_DELAY
해당 파일의 변경 유무를 체크하기 위한 Default 초의 static final 변수, 기본 적용은 값은 30초 |
static String |
WATCHDOG_THREAD_NAME
감시 쓰레드 명 |
| Fields inherited from class java.lang.Thread |
|---|
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
| Constructor Summary | |
|---|---|
FileWatchdog(File file)
감시하고자 하는 파일을 파라메타로 받는 기본 생성자. |
|
| Method Summary | |
|---|---|
protected void |
checkAndConfigure()
파일의 변경 유무를 체크하는 메소드 |
void |
quit()
감시를 중단한다. |
void |
run()
파일의 변경 유무의 체크를 주기적으로 실행시키는 메소드 |
void |
setDelay(long delay)
감시 주기를 설정한다. |
FileWatchdogListener |
setListener(FileWatchdogListener lstnr)
파일 변경시 이벤트를 전달할 리스너 객체를 설정한다. |
void |
setLockFile(File file)
Lock 파일 객체를 지정한다. |
| 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 |
|---|
public static final long DEFAULT_DELAY
해당 파일의 변경 유무를 체크하기 위한 Default 초의 static final 변수, 기본 적용은 값은 30초
public static final String WATCHDOG_THREAD_NAME
| Constructor Detail |
|---|
public FileWatchdog(File file)
filename - | Method Detail |
|---|
public void quit()
public void setDelay(long delay)
delay - 감시주기 (초)public void setLockFile(File file)
file - public FileWatchdogListener setListener(FileWatchdogListener lstnr)
lstnr - 설정할 리스너 객체
protected void checkAndConfigure()
파일의 변경 유무를 체크하는 메소드
public void run()
파일의 변경 유무의 체크를 주기적으로 실행시키는 메소드
run in interface Runnablerun in class Thread
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||