Hello there,
I am trying to use async APIs to start/stop Twill managed Yarn Application.
I am using onRunning() and onTerminated() APIs for this, but I don't see a
way of retrieving an error in case of failure
public void onTerminated(final Runnable runnable, Executor executor) {
this.addListener(new ServiceListenerAdapter() {
public void failed(State from, Throwable failure) {
runnable.run();
}
public void terminated(State from) {
runnable.run();
}
}, executor);
}
Is there is a way of retrieving "Throwable failure" ?
Or am I using wrong APIs?
Thanks