commit | 1674fb395c587e9b5c2de54ca2d92a1dfd31f1dc | [log] [tgz] |
---|---|---|
author | Sho SHIMIZU <shimizu.sho@jp.fujitsu.com> | Wed Aug 20 14:44:31 2014 -0700 |
committer | Saurav Das <sauravdas@alumni.stanford.edu> | Fri Sep 05 11:47:21 2014 -0700 |
tree | ab16ca5970ada58d83aa6641054b7a2fcb90d127 | |
parent | c127a5a3bd6441c3ac5c75c65fb6f43d320270f8 [diff] [blame] |
Support Kryo serialization for intent related types - Implement the protected constructors - Register the types in KryoFactory Change-Id: I14214ed1703a8e4b3145625732c74600fc0aba06
diff --git a/src/main/java/net/onrc/onos/api/newintent/IntentEvent.java b/src/main/java/net/onrc/onos/api/newintent/IntentEvent.java index 670e87e..3dcf2a8 100644 --- a/src/main/java/net/onrc/onos/api/newintent/IntentEvent.java +++ b/src/main/java/net/onrc/onos/api/newintent/IntentEvent.java
@@ -33,6 +33,16 @@ } /** + * Constructor for serializer. + */ + protected IntentEvent() { + this.intent = null; + this.state = null; + this.previous = null; + this.time = 0; + } + + /** * Returns the state of the intent which caused the event. * * @return the state of the intent