org.apache.oozie.service
Interface Service

All Known Implementing Classes:
ActionCheckerService, ActionService, AuthorizationService, BundleEngineService, CallableQueueService, CallbackService, ConfigurationService, CoordinatorEngineService, CoordinatorStoreService, CoordMaterializeTriggerService, DagEngineService, DagXLogInfoService, DBLiteWorkflowStoreService, ELService, GroupsService, HadoopAccessorService, InstrumentationService, JPAService, LiteWorkflowAppService, LiteWorkflowStoreService, MemoryLocksService, PauseTransitService, ProxyUserService, PurgeService, RecoveryService, SchedulerService, SchemaService, SLAStoreService, StatusTransitService, StoreService, UUIDService, WorkflowAppService, WorkflowSchemaService, WorkflowStoreService, XLogService

public interface Service

A service is component managed by the Services singleton.


Field Summary
static String CONF_PREFIX
          Prefix for all services configuration properties.
static String DEFAULT_LOCK_TIMEOUT
           
static long lockTimeout
          Lock timeout value if service is only allowed to have one single running instance.
static String USE_XCOMMAND
          Constant for XCommand
 
Method Summary
 void destroy()
          Destroy the service.
 Class<? extends Service> getInterface()
          Return the public interface of the service.
 void init(Services services)
          Initialize the service.
 

Field Detail

DEFAULT_LOCK_TIMEOUT

static final String DEFAULT_LOCK_TIMEOUT
See Also:
Constant Field Values

CONF_PREFIX

static final String CONF_PREFIX
Prefix for all services configuration properties.

See Also:
Constant Field Values

USE_XCOMMAND

static final String USE_XCOMMAND
Constant for XCommand

See Also:
Constant Field Values

lockTimeout

static final long lockTimeout
Lock timeout value if service is only allowed to have one single running instance.

Method Detail

init

void init(Services services)
          throws ServiceException
Initialize the service.

Invoked by the Service singleton at start up time.

Parameters:
services - services singleton initializing the service.
Throws:
ServiceException - thrown if the service could not initialize.

destroy

void destroy()
Destroy the service.

Invoked by the Service singleton at shutdown time.


getInterface

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

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

Returns:
the interface of the service.


Copyright © 2013 Apache Software Foundation. All Rights Reserved.