Package hudson.remoting
Class EngineListenerSplitter
- java.lang.Object
-
- hudson.remoting.EngineListenerSplitter
-
- All Implemented Interfaces:
EngineListener
public class EngineListenerSplitter extends Object implements EngineListener
EngineListener
that distributes callbacks.- Since:
- 2.36
- Author:
- Kohsuke Kawaguchi
-
-
Field Summary
Fields Modifier and Type Field Description protected List<EngineListener>
listeners
-
Constructor Summary
Constructors Constructor Description EngineListenerSplitter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
add(EngineListener el)
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
remove(EngineListener el)
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.
-
-
-
Field Detail
-
listeners
protected final List<EngineListener> listeners
-
-
Method Detail
-
add
public void add(EngineListener el)
-
remove
public void remove(EngineListener el)
-
status
public void status(String msg)
Description copied from interface:EngineListener
Status message that indicates the progress of the operation.- Specified by:
status
in interfaceEngineListener
-
status
public void status(String msg, Throwable t)
Description copied from interface:EngineListener
Status message, with additional stack trace that indicates an error that was recovered.- Specified by:
status
in interfaceEngineListener
-
error
public void error(Throwable t)
Description copied from interface:EngineListener
Fatal error that's non recoverable.- Specified by:
error
in interfaceEngineListener
-
onDisconnect
public void onDisconnect()
Description copied from interface:EngineListener
Called when a connection is terminated.- Specified by:
onDisconnect
in interfaceEngineListener
-
onReconnect
public void onReconnect()
Description copied from interface:EngineListener
Called when a re-connection is about to be attempted.- Specified by:
onReconnect
in interfaceEngineListener
-
-