public class ParentListener extends Thread
Thread.State, Thread.UncaughtExceptionHandler
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
Constructor and Description |
---|
ParentListener(String path)
Validates and caches a lock file created by the parent JVM.
|
Modifier and Type | Method and Description |
---|---|
void |
run()
Periodically check that the parent JVM has not terminated.
|
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
public ParentListener(String path) throws IOException
path
- the lock file that the parent JVM has an open
FileOutputStreamIOException
- if the heartbeat cannot be converted into a valid
File objectpublic void run()
ParentListener(String)
constructor is monitored as reading
System.in will block the entire process on Windows machines that use
some versions of Unix shells such as MKS, etc. No monitoring is done
on Window 95, 98, and ME.Copyright © 2002-2013 The Apache Software Foundation. All Rights Reserved.