forked from D-Net/dnet-hadoop
WIP: collectorWorker error reporting, added report messages
This commit is contained in:
parent
1abe6d1ad7
commit
58288a95b8
|
@ -19,6 +19,8 @@ public class Message implements Serializable {
|
|||
|
||||
private Map<String, String> body;
|
||||
|
||||
public Message() {}
|
||||
|
||||
public Message(final MessageType messageType, final String workflowId) {
|
||||
this(messageType, workflowId, new LinkedHashMap<>());
|
||||
}
|
||||
|
@ -33,6 +35,10 @@ public class Message implements Serializable {
|
|||
return messageType;
|
||||
}
|
||||
|
||||
public void setMessageType(MessageType messageType) {
|
||||
this.messageType = messageType;
|
||||
}
|
||||
|
||||
public String getWorkflowId() {
|
||||
return workflowId;
|
||||
}
|
||||
|
|
|
@ -1,11 +1,12 @@
|
|||
|
||||
package eu.dnetlib.dhp.message;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.Optional;
|
||||
|
||||
import org.apache.commons.lang3.StringUtils;
|
||||
|
||||
public enum MessageType {
|
||||
public enum MessageType implements Serializable {
|
||||
|
||||
ONGOING, REPORT;
|
||||
|
||||
|
|
Loading…
Reference in New Issue