blob: 7b17109701c655999b43dba81ec49bfa8fb6580f [file] [log] [blame]
Thomas Vachuska4f1a60c2014-10-28 13:39:07 -07001/*
Ray Milkey34c95902015-04-15 09:47:53 -07002 * Copyright 2014-2015 Open Networking Laboratory
Thomas Vachuska4f1a60c2014-10-28 13:39:07 -07003 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
Brian O'Connorabafb502014-12-02 22:26:20 -080016package org.onosproject.store.serializers;
Yuta HIGUCHI03fec1f2014-10-03 09:13:50 -070017
Jonathan Hart45727852015-01-28 13:35:54 -080018import com.google.common.collect.ImmutableList;
19import com.google.common.collect.ImmutableMap;
20import com.google.common.collect.ImmutableSet;
jcc3d4e14a2015-04-21 11:32:05 +080021
Jonathan Hart45727852015-01-28 13:35:54 -080022import org.onlab.packet.ChassisId;
23import org.onlab.packet.Ip4Address;
24import org.onlab.packet.Ip4Prefix;
25import org.onlab.packet.Ip6Address;
26import org.onlab.packet.Ip6Prefix;
27import org.onlab.packet.IpAddress;
28import org.onlab.packet.IpPrefix;
29import org.onlab.packet.MacAddress;
30import org.onlab.packet.VlanId;
31import org.onlab.util.KryoNamespace;
Thomas Vachuska90b453f2015-01-30 18:57:14 -080032import org.onosproject.app.ApplicationState;
Brian O'Connorabafb502014-12-02 22:26:20 -080033import org.onosproject.cluster.ControllerNode;
34import org.onosproject.cluster.DefaultControllerNode;
35import org.onosproject.cluster.Leadership;
36import org.onosproject.cluster.LeadershipEvent;
37import org.onosproject.cluster.NodeId;
38import org.onosproject.cluster.RoleInfo;
Thomas Vachuska90b453f2015-01-30 18:57:14 -080039import org.onosproject.core.DefaultApplication;
Brian O'Connorabafb502014-12-02 22:26:20 -080040import org.onosproject.core.DefaultApplicationId;
41import org.onosproject.core.DefaultGroupId;
Thomas Vachuska90b453f2015-01-30 18:57:14 -080042import org.onosproject.core.Version;
Brian O'Connorabafb502014-12-02 22:26:20 -080043import org.onosproject.mastership.MastershipTerm;
44import org.onosproject.net.ConnectPoint;
45import org.onosproject.net.DefaultAnnotations;
46import org.onosproject.net.DefaultDevice;
47import org.onosproject.net.DefaultEdgeLink;
48import org.onosproject.net.DefaultLink;
49import org.onosproject.net.DefaultPath;
50import org.onosproject.net.DefaultPort;
51import org.onosproject.net.Device;
52import org.onosproject.net.DeviceId;
53import org.onosproject.net.Element;
54import org.onosproject.net.HostId;
55import org.onosproject.net.HostLocation;
56import org.onosproject.net.Link;
57import org.onosproject.net.LinkKey;
58import org.onosproject.net.Port;
59import org.onosproject.net.PortNumber;
60import org.onosproject.net.device.DefaultDeviceDescription;
61import org.onosproject.net.device.DefaultPortDescription;
62import org.onosproject.net.flow.CompletedBatchOperation;
63import org.onosproject.net.flow.DefaultFlowEntry;
64import org.onosproject.net.flow.DefaultFlowRule;
65import org.onosproject.net.flow.DefaultTrafficSelector;
66import org.onosproject.net.flow.DefaultTrafficTreatment;
67import org.onosproject.net.flow.FlowEntry;
68import org.onosproject.net.flow.FlowId;
Brian O'Connor72cb19a2015-01-16 16:14:41 -080069import org.onosproject.net.flow.FlowRule;
Brian O'Connorabafb502014-12-02 22:26:20 -080070import org.onosproject.net.flow.FlowRuleBatchEntry;
Brian O'Connor72cb19a2015-01-16 16:14:41 -080071import org.onosproject.net.flow.FlowRuleBatchEvent;
Brian O'Connorabafb502014-12-02 22:26:20 -080072import org.onosproject.net.flow.FlowRuleBatchOperation;
Brian O'Connor72cb19a2015-01-16 16:14:41 -080073import org.onosproject.net.flow.FlowRuleBatchRequest;
jcc3d4e14a2015-04-21 11:32:05 +080074import org.onosproject.net.flow.FlowRuleExtPayLoad;
Brian O'Connorabafb502014-12-02 22:26:20 -080075import org.onosproject.net.flow.StoredFlowEntry;
76import org.onosproject.net.flow.criteria.Criteria;
77import org.onosproject.net.flow.criteria.Criterion;
78import org.onosproject.net.flow.instructions.Instructions;
79import org.onosproject.net.flow.instructions.L0ModificationInstruction;
80import org.onosproject.net.flow.instructions.L2ModificationInstruction;
81import org.onosproject.net.flow.instructions.L3ModificationInstruction;
82import org.onosproject.net.host.DefaultHostDescription;
83import org.onosproject.net.host.HostDescription;
84import org.onosproject.net.intent.ConnectivityIntent;
Brian O'Connora7515372015-03-25 14:45:34 -070085import org.onosproject.net.intent.FlowRuleIntent;
Brian O'Connorabafb502014-12-02 22:26:20 -080086import org.onosproject.net.intent.HostToHostIntent;
87import org.onosproject.net.intent.Intent;
88import org.onosproject.net.intent.IntentId;
89import org.onosproject.net.intent.IntentOperation;
Brian O'Connorabafb502014-12-02 22:26:20 -080090import org.onosproject.net.intent.IntentState;
Jonathan Hart5ec32ba2015-02-05 13:33:58 -080091import org.onosproject.net.intent.Key;
Brian O'Connorabafb502014-12-02 22:26:20 -080092import org.onosproject.net.intent.LinkCollectionIntent;
Michele Santuari4b6019e2014-12-19 11:31:45 +010093import org.onosproject.net.intent.MplsIntent;
94import org.onosproject.net.intent.MplsPathIntent;
Brian O'Connorabafb502014-12-02 22:26:20 -080095import org.onosproject.net.intent.MultiPointToSinglePointIntent;
96import org.onosproject.net.intent.OpticalConnectivityIntent;
97import org.onosproject.net.intent.OpticalPathIntent;
98import org.onosproject.net.intent.PathIntent;
99import org.onosproject.net.intent.PointToPointIntent;
Brian O'Connorabafb502014-12-02 22:26:20 -0800100import org.onosproject.net.intent.SinglePointToMultiPointIntent;
Jonathan Hart45727852015-01-28 13:35:54 -0800101import org.onosproject.net.intent.constraint.AnnotationConstraint;
Brian O'Connorabafb502014-12-02 22:26:20 -0800102import org.onosproject.net.intent.constraint.BandwidthConstraint;
103import org.onosproject.net.intent.constraint.BooleanConstraint;
104import org.onosproject.net.intent.constraint.LambdaConstraint;
105import org.onosproject.net.intent.constraint.LatencyConstraint;
106import org.onosproject.net.intent.constraint.LinkTypeConstraint;
107import org.onosproject.net.intent.constraint.ObstacleConstraint;
108import org.onosproject.net.intent.constraint.WaypointConstraint;
109import org.onosproject.net.link.DefaultLinkDescription;
110import org.onosproject.net.packet.DefaultOutboundPacket;
alshabib42947782015-03-31 14:59:06 -0700111import org.onosproject.net.packet.DefaultPacketRequest;
112import org.onosproject.net.packet.PacketPriority;
Brian O'Connorabafb502014-12-02 22:26:20 -0800113import org.onosproject.net.provider.ProviderId;
114import org.onosproject.net.resource.Bandwidth;
115import org.onosproject.net.resource.BandwidthResourceAllocation;
116import org.onosproject.net.resource.BandwidthResourceRequest;
117import org.onosproject.net.resource.DefaultLinkResourceAllocations;
118import org.onosproject.net.resource.DefaultLinkResourceRequest;
119import org.onosproject.net.resource.Lambda;
120import org.onosproject.net.resource.LambdaResourceAllocation;
121import org.onosproject.net.resource.LambdaResourceRequest;
122import org.onosproject.net.resource.LinkResourceRequest;
Michele Santuari4b6019e2014-12-19 11:31:45 +0100123import org.onosproject.net.resource.MplsLabel;
124import org.onosproject.net.resource.MplsLabelResourceAllocation;
125import org.onosproject.net.resource.MplsLabelResourceRequest;
Brian O'Connorabafb502014-12-02 22:26:20 -0800126import org.onosproject.store.Timestamp;
Madan Jampanie97fec42015-02-17 10:53:42 -0800127import org.onosproject.store.service.Versioned;
Yuta HIGUCHI03fec1f2014-10-03 09:13:50 -0700128
Jonathan Hart45727852015-01-28 13:35:54 -0800129import java.net.URI;
130import java.time.Duration;
131import java.util.ArrayList;
132import java.util.Arrays;
133import java.util.Collections;
134import java.util.HashMap;
135import java.util.HashSet;
136import java.util.LinkedList;
137import java.util.Optional;
Yuta HIGUCHI47c40882014-10-10 18:44:37 -0700138
Yuta HIGUCHI8d143d22014-10-19 23:15:09 -0700139public final class KryoNamespaces {
Yuta HIGUCHI03fec1f2014-10-03 09:13:50 -0700140
Yuta HIGUCHI1aa249c2014-11-05 17:40:28 -0800141 public static final KryoNamespace BASIC = KryoNamespace.newBuilder()
Yuta HIGUCHI91768e32014-11-22 05:06:35 -0800142 .nextId(KryoNamespace.FLOATING_ID)
143 .register(byte[].class)
144 .register(new ImmutableListSerializer(),
145 ImmutableList.class,
146 ImmutableList.of(1).getClass(),
147 ImmutableList.of(1, 2).getClass())
148 .register(new ImmutableSetSerializer(),
149 ImmutableSet.class,
150 ImmutableSet.of().getClass(),
151 ImmutableSet.of(1).getClass(),
152 ImmutableSet.of(1, 2).getClass())
153 .register(new ImmutableMapSerializer(),
154 ImmutableMap.class,
155 ImmutableMap.of().getClass(),
156 ImmutableMap.of("a", 1).getClass(),
157 ImmutableMap.of("R", 2, "D", 2).getClass())
158 .register(HashMap.class)
159 .register(ArrayList.class,
160 LinkedList.class,
161 HashSet.class
162 )
163 .register(new ArraysAsListSerializer(), Arrays.asList().getClass())
164 .register(Collections.singletonList(1).getClass())
165 .register(Duration.class)
Yuta HIGUCHIae1d2102014-11-25 19:26:01 -0800166 .register(Collections.emptySet().getClass())
Sho SHIMIZU166e61e2015-01-21 18:07:12 -0800167 .register(Optional.class)
Jonathan Hart45727852015-01-28 13:35:54 -0800168 .register(Collections.emptyList().getClass())
Brian O'Connor72cb19a2015-01-16 16:14:41 -0800169 .register(Collections.unmodifiableSet(Collections.emptySet()).getClass())
Yuta HIGUCHI1aa249c2014-11-05 17:40:28 -0800170 .build();
171
Yuta HIGUCHI03fec1f2014-10-03 09:13:50 -0700172 /**
Yuta HIGUCHI8d143d22014-10-19 23:15:09 -0700173 * KryoNamespace which can serialize ON.lab misc classes.
Yuta HIGUCHI03fec1f2014-10-03 09:13:50 -0700174 */
Yuta HIGUCHI8d143d22014-10-19 23:15:09 -0700175 public static final KryoNamespace MISC = KryoNamespace.newBuilder()
Yuta HIGUCHI91768e32014-11-22 05:06:35 -0800176 .nextId(KryoNamespace.FLOATING_ID)
177 .register(new IpPrefixSerializer(), IpPrefix.class)
178 .register(new Ip4PrefixSerializer(), Ip4Prefix.class)
179 .register(new Ip6PrefixSerializer(), Ip6Prefix.class)
180 .register(new IpAddressSerializer(), IpAddress.class)
181 .register(new Ip4AddressSerializer(), Ip4Address.class)
182 .register(new Ip6AddressSerializer(), Ip6Address.class)
183 .register(new MacAddressSerializer(), MacAddress.class)
Yuta HIGUCHI5fa3dc02014-10-15 17:08:13 -0700184 .register(VlanId.class)
Yuta HIGUCHI03fec1f2014-10-03 09:13:50 -0700185 .build();
186
Yuta HIGUCHI91768e32014-11-22 05:06:35 -0800187 /**
188 * Kryo registration Id for user custom registration.
189 */
190 public static final int BEGIN_USER_CUSTOM_ID = 300;
191
Yuta HIGUCHI03fec1f2014-10-03 09:13:50 -0700192 // TODO: Populate other classes
193 /**
Yuta HIGUCHI8d143d22014-10-19 23:15:09 -0700194 * KryoNamespace which can serialize API bundle classes.
Yuta HIGUCHI03fec1f2014-10-03 09:13:50 -0700195 */
Yuta HIGUCHI8d143d22014-10-19 23:15:09 -0700196 public static final KryoNamespace API = KryoNamespace.newBuilder()
Yuta HIGUCHI91768e32014-11-22 05:06:35 -0800197 .nextId(KryoNamespace.INITIAL_ID)
Yuta HIGUCHI1aa249c2014-11-05 17:40:28 -0800198 .register(BASIC)
Yuta HIGUCHI91768e32014-11-22 05:06:35 -0800199 .nextId(KryoNamespace.INITIAL_ID + 30)
200 .register(MISC)
201 .nextId(KryoNamespace.INITIAL_ID + 30 + 10)
Yuta HIGUCHI03fec1f2014-10-03 09:13:50 -0700202 .register(
Thomas Vachuska90b453f2015-01-30 18:57:14 -0800203 Version.class,
Yuta HIGUCHI03fec1f2014-10-03 09:13:50 -0700204 ControllerNode.State.class,
Thomas Vachuska90b453f2015-01-30 18:57:14 -0800205 ApplicationState.class,
206 DefaultApplication.class,
Yuta HIGUCHI03fec1f2014-10-03 09:13:50 -0700207 Device.Type.class,
Thomas Vachuskad16ce182014-10-29 17:25:29 -0700208 Port.Type.class,
alshabib7911a052014-10-16 17:49:37 -0700209 ChassisId.class,
Yuta HIGUCHI03fec1f2014-10-03 09:13:50 -0700210 DefaultAnnotations.class,
211 DefaultControllerNode.class,
212 DefaultDevice.class,
Madan Jampani53e44e62014-10-07 12:39:51 -0700213 DefaultDeviceDescription.class,
Madan Jampani2ff05592014-10-10 15:42:47 -0700214 DefaultLinkDescription.class,
Yuta HIGUCHI03fec1f2014-10-03 09:13:50 -0700215 Port.class,
Madan Jampani53e44e62014-10-07 12:39:51 -0700216 DefaultPortDescription.class,
Yuta HIGUCHI03fec1f2014-10-03 09:13:50 -0700217 Element.class,
Yuta HIGUCHI9ee60f62014-10-09 10:00:01 -0700218 Link.Type.class,
Thomas Vachuska57126fe2014-11-11 17:13:24 -0800219 Link.State.class,
Yuta HIGUCHI5fa3dc02014-10-15 17:08:13 -0700220 Timestamp.class,
Madan Jampani1ee91782014-11-20 20:24:24 -0800221 Leadership.class,
222 LeadershipEvent.class,
223 LeadershipEvent.Type.class,
Yuta HIGUCHI5fa3dc02014-10-15 17:08:13 -0700224 HostId.class,
225 HostDescription.class,
Madan Jampani38b250d2014-10-17 11:02:38 -0700226 DefaultHostDescription.class,
Madan Jampani117aaae2014-10-23 10:04:05 -0700227 DefaultFlowEntry.class,
228 StoredFlowEntry.class,
sangho11c30ac2015-01-22 14:30:55 -0800229 FlowRule.Type.class,
Yuta HIGUCHI2fcfde92014-10-20 18:37:14 -0700230 DefaultFlowRule.class,
alshabib3d643ec2014-10-22 18:33:00 -0700231 DefaultFlowEntry.class,
alshabib42947782015-03-31 14:59:06 -0700232 DefaultPacketRequest.class,
233 PacketPriority.class,
alshabibf6c2ede2014-10-22 23:31:50 -0700234 FlowEntry.FlowEntryState.class,
Yuta HIGUCHI2809bf32014-10-20 22:44:12 -0700235 FlowId.class,
Yuta HIGUCHI85d58d12014-10-20 23:59:44 -0700236 DefaultTrafficSelector.class,
237 Criteria.PortCriterion.class,
Pavlin Radoslavov1d218662015-02-13 11:34:30 -0800238 Criteria.MetadataCriterion.class,
Yuta HIGUCHI85d58d12014-10-20 23:59:44 -0700239 Criteria.EthCriterion.class,
240 Criteria.EthTypeCriterion.class,
Yuta HIGUCHI85d58d12014-10-20 23:59:44 -0700241 Criteria.VlanIdCriterion.class,
242 Criteria.VlanPcpCriterion.class,
Pavlin Radoslavov1d218662015-02-13 11:34:30 -0800243 Criteria.IPDscpCriterion.class,
244 Criteria.IPEcnCriterion.class,
245 Criteria.IPProtocolCriterion.class,
246 Criteria.IPCriterion.class,
Yuta HIGUCHI85d58d12014-10-20 23:59:44 -0700247 Criteria.TcpPortCriterion.class,
Pavlin Radoslavov1d218662015-02-13 11:34:30 -0800248 Criteria.UdpPortCriterion.class,
249 Criteria.SctpPortCriterion.class,
250 Criteria.IcmpTypeCriterion.class,
251 Criteria.IcmpCodeCriterion.class,
252 Criteria.IPv6FlowLabelCriterion.class,
253 Criteria.Icmpv6TypeCriterion.class,
254 Criteria.Icmpv6CodeCriterion.class,
255 Criteria.IPv6NDTargetAddressCriterion.class,
256 Criteria.IPv6NDLinkLayerAddressCriterion.class,
Praseed Balakrishnandb8a9d22014-12-03 11:47:55 -0800257 Criteria.MplsCriterion.class,
Pavlin Radoslavov1d218662015-02-13 11:34:30 -0800258 Criteria.IPv6ExthdrFlagsCriterion.class,
259 Criteria.LambdaCriterion.class,
260 Criteria.OpticalSignalTypeCriterion.class,
Yuta HIGUCHI85d58d12014-10-20 23:59:44 -0700261 Criterion.class,
262 Criterion.Type.class,
263 DefaultTrafficTreatment.class,
264 Instructions.DropInstruction.class,
Yuta HIGUCHI40d01772014-10-21 00:08:44 -0700265 Instructions.OutputInstruction.class,
Pavlin Radoslavov1d218662015-02-13 11:34:30 -0800266 Instructions.GroupInstruction.class,
Jonathan Hart68fef9d2014-10-29 17:30:03 -0700267 L0ModificationInstruction.class,
268 L0ModificationInstruction.L0SubType.class,
269 L0ModificationInstruction.ModLambdaInstruction.class,
270 L2ModificationInstruction.class,
271 L2ModificationInstruction.L2SubType.class,
272 L2ModificationInstruction.ModEtherInstruction.class,
Pavlin Radoslavov1d218662015-02-13 11:34:30 -0800273 L2ModificationInstruction.PushHeaderInstructions.class,
Jonathan Hart68fef9d2014-10-29 17:30:03 -0700274 L2ModificationInstruction.ModVlanIdInstruction.class,
275 L2ModificationInstruction.ModVlanPcpInstruction.class,
Pavlin Radoslavov1d218662015-02-13 11:34:30 -0800276 L2ModificationInstruction.ModMplsLabelInstruction.class,
277 L2ModificationInstruction.ModMplsTtlInstruction.class,
Jonathan Hart68fef9d2014-10-29 17:30:03 -0700278 L3ModificationInstruction.class,
279 L3ModificationInstruction.L3SubType.class,
280 L3ModificationInstruction.ModIPInstruction.class,
Pavlin Radoslavovfebe82c2015-02-11 19:08:15 -0800281 L3ModificationInstruction.ModIPv6FlowLabelInstruction.class,
Pavlin Radoslavov1d218662015-02-13 11:34:30 -0800282 L3ModificationInstruction.ModTtlInstruction.class,
Yuta HIGUCHI9def0472014-10-23 15:51:10 -0700283 RoleInfo.class,
Brian O'Connor72cb19a2015-01-16 16:14:41 -0800284 FlowRuleBatchEvent.class,
285 FlowRuleBatchEvent.Type.class,
286 FlowRuleBatchRequest.class,
Yuta HIGUCHI9def0472014-10-23 15:51:10 -0700287 FlowRuleBatchOperation.class,
288 CompletedBatchOperation.class,
289 FlowRuleBatchEntry.class,
Yuta HIGUCHI087019b2014-10-28 21:07:56 -0700290 FlowRuleBatchEntry.FlowRuleOperation.class,
291 IntentId.class,
292 IntentState.class,
Brian O'Connor4e6c17d2015-02-19 11:40:05 -0800293 //Key.class, is abstract
294 Key.of(1L, new DefaultApplicationId(0, "bar")).getClass(), //LongKey.class
295 Key.of("foo", new DefaultApplicationId(0, "bar")).getClass(), //StringKey.class
Yuta HIGUCHI087019b2014-10-28 21:07:56 -0700296 Intent.class,
297 ConnectivityIntent.class,
298 PathIntent.class,
299 DefaultPath.class,
300 DefaultEdgeLink.class,
301 HostToHostIntent.class,
302 PointToPointIntent.class,
Jonathan Hart68fef9d2014-10-29 17:30:03 -0700303 MultiPointToSinglePointIntent.class,
Michele Santuari4a338072014-11-05 18:38:55 +0100304 SinglePointToMultiPointIntent.class,
Brian O'Connora7515372015-03-25 14:45:34 -0700305 FlowRuleIntent.class,
Brian O'Connor41718fc2014-10-30 16:57:21 -0700306 LinkCollectionIntent.class,
307 OpticalConnectivityIntent.class,
308 OpticalPathIntent.class,
Thomas Vachuska7d0032b2014-11-04 17:39:57 -0800309 LinkResourceRequest.class,
Yuta HIGUCHIadac04a2014-11-13 00:02:45 -0800310 DefaultLinkResourceRequest.class,
311 BandwidthResourceRequest.class,
312 LambdaResourceRequest.class,
Thomas Vachuska7d0032b2014-11-04 17:39:57 -0800313 Lambda.class,
314 Bandwidth.class,
Yuta HIGUCHIadac04a2014-11-13 00:02:45 -0800315 DefaultLinkResourceAllocations.class,
316 BandwidthResourceAllocation.class,
317 LambdaResourceAllocation.class,
Sho SHIMIZUcd4bac82014-11-11 17:07:25 -0800318 // Constraints
Thomas Vachuska7d0032b2014-11-04 17:39:57 -0800319 LambdaConstraint.class,
320 BandwidthConstraint.class,
321 LinkTypeConstraint.class,
Sho SHIMIZUcd4bac82014-11-11 17:07:25 -0800322 LatencyConstraint.class,
323 WaypointConstraint.class,
324 ObstacleConstraint.class,
325 AnnotationConstraint.class,
Brian O'Connor72a034c2014-11-26 18:24:23 -0800326 BooleanConstraint.class,
jcc3d4e14a2015-04-21 11:32:05 +0800327 IntentOperation.class,
328 FlowRuleExtPayLoad.class
Yuta HIGUCHI03fec1f2014-10-03 09:13:50 -0700329 )
Yuta HIGUCHI91768e32014-11-22 05:06:35 -0800330 .register(new DefaultApplicationIdSerializer(), DefaultApplicationId.class)
331 .register(new URISerializer(), URI.class)
332 .register(new NodeIdSerializer(), NodeId.class)
333 .register(new ProviderIdSerializer(), ProviderId.class)
334 .register(new DeviceIdSerializer(), DeviceId.class)
335 .register(new PortNumberSerializer(), PortNumber.class)
336 .register(new DefaultPortSerializer(), DefaultPort.class)
337 .register(new LinkKeySerializer(), LinkKey.class)
338 .register(new ConnectPointSerializer(), ConnectPoint.class)
339 .register(new DefaultLinkSerializer(), DefaultLink.class)
340 .register(new MastershipTermSerializer(), MastershipTerm.class)
341 .register(new HostLocationSerializer(), HostLocation.class)
342 .register(new DefaultOutboundPacketSerializer(), DefaultOutboundPacket.class)
Madan Jampanie97fec42015-02-17 10:53:42 -0800343 .register(Versioned.class)
Yuta HIGUCHIf6171232014-11-25 15:14:44 -0800344 .register(DefaultGroupId.class)
Michele Santuari4b6019e2014-12-19 11:31:45 +0100345 .register(
346 MplsIntent.class,
347 MplsPathIntent.class,
348 MplsLabelResourceAllocation.class,
349 MplsLabelResourceRequest.class,
350 MplsLabel.class,
sanghob35a6192015-04-01 13:05:26 -0700351 org.onlab.packet.MplsLabel.class,
352 org.onlab.packet.MPLS.class
Michele Santuari4b6019e2014-12-19 11:31:45 +0100353 )
Yuta HIGUCHI03fec1f2014-10-03 09:13:50 -0700354
355 .build();
356
357
358 // not to be instantiated
Yuta HIGUCHI8d143d22014-10-19 23:15:09 -0700359 private KryoNamespaces() {}
Yuta HIGUCHI03fec1f2014-10-03 09:13:50 -0700360}