public final class MarkerManager
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
MarkerManager.Log4jMarker
Consider this class private, it is only public to satisfy Jackson for XML and JSON IO.
|
Modifier and Type | Field and Description |
---|---|
private static java.util.concurrent.ConcurrentMap<java.lang.String,Marker> |
MARKERS |
Modifier | Constructor and Description |
---|---|
private |
MarkerManager() |
Modifier and Type | Method and Description |
---|---|
static void |
clear()
Clears all markers.
|
static boolean |
exists(java.lang.String key)
Tests existence of the given marker.
|
static Marker |
getMarker(java.lang.String name)
Retrieves a Marker or create a Marker that has no parent.
|
static Marker |
getMarker(java.lang.String name,
Marker parent)
Deprecated.
Use the Marker add or set methods to add parent Markers. Will be removed by final GA release.
|
static Marker |
getMarker(java.lang.String name,
java.lang.String parent)
Deprecated.
Use the Marker add or set methods to add parent Markers. Will be removed by final GA release.
|
private static void |
requireNonNull(java.lang.Object obj,
java.lang.String message) |
private static final java.util.concurrent.ConcurrentMap<java.lang.String,Marker> MARKERS
public static void clear()
public static boolean exists(java.lang.String key)
key
- the marker namepublic static Marker getMarker(java.lang.String name)
name
- The name of the Marker.java.lang.IllegalArgumentException
- if the argument is null
@Deprecated public static Marker getMarker(java.lang.String name, java.lang.String parent)
name
- The name of the Marker.parent
- The name of the parent Marker.java.lang.IllegalArgumentException
- if the parent Marker does not exist.@Deprecated public static Marker getMarker(java.lang.String name, Marker parent)
name
- The name of the Marker.parent
- The parent Marker.java.lang.IllegalArgumentException
- if any argument is null
private static void requireNonNull(java.lang.Object obj, java.lang.String message)