|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.sonatype.gossip.support.DC
public class DC
Diagnostic context; provides map and stack facilities.
Nested Class Summary | |
---|---|
static class |
DC.State
|
Field Summary | |
---|---|
static String |
KEY
The key in which we publish our contents to in the Slf4j MDC. |
static String |
PREFIX
String prefixed to MDC value when there is content to publish. |
static String |
SEPARATOR
String used to separate the stack and context values when both are present. |
Constructor Summary | |
---|---|
DC()
|
Method Summary | |
---|---|
static void |
clear()
|
static String |
get(Class key)
|
static String |
get(Object key)
|
static DC.State |
getState()
Get a copy of the state for the current thread. |
static boolean |
isEmpty()
|
static String |
peek()
|
static String |
pop()
|
static void |
push(Object value)
|
static void |
put(Class key,
Object value)
|
static void |
put(Object key,
Object value)
|
static void |
remove(Class key)
|
static void |
remove(Object key)
|
static StringBuilder |
render()
|
static void |
reset()
|
static void |
setState(DC.State state)
Set the state for the current thread. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String KEY
public static final String PREFIX
public static final String SEPARATOR
Constructor Detail |
---|
public DC()
Method Detail |
---|
public static DC.State getState()
public static void setState(DC.State state)
public static boolean isEmpty()
public static void clear()
public static void reset()
public static StringBuilder render()
public static void put(Object key, Object value)
public static void put(Class key, Object value)
public static String get(Object key)
public static String get(Class key)
public static void remove(Object key)
public static void remove(Class key)
public static void push(Object value)
public static String pop()
public static String peek()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |