public class EventHandlerService extends java.lang.Object implements Service
| Modifier and Type | Class and Description |
|---|---|
class |
EventHandlerService.EventWorker |
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
CONF_BATCH_SIZE |
static java.lang.String |
CONF_EVENT_QUEUE |
static java.lang.String |
CONF_FILTER_APP_TYPES |
static java.lang.String |
CONF_LISTENERS |
static java.lang.String |
CONF_PREFIX |
static java.lang.String |
CONF_QUEUE_SIZE |
static java.lang.String |
CONF_WORKER_INTERVAL |
static java.lang.String |
CONF_WORKER_THREADS |
DEFAULT_LOCK_TIMEOUT, lockTimeout| Constructor and Description |
|---|
EventHandlerService() |
| Modifier and Type | Method and Description |
|---|---|
void |
addEventListener(java.lang.Object listener,
org.apache.hadoop.conf.Configuration conf,
java.lang.String name) |
void |
destroy()
Destroy the service.
|
java.util.Set<java.lang.String> |
getAppTypes() |
EventQueue |
getEventQueue() |
java.lang.Class<? extends Service> |
getInterface()
Return the public interface of the service.
|
void |
init(Services services)
Initialize the service.
|
static boolean |
isEnabled() |
boolean |
isSupportedApptype(java.lang.String appType) |
java.lang.String |
listEventListeners() |
void |
queueEvent(org.apache.oozie.client.event.Event event) |
void |
setAppTypes(java.util.Set<java.lang.String> types) |
public static final java.lang.String CONF_PREFIX
public static final java.lang.String CONF_QUEUE_SIZE
public static final java.lang.String CONF_EVENT_QUEUE
public static final java.lang.String CONF_LISTENERS
public static final java.lang.String CONF_FILTER_APP_TYPES
public static final java.lang.String CONF_BATCH_SIZE
public static final java.lang.String CONF_WORKER_THREADS
public static final java.lang.String CONF_WORKER_INTERVAL
public EventHandlerService()
public void init(Services services) throws ServiceException
ServiceService singleton at start up time.init in interface Serviceservices - services singleton initializing the service.ServiceException - thrown if the service could not initialize.public void addEventListener(java.lang.Object listener, org.apache.hadoop.conf.Configuration conf, java.lang.String name) throws java.lang.Exception
java.lang.Exceptionpublic static boolean isEnabled()
public void destroy()
ServiceService singleton at shutdown time.public java.lang.Class<? extends Service> getInterface()
ServicegetInterface in interface Servicepublic boolean isSupportedApptype(java.lang.String appType)
public void setAppTypes(java.util.Set<java.lang.String> types)
public java.util.Set<java.lang.String> getAppTypes()
public java.lang.String listEventListeners()
public void queueEvent(org.apache.oozie.client.event.Event event)
public EventQueue getEventQueue()
Copyright © 2017 Apache Software Foundation. All Rights Reserved.