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.IndexService;
|
7
|
|
8
|
@Blackboard(action = "FEED", serviceClass = IndexService.class)
|
9
|
public class UpdateIndexMessage implements ProgressProvider {
|
10
|
|
11
|
private String indexId;
|
12
|
private String backendId;
|
13
|
private String feedingType;
|
14
|
private ResultSet<String> resultset;
|
15
|
|
16
|
private int progressTotal = 0;
|
17
|
private int progressPosition = 0;
|
18
|
private boolean progressInaccurate = false;
|
19
|
|
20
|
public UpdateIndexMessage() {}
|
21
|
|
22
|
public UpdateIndexMessage(final String indexId, final String backendId, final String feedingType, final ResultSet<String> resultset) {
|
23
|
this.indexId = indexId;
|
24
|
this.backendId = backendId;
|
25
|
this.feedingType = feedingType;
|
26
|
this.resultset = resultset;
|
27
|
}
|
28
|
|
29
|
public String getIndexId() {
|
30
|
return indexId;
|
31
|
}
|
32
|
|
33
|
public void setIndexId(final String indexId) {
|
34
|
this.indexId = indexId;
|
35
|
}
|
36
|
|
37
|
public String getBackendId() {
|
38
|
return backendId;
|
39
|
}
|
40
|
|
41
|
public void setBackendId(final String backendId) {
|
42
|
this.backendId = backendId;
|
43
|
}
|
44
|
|
45
|
public String getFeedingType() {
|
46
|
return feedingType;
|
47
|
}
|
48
|
|
49
|
public void setFeedingType(final String feedingType) {
|
50
|
this.feedingType = feedingType;
|
51
|
}
|
52
|
|
53
|
public ResultSet<String> getResultset() {
|
54
|
return resultset;
|
55
|
}
|
56
|
|
57
|
public void setResultset(final ResultSet<String> resultset) {
|
58
|
this.resultset = resultset;
|
59
|
}
|
60
|
|
61
|
@Override
|
62
|
public int getProgressTotal() {
|
63
|
return progressTotal;
|
64
|
}
|
65
|
|
66
|
public void setProgressTotal(final int progressTotal) {
|
67
|
this.progressTotal = progressTotal;
|
68
|
}
|
69
|
|
70
|
@Override
|
71
|
public int getProgressPosition() {
|
72
|
return progressPosition;
|
73
|
}
|
74
|
|
75
|
public void setProgressPosition(final int progressPosition) {
|
76
|
this.progressPosition = progressPosition;
|
77
|
}
|
78
|
|
79
|
@Override
|
80
|
public boolean isProgressInaccurate() {
|
81
|
return progressInaccurate;
|
82
|
}
|
83
|
|
84
|
public void setProgressInaccurate(final boolean progressInaccurate) {
|
85
|
this.progressInaccurate = progressInaccurate;
|
86
|
}
|
87
|
|
88
|
}
|