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-07 19:54:05 -0700
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
74ebeff12660d9e56b6185ff71e08d1e5f22e776
74ebeff1
1 parent
b9c1e566
checkstyle fixes
Change-Id: I15af1a85632dc4907988f2503c327cd3ec31bc72
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
3 deletions
core/store/dist/src/main/java/org/onlab/onos/store/device/impl/InternalDeviceEventSerializer.java
core/store/dist/src/main/java/org/onlab/onos/store/device/impl/InternalPortEventSerializer.java
core/store/dist/src/main/java/org/onlab/onos/store/device/impl/InternalDeviceEventSerializer.java
View file @
74ebeff
...
...
@@ -35,7 +35,8 @@ public class InternalDeviceEventSerializer extends Serializer<InternalDeviceEven
Class
<
InternalDeviceEvent
>
type
)
{
ProviderId
providerId
=
(
ProviderId
)
kryo
.
readClassAndObject
(
input
);
DeviceId
deviceId
=
(
DeviceId
)
kryo
.
readClassAndObject
(
input
);
Timestamped
<
DeviceDescription
>
deviceDescription
=
(
Timestamped
<
DeviceDescription
>)
kryo
.
readClassAndObject
(
input
);
Timestamped
<
DeviceDescription
>
deviceDescription
=
(
Timestamped
<
DeviceDescription
>)
kryo
.
readClassAndObject
(
input
);
return
new
InternalDeviceEvent
(
providerId
,
deviceId
,
deviceDescription
);
}
...
...
core/store/dist/src/main/java/org/onlab/onos/store/device/impl/InternalPortEventSerializer.java
View file @
74ebeff
...
...
@@ -3,7 +3,6 @@ package org.onlab.onos.store.device.impl;
import
java.util.List
;
import
org.onlab.onos.net.DeviceId
;
import
org.onlab.onos.net.device.DeviceDescription
;
import
org.onlab.onos.net.device.PortDescription
;
import
org.onlab.onos.net.provider.ProviderId
;
import
org.onlab.onos.store.common.impl.Timestamped
;
...
...
@@ -38,7 +37,8 @@ public class InternalPortEventSerializer extends Serializer<InternalPortEvent> {
Class
<
InternalPortEvent
>
type
)
{
ProviderId
providerId
=
(
ProviderId
)
kryo
.
readClassAndObject
(
input
);
DeviceId
deviceId
=
(
DeviceId
)
kryo
.
readClassAndObject
(
input
);
Timestamped
<
List
<
PortDescription
>>
portDescriptions
=
(
Timestamped
<
List
<
PortDescription
>>)
kryo
.
readClassAndObject
(
input
);
Timestamped
<
List
<
PortDescription
>>
portDescriptions
=
(
Timestamped
<
List
<
PortDescription
>>)
kryo
.
readClassAndObject
(
input
);
return
new
InternalPortEvent
(
providerId
,
deviceId
,
portDescriptions
);
}
...
...
Please
register
or
login
to post a comment