T - Type of Eventpublic class EventDispatcher<T extends Event> extends org.apache.hadoop.service.AbstractService implements EventHandler<T>
| Constructor and Description |
|---|
EventDispatcher(EventHandler<T> handler,
String name) |
| Modifier and Type | Method and Description |
|---|---|
void |
disableExitOnError() |
protected long |
getEventProcessorId() |
void |
handle(T event) |
protected boolean |
isStopped() |
protected void |
serviceStart() |
protected void |
serviceStop() |
close, getBlockers, getConfig, getFailureCause, getFailureState, getLifecycleHistory, getName, getServiceState, getStartTime, init, isInState, noteFailure, putBlocker, registerGlobalListener, registerServiceListener, removeBlocker, serviceInit, setConfig, start, stop, toString, unregisterGlobalListener, unregisterServiceListener, waitForServiceToStoppublic EventDispatcher(EventHandler<T> handler, String name)
protected void serviceStart()
throws Exception
serviceStart in class org.apache.hadoop.service.AbstractServiceExceptionprotected void serviceStop()
throws Exception
serviceStop in class org.apache.hadoop.service.AbstractServiceExceptionpublic void handle(T event)
handle in interface EventHandler<T extends Event>public void disableExitOnError()
protected long getEventProcessorId()
protected boolean isStopped()
Copyright © 2008–2022 Apache Software Foundation. All rights reserved.