Project

General

Profile

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

    
3
/**
4
 * Helpers for the blackboard protocol client.
5
 *
6
 * @author marko
7
 *
8
 */
9
public interface BlackboardClientHandler extends BlackboardHandler {
10
	/**
11
	 * Create a new job.
12
	 *
13
	 * @param serviceId service identifier
14
	 * @return newly created blackboard job
15
	 */
16
	BlackboardJob newJob(String serviceId);
17

    
18
	/**
19
	 * Assign a blackboard job to a service.
20
	 *
21
	 * @param job blackboard job to send
22
	 */
23
	void assign(BlackboardJob job);
24

    
25
	/**
26
	 * The client can delete the job after it has reached a final state
27
	 * or the job timeout has expired.
28
	 *
29
	 * @param job blackboard job to delete.
30
	 */
31
	void delete(BlackboardJob job);
32
}
(4-4/21)