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/PacketConnectivityIntent.java b/src/main/java/net/onrc/onos/api/newintent/PacketConnectivityIntent.java index e03166c..f4eecf9 100644 --- a/src/main/java/net/onrc/onos/api/newintent/PacketConnectivityIntent.java +++ b/src/main/java/net/onrc/onos/api/newintent/PacketConnectivityIntent.java
@@ -55,6 +55,19 @@ } /** + * Constructor for serializer. + */ + protected PacketConnectivityIntent() { + super(); + this.srcSwitchPorts = null; + this.match = null; + this.dstSwitchPorts = null; + this.canSetupOpticalFlow = false; + this.idleTimeoutValue = 0; + this.hardTimeoutValue = 0; + } + + /** * Gets the set of source switch ports. * * @return the set of source switch ports.