1
|
package eu.dnetlib.rmi.blackboard;
|
2
|
|
3
|
import eu.dnetlib.common.ifaces.ProgressProvider;
|
4
|
import eu.dnetlib.enabling.annotations.Blackboard;
|
5
|
import eu.dnetlib.rmi.objects.resultSet.ResultSet;
|
6
|
import eu.dnetlib.rmi.soap.ObjectStoreService;
|
7
|
|
8
|
@Blackboard(action = "FEED", serviceClass = ObjectStoreService.class)
|
9
|
public class FeedObjectStoreMessage implements ProgressProvider {
|
10
|
|
11
|
private String id;
|
12
|
private String mime;
|
13
|
private ResultSet<String> resultset;
|
14
|
private int total = 0;
|
15
|
private int progressTotal = 0;
|
16
|
private int progressPosition = 0;
|
17
|
private boolean progressInaccurate = false;
|
18
|
|
19
|
public FeedObjectStoreMessage() {}
|
20
|
|
21
|
public FeedObjectStoreMessage(final String id, final String mime, final ResultSet<String> resultset) {
|
22
|
this.id = id;
|
23
|
this.mime = mime;
|
24
|
this.resultset = resultset;
|
25
|
}
|
26
|
|
27
|
public String getId() {
|
28
|
return id;
|
29
|
}
|
30
|
|
31
|
public void setId(final String id) {
|
32
|
this.id = id;
|
33
|
}
|
34
|
|
35
|
public String getMime() {
|
36
|
return mime;
|
37
|
}
|
38
|
|
39
|
public void setMime(final String mime) {
|
40
|
this.mime = mime;
|
41
|
}
|
42
|
|
43
|
public ResultSet<String> getResultset() {
|
44
|
return resultset;
|
45
|
}
|
46
|
|
47
|
public void setResultset(final ResultSet<String> resultset) {
|
48
|
this.resultset = resultset;
|
49
|
}
|
50
|
|
51
|
public int getTotal() {
|
52
|
return total;
|
53
|
}
|
54
|
|
55
|
public void setTotal(final int total) {
|
56
|
this.total = total;
|
57
|
}
|
58
|
|
59
|
@Override
|
60
|
public int getProgressTotal() {
|
61
|
return progressTotal;
|
62
|
}
|
63
|
|
64
|
@Override
|
65
|
public int getProgressPosition() {
|
66
|
return progressPosition;
|
67
|
}
|
68
|
|
69
|
@Override
|
70
|
public boolean isProgressInaccurate() {
|
71
|
return progressInaccurate;
|
72
|
}
|
73
|
|
74
|
public void setProgressInaccurate(final boolean progressInaccurate) {
|
75
|
this.progressInaccurate = progressInaccurate;
|
76
|
}
|
77
|
|
78
|
public void setProgressTotal(final int progressTotal) {
|
79
|
this.progressTotal = progressTotal;
|
80
|
}
|
81
|
|
82
|
public void setProgressPosition(final int progressPosition) {
|
83
|
this.progressPosition = progressPosition;
|
84
|
}
|
85
|
|
86
|
}
|