|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.oozie.util.XLog.Info
public static class XLog.Info
LogInfo
stores contextual information to create log prefixes.
LogInfo
uses a
ThreadLocal
to propagate the context. LogInfo
context parameters are configurable
singletons.
Constructor Summary | |
---|---|
XLog.Info()
Constructs an empty LogInfo. |
|
XLog.Info(XLog.Info logInfo)
Construct a new LogInfo object from an existing one. |
Method Summary | |
---|---|
void |
clear()
Clear all parameters set in this logInfo instance. |
void |
clearParameter(String name)
Clear a parameter value from the LogInfo context. |
String |
createPrefix()
Create the LogInfo prefix using the current parameter values. |
static void |
defineParameter(String name)
Define a LogInfo context parameter. |
static XLog.Info |
get()
Return the LogInfo instance in context. |
String |
getParameter(String name)
Returns the specified parameter. |
static void |
remove()
Remove the LogInfo instance in context. |
static void |
reset()
Remove all defined context parameters. |
void |
setParameter(String name,
String value)
Set a parameter value in the LogInfo context. |
void |
setParameters(XLog.Info logInfo)
Set all the parameter values from the given LogInfo . |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public XLog.Info()
public XLog.Info(XLog.Info logInfo)
logInfo
- LogInfo object to copy parameters from.Method Detail |
---|
public static void defineParameter(String name)
LogInfo
context parameter. The parameter name and its contextual value will be
used to create all prefixes.
name
- name of the context parameter.public static void reset()
public static XLog.Info get()
LogInfo
instance in context.
public static void remove()
LogInfo
instance in context.
public void clear()
public void setParameter(String name, String value)
LogInfo
context.
name
- parameter name.value
- parameter value.public String getParameter(String name)
name
- parameter name.
public void clearParameter(String name)
LogInfo
context.
name
- parameter name.public void setParameters(XLog.Info logInfo)
LogInfo
.
logInfo
- LogInfo
to copy all parameter values from.public String createPrefix()
LogInfo
prefix using the current parameter values.
LogInfo
prefix.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |