public class MonitorLog4jWatcher
extends org.apache.log4j.helpers.FileWatchdog
implements org.apache.zookeeper.Watcher
Thread.State, Thread.UncaughtExceptionHandler| Modifier and Type | Field and Description |
|---|---|
protected String |
path |
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY| Constructor and Description |
|---|
MonitorLog4jWatcher(String instance,
String filename) |
| Modifier and Type | Method and Description |
|---|---|
void |
doOnChange() |
void |
process(org.apache.zookeeper.WatchedEvent event) |
void |
run() |
protected void |
updateMonitorLog4jLocation()
Read the host and port information for the Monitor's log4j socket and update the system properties so that, on logger refresh, it sees the new information.
|
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 String path
public void run()
public void doOnChange()
doOnChange in class org.apache.log4j.helpers.FileWatchdogpublic void process(org.apache.zookeeper.WatchedEvent event)
process in interface org.apache.zookeeper.Watcherprotected void updateMonitorLog4jLocation()
Copyright © 2011–2017 The Apache Software Foundation. All rights reserved.