java.lang.Runnable
public class ParentListener
extends java.lang.Thread
Constructor | Description |
---|---|
ParentListener(java.lang.String path) |
Validates and caches a lock file created by the parent JVM.
|
Modifier and Type | Method | Description |
---|---|---|
void |
run() |
Periodically check that the parent JVM has not terminated.
|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
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, onSpinWait, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield
public ParentListener(java.lang.String path) throws java.io.IOException
path
- the lock file that the parent JVM has an open
FileOutputStreamjava.io.IOException
- 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.run
in interface java.lang.Runnable
run
in class java.lang.Thread
Copyright (c) 2001-2002 - Apache Software Foundation