org.apache.oozie.service
Class PurgeService

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

public class PurgeService
extends Object
implements Service

The PurgeService schedules purging of completed jobs and associated action older than a specified age for workflow, coordinator and bundle.


Field Summary
static String BUNDLE_CONF_OLDER_THAN
           
static String CONF_OLDER_THAN
          Age of completed jobs to be deleted, in days.
static String CONF_PREFIX
           
static String CONF_PURGE_INTERVAL
          Time interval, in seconds, at which the purge jobs service will be scheduled to run.
static String COORD_CONF_OLDER_THAN
           
static String PURGE_LIMIT
           
 
Fields inherited from interface org.apache.oozie.service.Service
DEFAULT_LOCK_TIMEOUT, lockTimeout, USE_XCOMMAND
 
Constructor Summary
PurgeService()
           
 
Method Summary
 void destroy()
          Destroy the Purge Jobs Service.
 Class<? extends Service> getInterface()
          Return the public interface for the purge jobs service.
 void init(Services services)
          Initializes the PurgeService.
 
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_OLDER_THAN

public static final String CONF_OLDER_THAN
Age of completed jobs to be deleted, in days.

See Also:
Constant Field Values

COORD_CONF_OLDER_THAN

public static final String COORD_CONF_OLDER_THAN
See Also:
Constant Field Values

BUNDLE_CONF_OLDER_THAN

public static final String BUNDLE_CONF_OLDER_THAN
See Also:
Constant Field Values

CONF_PURGE_INTERVAL

public static final String CONF_PURGE_INTERVAL
Time interval, in seconds, at which the purge jobs service will be scheduled to run.

See Also:
Constant Field Values

PURGE_LIMIT

public static final String PURGE_LIMIT
See Also:
Constant Field Values
Constructor Detail

PurgeService

public PurgeService()
Method Detail

init

public void init(Services services)
Initializes the PurgeService.

Specified by:
init in interface Service
Parameters:
services - services instance.

destroy

public void destroy()
Destroy the Purge Jobs Service.

Specified by:
destroy in interface Service

getInterface

public Class<? extends Service> getInterface()
Return the public interface for the purge jobs service.

Specified by:
getInterface in interface Service
Returns:
PurgeService.


Copyright © 2013 Apache Software Foundation. All Rights Reserved.