From c9a84787cd8d3ebb142b11096c5693ca44cfcff2 Mon Sep 17 00:00:00 2001 From: Marcin Chrzanowski Date: Mon, 30 Dec 2019 14:24:22 +0100 Subject: Implement ZMI removals in Stanik --- src/main/java/pl/edu/mimuw/cloudatlas/agent/messages/StanikMessage.java | 1 + 1 file changed, 1 insertion(+) (limited to 'src/main/java/pl/edu/mimuw/cloudatlas/agent/messages') diff --git a/src/main/java/pl/edu/mimuw/cloudatlas/agent/messages/StanikMessage.java b/src/main/java/pl/edu/mimuw/cloudatlas/agent/messages/StanikMessage.java index b23f6e0..d86de4a 100644 --- a/src/main/java/pl/edu/mimuw/cloudatlas/agent/messages/StanikMessage.java +++ b/src/main/java/pl/edu/mimuw/cloudatlas/agent/messages/StanikMessage.java @@ -6,6 +6,7 @@ import pl.edu.mimuw.cloudatlas.agent.modules.ModuleType; public abstract class StanikMessage extends AgentMessage { public enum Type { GET_STATE, + REMOVE_ZMI, UPDATE_ATTRIBUTES, UPDATE_QUERIES } -- cgit v1.2.3 From 4def2fc74f86df8eb15ef8ecd6b0ed37e83f0803 Mon Sep 17 00:00:00 2001 From: Marcin Chrzanowski Date: Mon, 30 Dec 2019 14:27:02 +0100 Subject: Add zmi removal message --- .../agent/messages/RemoveZMIMessage.java | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 src/main/java/pl/edu/mimuw/cloudatlas/agent/messages/RemoveZMIMessage.java (limited to 'src/main/java/pl/edu/mimuw/cloudatlas/agent/messages') diff --git a/src/main/java/pl/edu/mimuw/cloudatlas/agent/messages/RemoveZMIMessage.java b/src/main/java/pl/edu/mimuw/cloudatlas/agent/messages/RemoveZMIMessage.java new file mode 100644 index 0000000..9330185 --- /dev/null +++ b/src/main/java/pl/edu/mimuw/cloudatlas/agent/messages/RemoveZMIMessage.java @@ -0,0 +1,22 @@ +package pl.edu.mimuw.cloudatlas.agent.messages; + +import pl.edu.mimuw.cloudatlas.model.ValueTime; + +public class RemoveZMIMessage extends StanikMessage { + private String pathName; + private ValueTime removalTimestamp; + + public RemoveZMIMessage(String messageId, long timestamp, String pathName, ValueTime removalTimestamp) { + super(messageId, timestamp, Type.REMOVE_ZMI); + this.pathName = pathName; + this.removalTimestamp = removalTimestamp; + } + + public String getPathName() { + return pathName; + } + + public ValueTime getRemovalTimestamp() { + return removalTimestamp; + } +} -- cgit v1.2.3