Package hudson.remoting
Interface EngineListener
-
- All Known Implementing Classes:
EngineListenerAdapter
,EngineListenerSplitter
public interface EngineListener
Receives status notification fromEngine
.The callback will be invoked on a non-GUI thread, so if the implementation wants to touch Swing,
SwingUtilities.invokeLater(Runnable)
would be needed.To implement this interface outside this module, extend from
EngineListenerAdapter
instead to protect against method additions in the future.- Author:
- Kohsuke Kawaguchi
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
error(Throwable t)
Fatal error that's non recoverable.void
onDisconnect()
Called when a connection is terminated.void
onReconnect()
Called when a re-connection is about to be attempted.void
status(String msg)
Status message that indicates the progress of the operation.void
status(String msg, Throwable t)
Status message, with additional stack trace that indicates an error that was recovered.
-
-
-
Method Detail
-
status
void status(String msg)
Status message that indicates the progress of the operation.
-
status
void status(String msg, Throwable t)
Status message, with additional stack trace that indicates an error that was recovered.
-
error
void error(Throwable t)
Fatal error that's non recoverable.
-
onDisconnect
void onDisconnect()
Called when a connection is terminated.
-
onReconnect
void onReconnect()
Called when a re-connection is about to be attempted.- Since:
- 2.0
-
-