org.apache.oozie.service
Class ActionService

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

public class ActionService
extends Object
implements Service


Field Summary
static String CONF_ACTION_EXECUTOR_CLASSES
           
static String CONF_ACTION_EXECUTOR_EXT_CLASSES
           
 
Fields inherited from interface org.apache.oozie.service.Service
CONF_PREFIX, DEFAULT_LOCK_TIMEOUT, lockTimeout, USE_XCOMMAND
 
Constructor Summary
ActionService()
           
 
Method Summary
 void destroy()
          Destroy the service.
 ActionExecutor getExecutor(String actionType)
           
 Class<? extends Service> getInterface()
          Return the public interface of the service.
 void init(Services services)
          Initialize the service.
 void register(Class<? extends ActionExecutor> klass)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CONF_ACTION_EXECUTOR_CLASSES

public static final String CONF_ACTION_EXECUTOR_CLASSES
See Also:
Constant Field Values

CONF_ACTION_EXECUTOR_EXT_CLASSES

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

ActionService

public ActionService()
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.

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

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.

register

public void register(Class<? extends ActionExecutor> klass)
              throws ServiceException
Throws:
ServiceException

getExecutor

public ActionExecutor getExecutor(String actionType)


Copyright © 2013 Apache Software Foundation. All Rights Reserved.