org.apache.oozie.service
Class XLogCopyService

java.lang.Object
  extended by org.apache.oozie.service.XLogCopyService
All Implemented Interfaces:
Service

public class XLogCopyService
extends Object
implements Service

The XLogCopyService copies oozie.log contents onto HDFS. By default, it runs every 5 minutes.


Field Summary
static String CONF_HDFS_LOG_DIR
          HDFS directory where oozie log will be forward to.
static String CONF_LOG_PURGE
           
static String CONF_PREFIX
           
static String CONF_SERVICE_INTERVAL
          Time interval, in minutes, at which the service will be scheduled to run.
static int CURRENT_LINE_NUMBER
           
static String HDFS_LOG_DIR
           
static Boolean IS_LOG_PURGING_ENABLED
           
static HashMap<String,String> jdbcConf
           
static String LAST_COMPLETE_LOG_FILE_NAME
           
static String LOGPROGRESS_GET_QUERY
           
static String LOGPROGRESS_INSERT_QUERY
           
static String LOGPROGRESS_UPDATE_QUERY
           
static String LOGPROGRESS_UPDATE_QUERY_WHERE_CLAUSE
           
static String OOZIE_INSTANCE_ID
           
 
Fields inherited from interface org.apache.oozie.service.Service
DEFAULT_LOCK_TIMEOUT, lockTimeout, USE_XCOMMAND
 
Constructor Summary
XLogCopyService()
           
 
Method Summary
 void destroy()
          Destroy the service.
 String getConfHdfsLogDir()
           
 Class<? extends Service> getInterface()
          Return the public interface of the service.
 void init(Services services)
          Initialize the service.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CONF_PREFIX

public static final String CONF_PREFIX
See Also:
Constant Field Values

CONF_SERVICE_INTERVAL

public static final String CONF_SERVICE_INTERVAL
Time interval, in minutes, at which the service will be scheduled to run.

See Also:
Constant Field Values

CONF_HDFS_LOG_DIR

public static final String CONF_HDFS_LOG_DIR
HDFS directory where oozie log will be forward to.

See Also:
Constant Field Values

CONF_LOG_PURGE

public static final String CONF_LOG_PURGE
See Also:
Constant Field Values

HDFS_LOG_DIR

public static String HDFS_LOG_DIR

CURRENT_LINE_NUMBER

public static int CURRENT_LINE_NUMBER

LAST_COMPLETE_LOG_FILE_NAME

public static String LAST_COMPLETE_LOG_FILE_NAME

OOZIE_INSTANCE_ID

public static String OOZIE_INSTANCE_ID

jdbcConf

public static HashMap<String,String> jdbcConf

LOGPROGRESS_GET_QUERY

public static String LOGPROGRESS_GET_QUERY

LOGPROGRESS_UPDATE_QUERY

public static String LOGPROGRESS_UPDATE_QUERY

LOGPROGRESS_UPDATE_QUERY_WHERE_CLAUSE

public static String LOGPROGRESS_UPDATE_QUERY_WHERE_CLAUSE

LOGPROGRESS_INSERT_QUERY

public static String LOGPROGRESS_INSERT_QUERY

IS_LOG_PURGING_ENABLED

public static Boolean IS_LOG_PURGING_ENABLED
Constructor Detail

XLogCopyService

public XLogCopyService()
Method Detail

init

public void init(Services services)
          throws ServiceException
Description copied from interface: Service
Initialize the service.

Invoked by the Service singleton at start up time.

Specified by:
init in interface Service
Parameters:
services - services singleton initializing the service.
Throws:
ServiceException - thrown if the service could not initialize.

getInterface

public Class<? extends Service> getInterface()
Description copied from interface: Service
Return the public interface of the service.

Services are retrieved by its public interface. Specializations of services must return the public interface.

Specified by:
getInterface in interface Service
Returns:
the interface of the service.

destroy

public void destroy()
Description copied from interface: Service
Destroy the service.

Invoked by the Service singleton at shutdown time.

Specified by:
destroy in interface Service

getConfHdfsLogDir

public String getConfHdfsLogDir()


Copyright © 2015 Apache Software Foundation. All Rights Reserved.