Project

General

Profile

1
package eu.dnetlib.enabling.tools.blackboard;
2

    
3
/**
4
 * Helper component used to bridge the high level blackboard job handling from the low level blackboard protocol based
5
 * on notifications and blackboard messages.
6
 *
7
 * @author marko
8
 */
9
public interface BlackboardServerHandler extends BlackboardHandler {
10

    
11
	/**
12
	 * Sets the ongoing action status to the given job, publishing this new state.
13
	 *
14
	 * @param job blackboard job
15
	 */
16
	void ongoing(BlackboardJob job);
17

    
18
	/**
19
	 * Sets the "failed" action status to the given job, publishing this new state along with the error message obtained
20
	 * from the exception.
21
	 *
22
	 * @param job       blackboard job
23
	 * @param exception exception which caused the failure
24
	 */
25
	void failed(BlackboardJob job, Throwable exception);
26

    
27
	/**
28
	 * Set the "done" action status to the given job, publishing the new state.
29
	 *
30
	 * @param job blackboard job
31
	 */
32
	void done(BlackboardJob job);
33
}
(20-20/27)