public abstract class AbstractLocalhostSplitFile extends Thread
Thread.State, Thread.UncaughtExceptionHandler| Modifier and Type | Field and Description |
|---|---|
protected File |
_file |
protected LocalhostSplitFactory |
_splitFactory |
protected AtomicBoolean |
_stop |
protected WatchService |
_watcher |
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY| Constructor and Description |
|---|
AbstractLocalhostSplitFile(LocalhostSplitFactory splitFactory,
String directory,
String fileName) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
isStopped() |
abstract Map<SplitAndKey,LocalhostSplit> |
readOnSplits() |
void |
registerWatcher() |
void |
run() |
void |
stopThread() |
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, yieldprotected final LocalhostSplitFactory _splitFactory
protected final File _file
protected final WatchService _watcher
protected final AtomicBoolean _stop
public AbstractLocalhostSplitFile(LocalhostSplitFactory splitFactory, String directory, String fileName) throws IOException
IOExceptionpublic boolean isStopped()
public void stopThread()
public void registerWatcher()
throws IOException
IOExceptionpublic abstract Map<SplitAndKey,LocalhostSplit> readOnSplits() throws IOException
IOExceptionCopyright © 2019. All rights reserved.