From 12175874524e19d999880302c66b7242de47e482 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Magdalena=20Grodzi=C5=84ska?= Date: Mon, 13 Jan 2020 22:11:22 +0100 Subject: Make query data serializable --- src/main/java/pl/edu/mimuw/cloudatlas/ByteSerializer.java | 2 ++ src/main/java/pl/edu/mimuw/cloudatlas/querysigner/QueryData.java | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) (limited to 'src') 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 -- cgit v1.2.3