commit | 0efc9062d0ea5014082a25bafcca50b69eb0efe0 | [log] [tgz] |
---|---|---|
author | Brian O'Connor <bocon@onlab.us> | Tue Sep 02 14:47:28 2014 -0700 |
committer | Saurav Das <sauravdas@alumni.stanford.edu> | Fri Sep 05 11:47:26 2014 -0700 |
tree | 0b8fe12632f824ac3a788a52ce1710c9fe71d4aa | |
parent | d8fd2f54639bd71334ec21211e3e2d014d626168 [diff] [blame] |
Updating MatchAction objects with no-arg constructors and registering them with Kryo Change-Id: I3512b2e99624c3f496d786ea99133b385a35094e
diff --git a/src/main/java/net/onrc/onos/core/matchaction/SwitchResult.java b/src/main/java/net/onrc/onos/core/matchaction/SwitchResult.java index 6faaa0d..b5db2e8 100644 --- a/src/main/java/net/onrc/onos/core/matchaction/SwitchResult.java +++ b/src/main/java/net/onrc/onos/core/matchaction/SwitchResult.java
@@ -7,7 +7,7 @@ private Status status; private MatchActionOperationsId matchSetId; - protected enum Status { + public enum Status { SUCCESS, FAILURE, UNKNOWN @@ -19,6 +19,13 @@ this.matchSetId = match; } + /** + * no-arg constructor for Kryo. + */ + protected SwitchResult() { + + } + protected void setStatus(Status newStatus) { this.status = newStatus; }