public class ActionService extends Object implements Service, Instrumentable
Modifier and Type | Field and Description |
---|---|
static String |
CONF_ACTION_EXECUTOR_CLASSES |
static String |
CONF_ACTION_EXECUTOR_EXT_CLASSES |
CONF_PREFIX, DEFAULT_LOCK_TIMEOUT, lockTimeout
Constructor and Description |
---|
ActionService() |
Modifier and Type | Method and Description |
---|---|
void |
destroy()
Destroy the service.
|
ActionExecutor |
getExecutor(String actionType) |
Class<? extends Service> |
getInterface()
Return the public interface of the service.
|
boolean |
hasActionType(String actionType) |
void |
init(Services services)
Initialize the service.
|
void |
instrument(Instrumentation instr)
Set the system instrumentation.
|
void |
registerAndInitExecutor(Class<? extends ActionExecutor> klass) |
public static final String CONF_ACTION_EXECUTOR_CLASSES
public static final String CONF_ACTION_EXECUTOR_EXT_CLASSES
public ActionService()
public void init(Services services) throws ServiceException
Service
Invoked by the Service
singleton at start up time.
init
in interface Service
services
- services singleton initializing the service.ServiceException
- thrown if the service could not initialize.public void destroy()
Service
Invoked by the Service
singleton at shutdown time.
public Class<? extends Service> getInterface()
Service
Services are retrieved by its public interface. Specializations of services must return the public interface.
getInterface
in interface Service
public void instrument(Instrumentation instr)
Instrumentable
instrument
in interface Instrumentable
instr
- system instrumentation.public void registerAndInitExecutor(Class<? extends ActionExecutor> klass)
public ActionExecutor getExecutor(String actionType)
public boolean hasActionType(String actionType)
Copyright © 2018 Apache Software Foundation. All rights reserved.