4 * The listener interface for receiving signals from the
5 * {@link WebServiceWorkerI} about the state changes or new sub-jobs spawned.
7 * The {@link WebServiceWorkerListener} objects created from that interface are
8 * then registered with a worker objects using
9 * {@link WebServiceWorkerI#addListener} method. When an event occurs, a
10 * relevant method in the listener is invoked with the worker that emitted the
11 * signal as a first parameter and, optionally, followed by additional event
17 public interface WebServiceWorkerListener
20 * Called when the worker started successfully.
23 * worker that emitted the signal
25 void workerStarted(WebServiceWorkerI source);
28 * Called when the worker failed to start the jobs.
31 * worker that emitted the signal
33 void workerNotStarted(WebServiceWorkerI source);
36 * Called when the worker creates a new job
39 * worker that emitted the signal
43 void jobCreated(WebServiceWorkerI source, WSJob job);
46 * Called when polling the job results in an exception.
49 * worker that emitted the signal
53 * exception that occurred
55 void pollException(WebServiceWorkerI source, WSJob job, Exception e);
58 * Called when the polling has finished and the finalization process begun.
61 * worker that emitted the signal
63 void workerCompleting(WebServiceWorkerI source);
66 * Called when the worker completes its work.
69 * worker that emitted the signal
71 void workerCompleted(WebServiceWorkerI source);