public class WorkflowCallbackService<V> extends WorkflowScheduledExecutorService<ScheduledExecutorService>
start() operation.| Modifier and Type | Field and Description |
|---|---|
protected static org.slf4j.Logger |
LOG |
| Constructor and Description |
|---|
WorkflowCallbackService(String name,
Callable<V> callback,
int delay,
boolean terminate)
Create an instance of the service
|
| Modifier and Type | Method and Description |
|---|---|
Exception |
getCallbackException()
Get the exception raised by a callback.
|
ScheduledFuture<V> |
getScheduledFuture() |
protected void |
serviceStart() |
protected void |
serviceStop()
Stop the service.
|
execute, getExecutor, setExecutor, stopExecutor, submitclose, getBlockers, getConfig, getFailureCause, getFailureState, getLifecycleHistory, getName, getServiceState, getStartTime, init, isInState, noteFailure, putBlocker, registerGlobalListener, registerServiceListener, removeBlocker, serviceInit, setConfig, start, stop, toString, unregisterGlobalListener, unregisterServiceListener, waitForServiceToStoppublic ScheduledFuture<V> getScheduledFuture()
protected void serviceStart()
throws Exception
serviceStart in class org.apache.hadoop.service.AbstractServiceExceptionprotected void serviceStop()
throws Exception
serviceStop in class WorkflowExecutorService<ScheduledExecutorService>Exception - exception.public Exception getCallbackException()
Copyright © 2014–2015 The Apache Software Foundation. All rights reserved.