org.apache.oozie.service
Interface Service

All Known Implementing Classes:
ActionCheckerService, ActionService, AuthorizationService, CallableQueueService, CallbackService, ConfigurationService, CoordinatorEngineService, CoordinatorStoreService, CoordJobMatLookupTriggerService, DagEngineService, DagXLogInfoService, DBLiteWorkflowStoreService, ELService, HadoopAccessorService, InstrumentationService, KerberosHadoopAccessorService, LiteWorkflowAppService, LiteWorkflowStoreService, MemoryLocksService, PurgeService, RecoveryService, SchedulerService, SchemaService, SLAStoreService, 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.
 
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

CONF_PREFIX

static final String CONF_PREFIX
Prefix for all services configuration properties.

See Also:
Constant Field Values
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 © 2011 Yahoo. All Rights Reserved.