WIP: collectorWorker error reporting, added report messages

This commit is contained in:
Claudio Atzori 2021-02-15 15:28:53 +01:00
parent 1abe6d1ad7
commit 58288a95b8
2 changed files with 8 additions and 1 deletions

View File

@ -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;
}

View File

@ -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;