m-chrzan.xyz
aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMagdalena Grodzińska <mag.grodzinska@gmail.com>2020-01-13 22:11:22 +0100
committerMagdalena Grodzińska <mag.grodzinska@gmail.com>2020-01-13 22:11:22 +0100
commit12175874524e19d999880302c66b7242de47e482 (patch)
tree1d57dc8cdfc06c77e3574005645c9889c8b5dded
parent8103eb7e174c7c0bb33316ae9499bbc0fbb62ea5 (diff)
Make query data serializable
-rw-r--r--src/main/java/pl/edu/mimuw/cloudatlas/ByteSerializer.java2
-rw-r--r--src/main/java/pl/edu/mimuw/cloudatlas/querysigner/QueryData.java4
2 files changed, 4 insertions, 2 deletions
diff --git a/src/main/java/pl/edu/mimuw/cloudatlas/ByteSerializer.java b/src/main/java/pl/edu/mimuw/cloudatlas/ByteSerializer.java
index 0a86c0d..ee7a6f0 100644
--- a/src/main/java/pl/edu/mimuw/cloudatlas/ByteSerializer.java
+++ b/src/main/java/pl/edu/mimuw/cloudatlas/ByteSerializer.java
@@ -9,6 +9,7 @@ import pl.edu.mimuw.cloudatlas.agent.modules.ModuleType;
import pl.edu.mimuw.cloudatlas.agent.modules.RecursiveScheduledTask;
import pl.edu.mimuw.cloudatlas.agent.modules.TimerScheduledTask;
import pl.edu.mimuw.cloudatlas.model.*;
+import pl.edu.mimuw.cloudatlas.querysigner.QueryData;
import java.io.ByteArrayInputStream;
import java.io.ByteArrayOutputStream;
@@ -161,6 +162,7 @@ public class ByteSerializer {
kryo.register(LinkedHashMap.class);
kryo.register(HashMap.class);
kryo.register(ModuleType.class);
+ kryo.register(QueryData.class);
}
public Object deserialize(byte[] packetData, Class objClass) {
diff --git a/src/main/java/pl/edu/mimuw/cloudatlas/querysigner/QueryData.java b/src/main/java/pl/edu/mimuw/cloudatlas/querysigner/QueryData.java
index 7a85d7c..7801a28 100644
--- a/src/main/java/pl/edu/mimuw/cloudatlas/querysigner/QueryData.java
+++ b/src/main/java/pl/edu/mimuw/cloudatlas/querysigner/QueryData.java
@@ -1,8 +1,8 @@
package pl.edu.mimuw.cloudatlas.querysigner;
-import pl.edu.mimuw.cloudatlas.interpreter.query.Absyn.Program;
+import java.io.Serializable;
-public class QueryData {
+public class QueryData implements Serializable {
// Original source code
private String code;
// Query signature