|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.espertech.esper.util.ThreadLogUtil
public class ThreadLogUtil
Utility class for logging threading-related messages.
Prints thread information and lock-specific info.
Field Summary | |
---|---|
static boolean |
ENABLED_INFO
Enable info logging. |
static boolean |
ENABLED_TRACE
Enable trace logging. |
static int |
INFO
Set info log level. |
static int |
TRACE
Set trace log level. |
Constructor Summary | |
---|---|
ThreadLogUtil()
|
Method Summary | |
---|---|
static void |
info(java.lang.String text,
java.lang.Object... objects)
If enabled, logs for info level the given objects and text |
static void |
trace(java.lang.String text,
java.lang.Object... objects)
If enabled, logs for trace level the given objects and text |
static void |
traceLock(java.lang.String lockAction,
java.util.concurrent.locks.ReentrantLock lock)
Logs the lock and action. |
static void |
traceLock(java.lang.String lockAction,
java.util.concurrent.locks.ReentrantReadWriteLock lock)
Logs the lock and action. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static int TRACE
public static int INFO
public static final boolean ENABLED_TRACE
public static final boolean ENABLED_INFO
Constructor Detail |
---|
public ThreadLogUtil()
Method Detail |
---|
public static void trace(java.lang.String text, java.lang.Object... objects)
text
- to logobjects
- to writepublic static void info(java.lang.String text, java.lang.Object... objects)
text
- to logobjects
- to writepublic static void traceLock(java.lang.String lockAction, java.util.concurrent.locks.ReentrantLock lock)
lockAction
- is the action towards the locklock
- is the lock instancepublic static void traceLock(java.lang.String lockAction, java.util.concurrent.locks.ReentrantReadWriteLock lock)
lockAction
- is the action towards the locklock
- is the lock instance
|
© 2006-2015 EsperTech Inc. All rights reserved. Visit us at espertech.com |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |