public class MDCLoggingContext extends Object
clear()
. Always call setCore(SolrCore)
or
setCoreDescriptor(CoreContainer, CoreDescriptor)
and then clear()
in a finally block.Constructor and Description |
---|
MDCLoggingContext() |
Modifier and Type | Method and Description |
---|---|
static void |
clear()
Call this after
setCore(SolrCore) or setCoreDescriptor(CoreContainer, CoreDescriptor) in a
finally. |
static void |
reset()
Resets to a cleared state.
|
static void |
setCollection(String collection) |
static void |
setCore(SolrCore core)
Sets multiple information from the params.
|
static void |
setCoreDescriptor(CoreContainer coreContainer,
CoreDescriptor cd)
Sets multiple information from the params.
|
static void |
setCoreName(String core) |
static void |
setNode(CoreContainer cc) |
static void |
setNode(String node) |
static void |
setReplica(String replica) |
static void |
setShard(String shard) |
static void |
setTracerId(String traceId) |
public static final String TRACE_ID
public static void setCollection(String collection)
public static void setTracerId(String traceId)
public static void setShard(String shard)
public static void setReplica(String replica)
public static void setCoreName(String core)
public static void setNode(CoreContainer cc)
public static void setNode(String node)
public static void setCore(SolrCore core)
clear()
in a finally!public static void setCoreDescriptor(CoreContainer coreContainer, CoreDescriptor cd)
clear()
in a finally!public static void clear()
setCore(SolrCore)
or setCoreDescriptor(CoreContainer, CoreDescriptor)
in a
finally.public static void reset()
Copyright © 2000-2021 Apache Software Foundation. All Rights Reserved.