Toggle navigation
Toggle navigation
This project
Loading...
Sign in
홍길동
/
onos
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
Yuta HIGUCHI
2014-10-20 18:37:14 -0700
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
2fcfde9f0d50575a86f9ca7b19ef5db9bd8384da
2fcfde9f
1 parent
bc3f7f71
Register FlowId to Kryo
Change-Id: Ic6bff17cff78f8b95350a97e89782e9c6ae8ce7e
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
1 deletions
core/store/serializers/src/main/java/org/onlab/onos/store/serializers/KryoNamespaces.java
core/store/serializers/src/test/java/org/onlab/onos/store/serializers/KryoSerializerTest.java
core/store/serializers/src/main/java/org/onlab/onos/store/serializers/KryoNamespaces.java
View file @
2fcfde9
...
...
@@ -26,6 +26,7 @@ import org.onlab.onos.net.PortNumber;
import
org.onlab.onos.net.device.DefaultDeviceDescription
;
import
org.onlab.onos.net.device.DefaultPortDescription
;
import
org.onlab.onos.net.flow.DefaultFlowRule
;
import
org.onlab.onos.net.flow.FlowId
;
import
org.onlab.onos.net.host.DefaultHostDescription
;
import
org.onlab.onos.net.host.HostDescription
;
import
org.onlab.onos.net.link.DefaultLinkDescription
;
...
...
@@ -86,7 +87,8 @@ public final class KryoNamespaces {
HostId
.
class
,
HostDescription
.
class
,
DefaultHostDescription
.
class
,
DefaultFlowRule
.
class
DefaultFlowRule
.
class
,
FlowId
.
class
)
.
register
(
URI
.
class
,
new
URISerializer
())
.
register
(
NodeId
.
class
,
new
NodeIdSerializer
())
...
...
core/store/serializers/src/test/java/org/onlab/onos/store/serializers/KryoSerializerTest.java
View file @
2fcfde9
...
...
@@ -25,6 +25,7 @@ import org.onlab.onos.net.Link;
import
org.onlab.onos.net.LinkKey
;
import
org.onlab.onos.net.PortNumber
;
import
org.onlab.onos.net.SparseAnnotations
;
import
org.onlab.onos.net.flow.FlowId
;
import
org.onlab.onos.net.provider.ProviderId
;
import
org.onlab.packet.ChassisId
;
import
org.onlab.packet.IpAddress
;
...
...
@@ -192,6 +193,11 @@ public class KryoSerializerTest {
}
@Test
public
void
testFlowId
()
{
testSerialized
(
FlowId
.
valueOf
(
0x12345678
L
));
}
@Test
public
void
testAnnotations
()
{
// Annotations does not have equals defined, manually test equality
final
byte
[]
a1Bytes
=
serializer
.
encode
(
A1
);
...
...
Please
register
or
login
to post a comment