|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.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(String text,
Object... objects)
If enabled, logs for info level the given objects and text |
static void |
trace(String text,
Object... objects)
If enabled, logs for trace level the given objects and text |
static void |
traceLock(String lockAction,
ReentrantLock lock)
Logs the lock and action. |
static void |
traceLock(String lockAction,
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(String text, Object... objects)
text
- to logobjects
- to writepublic static void info(String text, Object... objects)
text
- to logobjects
- to writepublic static void traceLock(String lockAction, ReentrantLock lock)
lockAction
- is the action towards the locklock
- is the lock instancepublic static void traceLock(String lockAction, ReentrantReadWriteLock lock)
lockAction
- is the action towards the locklock
- is the lock instance
|
© 2007 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 |