org.apache.oozie.util
Class LogUtils

java.lang.Object
  extended by org.apache.oozie.util.LogUtils

public class LogUtils
extends Object

logging utilities.


Constructor Summary
LogUtils()
           
 
Method Summary
static void clearLogPrefix()
           
static void setLogInfo(BundleJobBean bBean, XLog.Info logInfo)
          Set the log info with the context of the given bundle bean.
static void setLogInfo(CoordinatorActionBean action, XLog.Info logInfo)
          Set the log info with the context of the given coordinator action bean.
static void setLogInfo(CoordinatorJobBean cBean, XLog.Info logInfo)
          Set the log info with the context of the given coordinator bean.
static void setLogInfo(WorkflowActionBean action, XLog.Info logInfo)
          Set the log info with the context of the given action bean.
static void setLogInfo(org.apache.oozie.client.WorkflowAction action, XLog.Info logInfo)
           
static void setLogInfo(WorkflowJobBean workflow, XLog.Info logInfo)
          Set the log info with the context of the given workflow bean.
static void setLogInfo(XLog.Info logInfo)
          Set the thread local log info with the context of the given Info object.
static XLog setLogInfo(XLog logObj, String jobId, String actionId, String appName)
           
static XLog setLogPrefix(XLog logObj, org.apache.oozie.client.event.Event event)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LogUtils

public LogUtils()
Method Detail

setLogInfo

public static void setLogInfo(CoordinatorJobBean cBean,
                              XLog.Info logInfo)
Set the log info with the context of the given coordinator bean.

Parameters:
cBean - coordinator bean.
logInfo - log info

setLogInfo

public static void setLogInfo(CoordinatorActionBean action,
                              XLog.Info logInfo)
Set the log info with the context of the given coordinator action bean.

Parameters:
action - action bean.
logInfo - log info

setLogInfo

public static void setLogInfo(WorkflowJobBean workflow,
                              XLog.Info logInfo)
Set the log info with the context of the given workflow bean.

Parameters:
workflow - workflow bean.
logInfo - log info

setLogInfo

public static void setLogInfo(WorkflowActionBean action,
                              XLog.Info logInfo)
Set the log info with the context of the given action bean.

Parameters:
action - action bean.
logInfo - log info

setLogInfo

public static void setLogInfo(org.apache.oozie.client.WorkflowAction action,
                              XLog.Info logInfo)

setLogInfo

public static void setLogInfo(BundleJobBean bBean,
                              XLog.Info logInfo)
Set the log info with the context of the given bundle bean.

Parameters:
bBean - bundle bean.
logInfo - log info

setLogInfo

public static void setLogInfo(XLog.Info logInfo)
Set the thread local log info with the context of the given Info object.

Parameters:
logInfo - log info

setLogInfo

public static XLog setLogInfo(XLog logObj,
                              String jobId,
                              String actionId,
                              String appName)

setLogPrefix

public static XLog setLogPrefix(XLog logObj,
                                org.apache.oozie.client.event.Event event)

clearLogPrefix

public static void clearLogPrefix()


Copyright © 2015 Apache Software Foundation. All Rights Reserved.