Project

General

Profile

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

    
3
/**
4
 * Callback interface for serverside blackboard actions.
5
 * <p>
6
 * <p>
7
 * Actions should use the 'handler' methods to set the 'ongoing' or 'done' status.
8
 * </p>
9
 * <p>
10
 * <p>
11
 * failed status is automatically set upon catching an exception thrown by this interface, so feel free to simply throw
12
 * whatever you want
13
 * </p>
14
 *
15
 * @param <X>
16
 * @author marko
17
 */
18
public interface BlackboardServerAction<X extends Enum<?>> {
19

    
20
	void execute(BlackboardServerHandler handler, BlackboardJob job) throws Exception;
21
}
(17-17/27)