Thomas Vachuska | 4f1a60c | 2014-10-28 13:39:07 -0700 | [diff] [blame] | 1 | /* |
Brian O'Connor | a09fe5b | 2017-08-03 21:12:30 -0700 | [diff] [blame] | 2 | * Copyright 2014-present Open Networking Foundation |
Thomas Vachuska | 4f1a60c | 2014-10-28 13:39:07 -0700 | [diff] [blame] | 3 | * |
| 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'Connor | abafb50 | 2014-12-02 22:26:20 -0800 | [diff] [blame] | 16 | package org.onosproject.store.serializers; |
Yuta HIGUCHI | 03fec1f | 2014-10-03 09:13:50 -0700 | [diff] [blame] | 17 | |
Charles Chan | 6a7d367 | 2018-06-19 20:40:52 -0700 | [diff] [blame] | 18 | import com.esotericsoftware.kryo.serializers.ClosureSerializer; |
Jonathan Hart | ad0c302 | 2017-02-22 14:06:01 -0800 | [diff] [blame] | 19 | import com.google.common.collect.HashMultiset; |
Jonathan Hart | 4572785 | 2015-01-28 13:35:54 -0800 | [diff] [blame] | 20 | import com.google.common.collect.ImmutableList; |
| 21 | import com.google.common.collect.ImmutableMap; |
| 22 | import com.google.common.collect.ImmutableSet; |
Madan Jampani | 3ca9cb6 | 2015-07-21 11:35:44 -0700 | [diff] [blame] | 23 | import com.google.common.collect.Maps; |
Saurav Das | 9df5b7c | 2017-08-14 16:44:43 -0700 | [diff] [blame] | 24 | import com.google.common.collect.Sets; |
Jonathan Hart | 4572785 | 2015-01-28 13:35:54 -0800 | [diff] [blame] | 25 | import org.onlab.packet.ChassisId; |
alshabib | caf1ca2 | 2015-06-25 15:18:16 -0700 | [diff] [blame] | 26 | import org.onlab.packet.EthType; |
Jonathan Hart | 4572785 | 2015-01-28 13:35:54 -0800 | [diff] [blame] | 27 | import org.onlab.packet.Ip4Address; |
| 28 | import org.onlab.packet.Ip4Prefix; |
| 29 | import org.onlab.packet.Ip6Address; |
| 30 | import org.onlab.packet.Ip6Prefix; |
| 31 | import org.onlab.packet.IpAddress; |
| 32 | import org.onlab.packet.IpPrefix; |
| 33 | import org.onlab.packet.MacAddress; |
Hyunsun Moon | cf732fb | 2015-08-22 21:04:23 -0700 | [diff] [blame] | 34 | import org.onlab.packet.TpPort; |
Jonathan Hart | 4572785 | 2015-01-28 13:35:54 -0800 | [diff] [blame] | 35 | import org.onlab.packet.VlanId; |
Sho SHIMIZU | 63feca7 | 2015-05-07 10:44:25 -0700 | [diff] [blame] | 36 | import org.onlab.util.Bandwidth; |
Sho SHIMIZU | c0e010dd | 2016-05-02 14:46:22 -0700 | [diff] [blame] | 37 | import org.onlab.util.ClosedOpenRange; |
Marc De Leenheer | bb38235 | 2015-04-23 18:20:34 -0700 | [diff] [blame] | 38 | import org.onlab.util.Frequency; |
Carmelo Cascone | 17fc9e4 | 2016-05-31 11:29:21 -0700 | [diff] [blame] | 39 | import org.onlab.util.ImmutableByteSequence; |
Jonathan Hart | 4572785 | 2015-01-28 13:35:54 -0800 | [diff] [blame] | 40 | import org.onlab.util.KryoNamespace; |
Madan Jampani | 063949f | 2016-01-26 12:10:05 -0800 | [diff] [blame] | 41 | import org.onlab.util.Match; |
Thomas Vachuska | 90b453f | 2015-01-30 18:57:14 -0800 | [diff] [blame] | 42 | import org.onosproject.app.ApplicationState; |
Brian O'Connor | abafb50 | 2014-12-02 22:26:20 -0800 | [diff] [blame] | 43 | import org.onosproject.cluster.ControllerNode; |
| 44 | import org.onosproject.cluster.DefaultControllerNode; |
Madan Jampani | 39fff10 | 2016-02-14 13:17:28 -0800 | [diff] [blame] | 45 | import org.onosproject.cluster.Leader; |
Brian O'Connor | abafb50 | 2014-12-02 22:26:20 -0800 | [diff] [blame] | 46 | import org.onosproject.cluster.Leadership; |
| 47 | import org.onosproject.cluster.LeadershipEvent; |
| 48 | import org.onosproject.cluster.NodeId; |
| 49 | import org.onosproject.cluster.RoleInfo; |
Changhoon Yoon | 32b9370 | 2015-05-15 04:41:15 +0900 | [diff] [blame] | 50 | import org.onosproject.core.ApplicationRole; |
Thomas Vachuska | 90b453f | 2015-01-30 18:57:14 -0800 | [diff] [blame] | 51 | import org.onosproject.core.DefaultApplication; |
Brian O'Connor | abafb50 | 2014-12-02 22:26:20 -0800 | [diff] [blame] | 52 | import org.onosproject.core.DefaultApplicationId; |
Yi Tseng | fa394de | 2017-02-01 11:26:40 -0800 | [diff] [blame] | 53 | import org.onosproject.core.GroupId; |
Thomas Vachuska | 90b453f | 2015-01-30 18:57:14 -0800 | [diff] [blame] | 54 | import org.onosproject.core.Version; |
Madan Jampani | 39fff10 | 2016-02-14 13:17:28 -0800 | [diff] [blame] | 55 | import org.onosproject.event.Change; |
Brian O'Connor | ce2d8b5 | 2015-07-29 16:24:13 -0700 | [diff] [blame] | 56 | import org.onosproject.incubator.net.domain.IntentDomainId; |
Brian O'Connor | abafb50 | 2014-12-02 22:26:20 -0800 | [diff] [blame] | 57 | import org.onosproject.mastership.MastershipTerm; |
Marc De Leenheer | bb38235 | 2015-04-23 18:20:34 -0700 | [diff] [blame] | 58 | import org.onosproject.net.Annotations; |
Sho SHIMIZU | 014c33a | 2015-04-30 11:40:37 -0700 | [diff] [blame] | 59 | import org.onosproject.net.ChannelSpacing; |
Toru Furusawa | 72ee30c | 2016-01-08 13:29:04 -0800 | [diff] [blame] | 60 | import org.onosproject.net.CltSignalType; |
Brian O'Connor | abafb50 | 2014-12-02 22:26:20 -0800 | [diff] [blame] | 61 | import org.onosproject.net.ConnectPoint; |
| 62 | import org.onosproject.net.DefaultAnnotations; |
| 63 | import org.onosproject.net.DefaultDevice; |
| 64 | import org.onosproject.net.DefaultEdgeLink; |
Madan Jampani | 7058397 | 2015-06-30 11:25:05 -0700 | [diff] [blame] | 65 | import org.onosproject.net.DefaultHost; |
Brian O'Connor | abafb50 | 2014-12-02 22:26:20 -0800 | [diff] [blame] | 66 | import org.onosproject.net.DefaultLink; |
| 67 | import org.onosproject.net.DefaultPath; |
| 68 | import org.onosproject.net.DefaultPort; |
| 69 | import org.onosproject.net.Device; |
| 70 | import org.onosproject.net.DeviceId; |
| 71 | import org.onosproject.net.Element; |
Jonathan Hart | 26bd813 | 2016-04-13 10:39:55 -0700 | [diff] [blame] | 72 | import org.onosproject.net.EncapsulationType; |
Brian O'Connor | 562d9d3 | 2016-10-07 12:16:50 -0700 | [diff] [blame] | 73 | import org.onosproject.net.FilteredConnectPoint; |
Sho SHIMIZU | 014c33a | 2015-04-30 11:40:37 -0700 | [diff] [blame] | 74 | import org.onosproject.net.GridType; |
Brian O'Connor | abafb50 | 2014-12-02 22:26:20 -0800 | [diff] [blame] | 75 | import org.onosproject.net.HostId; |
| 76 | import org.onosproject.net.HostLocation; |
| 77 | import org.onosproject.net.Link; |
| 78 | import org.onosproject.net.LinkKey; |
Yuta HIGUCHI | eb28a7c | 2017-01-13 18:59:27 -0800 | [diff] [blame] | 79 | import org.onosproject.net.MarkerResource; |
Sho SHIMIZU | 91210a7 | 2015-04-29 12:54:28 -0700 | [diff] [blame] | 80 | import org.onosproject.net.OchSignal; |
Ayaka Koshibe | bcb0237 | 2015-06-01 10:56:42 -0700 | [diff] [blame] | 81 | import org.onosproject.net.OchSignalType; |
Yafit Hadar | 5796d97 | 2015-10-15 13:16:11 +0300 | [diff] [blame] | 82 | import org.onosproject.net.OduSignalId; |
Sho SHIMIZU | 91210a7 | 2015-04-29 12:54:28 -0700 | [diff] [blame] | 83 | import org.onosproject.net.OduSignalType; |
Rimon Ashkenazy | 8ebfff0 | 2016-02-01 11:56:36 +0200 | [diff] [blame] | 84 | import org.onosproject.net.OtuSignalType; |
Brian O'Connor | abafb50 | 2014-12-02 22:26:20 -0800 | [diff] [blame] | 85 | import org.onosproject.net.Port; |
| 86 | import org.onosproject.net.PortNumber; |
Luca Prete | 670ac5d | 2017-02-03 15:55:43 -0800 | [diff] [blame] | 87 | import org.onosproject.net.ResourceGroup; |
Rimon Ashkenazy | e2410ff | 2015-11-10 14:11:08 +0200 | [diff] [blame] | 88 | import org.onosproject.net.TributarySlot; |
Andreas Papazois | 0554896 | 2016-11-23 11:36:55 +0200 | [diff] [blame] | 89 | import org.onosproject.net.behaviour.protection.ProtectedTransportEndpointDescription; |
Brian O'Connor | abafb50 | 2014-12-02 22:26:20 -0800 | [diff] [blame] | 90 | import org.onosproject.net.device.DefaultDeviceDescription; |
| 91 | import org.onosproject.net.device.DefaultPortDescription; |
Thomas Vachuska | fdbc4c2 | 2015-05-29 15:53:01 -0700 | [diff] [blame] | 92 | import org.onosproject.net.device.DefaultPortStatistics; |
Thomas Vachuska | fdbc4c2 | 2015-05-29 15:53:01 -0700 | [diff] [blame] | 93 | import org.onosproject.net.device.PortStatistics; |
Michele Santuari | 38dd82e | 2017-01-04 09:23:49 +0100 | [diff] [blame] | 94 | import org.onosproject.net.domain.DomainIntent; |
Brian O'Connor | abafb50 | 2014-12-02 22:26:20 -0800 | [diff] [blame] | 95 | import org.onosproject.net.flow.CompletedBatchOperation; |
| 96 | import org.onosproject.net.flow.DefaultFlowEntry; |
| 97 | import org.onosproject.net.flow.DefaultFlowRule; |
Srikanth Vavilapalli | 95810f5 | 2015-09-14 15:49:56 -0700 | [diff] [blame] | 98 | import org.onosproject.net.flow.DefaultTableStatisticsEntry; |
Brian O'Connor | abafb50 | 2014-12-02 22:26:20 -0800 | [diff] [blame] | 99 | import org.onosproject.net.flow.DefaultTrafficSelector; |
| 100 | import org.onosproject.net.flow.DefaultTrafficTreatment; |
| 101 | import org.onosproject.net.flow.FlowEntry; |
| 102 | import org.onosproject.net.flow.FlowId; |
Murat Parlakisik | c6759e8 | 2016-06-29 03:22:22 -0700 | [diff] [blame] | 103 | import org.onosproject.net.flow.FlowRule; |
Cem Türker | 3baff67 | 2017-10-12 15:09:01 +0300 | [diff] [blame] | 104 | import org.onosproject.net.flow.FlowRuleEvent; |
| 105 | import org.onosproject.net.flow.FlowRuleExtPayLoad; |
| 106 | import org.onosproject.net.flow.IndexTableId; |
| 107 | import org.onosproject.net.flow.StatTriggerField; |
| 108 | import org.onosproject.net.flow.StatTriggerFlag; |
| 109 | import org.onosproject.net.flow.StoredFlowEntry; |
| 110 | import org.onosproject.net.flow.TableId; |
| 111 | import org.onosproject.net.flow.TableStatisticsEntry; |
Ray Milkey | 7bf273c | 2017-09-27 16:15:15 -0700 | [diff] [blame] | 112 | import org.onosproject.net.flow.oldbatch.FlowRuleBatchEntry; |
| 113 | import org.onosproject.net.flow.oldbatch.FlowRuleBatchEvent; |
| 114 | import org.onosproject.net.flow.oldbatch.FlowRuleBatchOperation; |
| 115 | import org.onosproject.net.flow.oldbatch.FlowRuleBatchRequest; |
Hyunsun Moon | c8fe98b | 2016-01-11 00:01:46 -0800 | [diff] [blame] | 116 | import org.onosproject.net.flow.criteria.ArpHaCriterion; |
| 117 | import org.onosproject.net.flow.criteria.ArpOpCriterion; |
| 118 | import org.onosproject.net.flow.criteria.ArpPaCriterion; |
Brian O'Connor | abafb50 | 2014-12-02 22:26:20 -0800 | [diff] [blame] | 119 | import org.onosproject.net.flow.criteria.Criterion; |
Sho SHIMIZU | fbc80e5 | 2015-04-28 10:41:58 -0700 | [diff] [blame] | 120 | import org.onosproject.net.flow.criteria.EthCriterion; |
| 121 | import org.onosproject.net.flow.criteria.EthTypeCriterion; |
Charles Chan | 14967c2 | 2015-12-07 11:11:50 -0800 | [diff] [blame] | 122 | import org.onosproject.net.flow.criteria.ExtensionCriterion; |
| 123 | import org.onosproject.net.flow.criteria.ExtensionSelectorType; |
Sho SHIMIZU | fbc80e5 | 2015-04-28 10:41:58 -0700 | [diff] [blame] | 124 | import org.onosproject.net.flow.criteria.IPCriterion; |
| 125 | import org.onosproject.net.flow.criteria.IPDscpCriterion; |
| 126 | import org.onosproject.net.flow.criteria.IPEcnCriterion; |
| 127 | import org.onosproject.net.flow.criteria.IPProtocolCriterion; |
| 128 | import org.onosproject.net.flow.criteria.IPv6ExthdrFlagsCriterion; |
| 129 | import org.onosproject.net.flow.criteria.IPv6FlowLabelCriterion; |
| 130 | import org.onosproject.net.flow.criteria.IPv6NDLinkLayerAddressCriterion; |
| 131 | import org.onosproject.net.flow.criteria.IPv6NDTargetAddressCriterion; |
| 132 | import org.onosproject.net.flow.criteria.IcmpCodeCriterion; |
| 133 | import org.onosproject.net.flow.criteria.IcmpTypeCriterion; |
| 134 | import org.onosproject.net.flow.criteria.Icmpv6CodeCriterion; |
| 135 | import org.onosproject.net.flow.criteria.Icmpv6TypeCriterion; |
| 136 | import org.onosproject.net.flow.criteria.LambdaCriterion; |
| 137 | import org.onosproject.net.flow.criteria.MetadataCriterion; |
Charles Chan | 7ba33f4 | 2015-12-15 19:27:30 -0800 | [diff] [blame] | 138 | import org.onosproject.net.flow.criteria.MplsBosCriterion; |
Sho SHIMIZU | fbc80e5 | 2015-04-28 10:41:58 -0700 | [diff] [blame] | 139 | import org.onosproject.net.flow.criteria.MplsCriterion; |
Sho SHIMIZU | 084c4ca | 2015-05-04 11:52:51 -0700 | [diff] [blame] | 140 | import org.onosproject.net.flow.criteria.OchSignalCriterion; |
Sho SHIMIZU | b5e6de6 | 2015-05-04 12:13:44 -0700 | [diff] [blame] | 141 | import org.onosproject.net.flow.criteria.OchSignalTypeCriterion; |
Yafit Hadar | 5796d97 | 2015-10-15 13:16:11 +0300 | [diff] [blame] | 142 | import org.onosproject.net.flow.criteria.OduSignalIdCriterion; |
| 143 | import org.onosproject.net.flow.criteria.OduSignalTypeCriterion; |
Carmelo Cascone | 72343c5 | 2017-09-05 17:37:10 +0200 | [diff] [blame] | 144 | import org.onosproject.net.flow.criteria.PiCriterion; |
Sho SHIMIZU | fbc80e5 | 2015-04-28 10:41:58 -0700 | [diff] [blame] | 145 | import org.onosproject.net.flow.criteria.PortCriterion; |
| 146 | import org.onosproject.net.flow.criteria.SctpPortCriterion; |
| 147 | import org.onosproject.net.flow.criteria.TcpPortCriterion; |
Hyunsun Moon | a08c5d0 | 2015-07-14 17:53:00 -0700 | [diff] [blame] | 148 | import org.onosproject.net.flow.criteria.TunnelIdCriterion; |
Sho SHIMIZU | fbc80e5 | 2015-04-28 10:41:58 -0700 | [diff] [blame] | 149 | import org.onosproject.net.flow.criteria.UdpPortCriterion; |
| 150 | import org.onosproject.net.flow.criteria.VlanIdCriterion; |
| 151 | import org.onosproject.net.flow.criteria.VlanPcpCriterion; |
alshabib | 880b644 | 2015-11-23 22:13:04 -0800 | [diff] [blame] | 152 | import org.onosproject.net.flow.instructions.ExtensionTreatmentType; |
Brian O'Connor | abafb50 | 2014-12-02 22:26:20 -0800 | [diff] [blame] | 153 | import org.onosproject.net.flow.instructions.Instructions; |
| 154 | import org.onosproject.net.flow.instructions.L0ModificationInstruction; |
Yafit Hadar | 5796d97 | 2015-10-15 13:16:11 +0300 | [diff] [blame] | 155 | import org.onosproject.net.flow.instructions.L1ModificationInstruction; |
Brian O'Connor | abafb50 | 2014-12-02 22:26:20 -0800 | [diff] [blame] | 156 | import org.onosproject.net.flow.instructions.L2ModificationInstruction; |
| 157 | import org.onosproject.net.flow.instructions.L3ModificationInstruction; |
Hyunsun Moon | c8bd97c | 2015-07-18 22:47:33 -0700 | [diff] [blame] | 158 | import org.onosproject.net.flow.instructions.L4ModificationInstruction; |
Carmelo Cascone | 72343c5 | 2017-09-05 17:37:10 +0200 | [diff] [blame] | 159 | import org.onosproject.net.flow.instructions.PiInstruction; |
Charles Chan | c72271f | 2016-04-05 15:15:27 -0700 | [diff] [blame] | 160 | import org.onosproject.net.flowobjective.DefaultFilteringObjective; |
| 161 | import org.onosproject.net.flowobjective.DefaultForwardingObjective; |
| 162 | import org.onosproject.net.flowobjective.DefaultNextObjective; |
Charles Chan | 6a7d367 | 2018-06-19 20:40:52 -0700 | [diff] [blame] | 163 | import org.onosproject.net.flowobjective.DefaultObjectiveContext; |
Charles Chan | c72271f | 2016-04-05 15:15:27 -0700 | [diff] [blame] | 164 | import org.onosproject.net.flowobjective.FilteringObjective; |
| 165 | import org.onosproject.net.flowobjective.ForwardingObjective; |
| 166 | import org.onosproject.net.flowobjective.NextObjective; |
| 167 | import org.onosproject.net.flowobjective.Objective; |
Charles Chan | 6a7d367 | 2018-06-19 20:40:52 -0700 | [diff] [blame] | 168 | import org.onosproject.net.flowobjective.ObjectiveError; |
Brian O'Connor | abafb50 | 2014-12-02 22:26:20 -0800 | [diff] [blame] | 169 | import org.onosproject.net.host.DefaultHostDescription; |
| 170 | import org.onosproject.net.host.HostDescription; |
| 171 | import org.onosproject.net.intent.ConnectivityIntent; |
Jonathan Hart | 6552b8d | 2016-04-12 14:21:50 -0700 | [diff] [blame] | 172 | import org.onosproject.net.intent.FlowObjectiveIntent; |
Brian O'Connor | a751537 | 2015-03-25 14:45:34 -0700 | [diff] [blame] | 173 | import org.onosproject.net.intent.FlowRuleIntent; |
Brian O'Connor | abafb50 | 2014-12-02 22:26:20 -0800 | [diff] [blame] | 174 | import org.onosproject.net.intent.HostToHostIntent; |
| 175 | import org.onosproject.net.intent.Intent; |
| 176 | import org.onosproject.net.intent.IntentId; |
| 177 | import org.onosproject.net.intent.IntentOperation; |
Brian O'Connor | abafb50 | 2014-12-02 22:26:20 -0800 | [diff] [blame] | 178 | import org.onosproject.net.intent.IntentState; |
Jonathan Hart | 5ec32ba | 2015-02-05 13:33:58 -0800 | [diff] [blame] | 179 | import org.onosproject.net.intent.Key; |
Brian O'Connor | abafb50 | 2014-12-02 22:26:20 -0800 | [diff] [blame] | 180 | import org.onosproject.net.intent.LinkCollectionIntent; |
| 181 | import org.onosproject.net.intent.MultiPointToSinglePointIntent; |
Marc De Leenheer | 8c2caac | 2015-05-28 16:37:33 -0700 | [diff] [blame] | 182 | import org.onosproject.net.intent.OpticalCircuitIntent; |
Brian O'Connor | abafb50 | 2014-12-02 22:26:20 -0800 | [diff] [blame] | 183 | import org.onosproject.net.intent.OpticalConnectivityIntent; |
Rimon Ashkenazy | 27438ff | 2016-03-22 15:57:45 +0200 | [diff] [blame] | 184 | import org.onosproject.net.intent.OpticalOduIntent; |
Brian O'Connor | abafb50 | 2014-12-02 22:26:20 -0800 | [diff] [blame] | 185 | import org.onosproject.net.intent.OpticalPathIntent; |
| 186 | import org.onosproject.net.intent.PathIntent; |
| 187 | import org.onosproject.net.intent.PointToPointIntent; |
Yuta HIGUCHI | b360bb0 | 2016-12-08 16:40:48 -0800 | [diff] [blame] | 188 | import org.onosproject.net.intent.ProtectedTransportIntent; |
Andreas Papazois | 0554896 | 2016-11-23 11:36:55 +0200 | [diff] [blame] | 189 | import org.onosproject.net.intent.ProtectionEndpointIntent; |
Brian O'Connor | abafb50 | 2014-12-02 22:26:20 -0800 | [diff] [blame] | 190 | import org.onosproject.net.intent.SinglePointToMultiPointIntent; |
Jonathan Hart | 4572785 | 2015-01-28 13:35:54 -0800 | [diff] [blame] | 191 | import org.onosproject.net.intent.constraint.AnnotationConstraint; |
Brian O'Connor | abafb50 | 2014-12-02 22:26:20 -0800 | [diff] [blame] | 192 | import org.onosproject.net.intent.constraint.BandwidthConstraint; |
| 193 | import org.onosproject.net.intent.constraint.BooleanConstraint; |
Pier Luigi | 02778b1 | 2017-09-11 17:51:13 +0200 | [diff] [blame] | 194 | import org.onosproject.net.intent.constraint.DomainConstraint; |
Jonathan Hart | 26bd813 | 2016-04-13 10:39:55 -0700 | [diff] [blame] | 195 | import org.onosproject.net.intent.constraint.EncapsulationConstraint; |
jaegonkim | 7e87663 | 2017-01-25 06:01:49 +0900 | [diff] [blame] | 196 | import org.onosproject.net.intent.constraint.HashedPathSelectionConstraint; |
Brian O'Connor | abafb50 | 2014-12-02 22:26:20 -0800 | [diff] [blame] | 197 | import org.onosproject.net.intent.constraint.LatencyConstraint; |
| 198 | import org.onosproject.net.intent.constraint.LinkTypeConstraint; |
Antonio Marsico | 4f68ec9 | 2017-03-09 11:16:32 +0100 | [diff] [blame] | 199 | import org.onosproject.net.intent.constraint.NonDisruptiveConstraint; |
Brian O'Connor | abafb50 | 2014-12-02 22:26:20 -0800 | [diff] [blame] | 200 | import org.onosproject.net.intent.constraint.ObstacleConstraint; |
Jonathan Hart | 96c5a4a | 2015-07-31 14:23:33 -0700 | [diff] [blame] | 201 | import org.onosproject.net.intent.constraint.PartialFailureConstraint; |
Yuta HIGUCHI | 625fb64 | 2016-09-01 16:10:24 -0700 | [diff] [blame] | 202 | import org.onosproject.net.intent.constraint.ProtectionConstraint; |
Brian O'Connor | abafb50 | 2014-12-02 22:26:20 -0800 | [diff] [blame] | 203 | import org.onosproject.net.intent.constraint.WaypointConstraint; |
| 204 | import org.onosproject.net.link.DefaultLinkDescription; |
Frank Wang | d7e3b4b | 2017-09-24 13:37:54 +0900 | [diff] [blame] | 205 | import org.onosproject.net.meter.MeterCellId; |
| 206 | import org.onosproject.net.meter.MeterCellId.MeterCellType; |
alshabib | 10c810b | 2015-08-18 16:59:04 -0700 | [diff] [blame] | 207 | import org.onosproject.net.meter.MeterId; |
Jian Li | 11260a0 | 2016-05-19 13:07:22 -0700 | [diff] [blame] | 208 | import org.onosproject.net.packet.DefaultOutboundPacket; |
| 209 | import org.onosproject.net.packet.DefaultPacketRequest; |
| 210 | import org.onosproject.net.packet.PacketPriority; |
Carmelo Cascone | 87892e2 | 2017-11-13 16:01:29 -0800 | [diff] [blame] | 211 | import org.onosproject.net.pi.model.PiActionId; |
| 212 | import org.onosproject.net.pi.model.PiActionParamId; |
| 213 | import org.onosproject.net.pi.model.PiActionProfileId; |
| 214 | import org.onosproject.net.pi.model.PiControlMetadataId; |
| 215 | import org.onosproject.net.pi.model.PiCounterId; |
| 216 | import org.onosproject.net.pi.model.PiCounterType; |
| 217 | import org.onosproject.net.pi.model.PiMatchFieldId; |
Carmelo Cascone | 72343c5 | 2017-09-05 17:37:10 +0200 | [diff] [blame] | 218 | import org.onosproject.net.pi.model.PiMatchType; |
Carmelo Cascone | 87892e2 | 2017-11-13 16:01:29 -0800 | [diff] [blame] | 219 | import org.onosproject.net.pi.model.PiMeterId; |
| 220 | import org.onosproject.net.pi.model.PiMeterType; |
| 221 | import org.onosproject.net.pi.model.PiPacketOperationType; |
Carmelo Cascone | 72343c5 | 2017-09-05 17:37:10 +0200 | [diff] [blame] | 222 | import org.onosproject.net.pi.model.PiPipeconfId; |
Carmelo Cascone | 87892e2 | 2017-11-13 16:01:29 -0800 | [diff] [blame] | 223 | import org.onosproject.net.pi.model.PiTableId; |
| 224 | import org.onosproject.net.pi.model.PiTableType; |
Carmelo Cascone | 72343c5 | 2017-09-05 17:37:10 +0200 | [diff] [blame] | 225 | import org.onosproject.net.pi.runtime.PiAction; |
| 226 | import org.onosproject.net.pi.runtime.PiActionGroup; |
Carmelo Cascone | 326ad2d | 2017-11-28 18:09:13 -0800 | [diff] [blame] | 227 | import org.onosproject.net.pi.runtime.PiActionGroupHandle; |
Carmelo Cascone | 72343c5 | 2017-09-05 17:37:10 +0200 | [diff] [blame] | 228 | import org.onosproject.net.pi.runtime.PiActionGroupId; |
| 229 | import org.onosproject.net.pi.runtime.PiActionGroupMember; |
| 230 | import org.onosproject.net.pi.runtime.PiActionGroupMemberId; |
Carmelo Cascone | 72343c5 | 2017-09-05 17:37:10 +0200 | [diff] [blame] | 231 | import org.onosproject.net.pi.runtime.PiActionParam; |
Carmelo Cascone | 87892e2 | 2017-11-13 16:01:29 -0800 | [diff] [blame] | 232 | import org.onosproject.net.pi.runtime.PiControlMetadata; |
| 233 | import org.onosproject.net.pi.runtime.PiCounterCellData; |
| 234 | import org.onosproject.net.pi.runtime.PiCounterCellId; |
Carmelo Cascone | 1a7e4f9 | 2017-11-20 23:04:02 -0800 | [diff] [blame] | 235 | import org.onosproject.net.pi.runtime.PiEntity; |
| 236 | import org.onosproject.net.pi.runtime.PiEntityType; |
Carmelo Cascone | 72343c5 | 2017-09-05 17:37:10 +0200 | [diff] [blame] | 237 | import org.onosproject.net.pi.runtime.PiExactFieldMatch; |
| 238 | import org.onosproject.net.pi.runtime.PiFieldMatch; |
Carmelo Cascone | 87b9b39 | 2017-10-02 18:33:20 +0200 | [diff] [blame] | 239 | import org.onosproject.net.pi.runtime.PiGroupKey; |
Carmelo Cascone | 326ad2d | 2017-11-28 18:09:13 -0800 | [diff] [blame] | 240 | import org.onosproject.net.pi.runtime.PiHandle; |
Carmelo Cascone | 72343c5 | 2017-09-05 17:37:10 +0200 | [diff] [blame] | 241 | import org.onosproject.net.pi.runtime.PiLpmFieldMatch; |
| 242 | import org.onosproject.net.pi.runtime.PiMatchKey; |
Frank Wang | d7e3b4b | 2017-09-24 13:37:54 +0900 | [diff] [blame] | 243 | import org.onosproject.net.pi.runtime.PiMeterCellId; |
Carmelo Cascone | 72343c5 | 2017-09-05 17:37:10 +0200 | [diff] [blame] | 244 | import org.onosproject.net.pi.runtime.PiPacketOperation; |
Carmelo Cascone | 39c28ca | 2017-11-15 13:03:57 -0800 | [diff] [blame] | 245 | import org.onosproject.net.pi.service.PiPipeconfConfig; |
Carmelo Cascone | 72343c5 | 2017-09-05 17:37:10 +0200 | [diff] [blame] | 246 | import org.onosproject.net.pi.runtime.PiRangeFieldMatch; |
| 247 | import org.onosproject.net.pi.runtime.PiTableAction; |
| 248 | import org.onosproject.net.pi.runtime.PiTableEntry; |
Carmelo Cascone | 72343c5 | 2017-09-05 17:37:10 +0200 | [diff] [blame] | 249 | import org.onosproject.net.pi.runtime.PiTernaryFieldMatch; |
Carmelo Cascone | 326ad2d | 2017-11-28 18:09:13 -0800 | [diff] [blame] | 250 | import org.onosproject.net.pi.runtime.PiTableEntryHandle; |
Carmelo Cascone | 1a7e4f9 | 2017-11-20 23:04:02 -0800 | [diff] [blame] | 251 | import org.onosproject.net.pi.service.PiTranslatable; |
| 252 | import org.onosproject.net.pi.service.PiTranslatedEntity; |
Jian Li | 11260a0 | 2016-05-19 13:07:22 -0700 | [diff] [blame] | 253 | import org.onosproject.net.provider.ProviderId; |
Thomas Vachuska | eb851cd | 2016-07-21 15:41:05 -0700 | [diff] [blame] | 254 | import org.onosproject.net.region.DefaultRegion; |
| 255 | import org.onosproject.net.region.Region; |
| 256 | import org.onosproject.net.region.RegionId; |
Sho SHIMIZU | e18cb12 | 2016-02-22 21:04:56 -0800 | [diff] [blame] | 257 | import org.onosproject.net.resource.ContinuousResource; |
| 258 | import org.onosproject.net.resource.ContinuousResourceId; |
| 259 | import org.onosproject.net.resource.DiscreteResource; |
Sho SHIMIZU | c0e010dd | 2016-05-02 14:46:22 -0700 | [diff] [blame] | 260 | import org.onosproject.net.resource.DiscreteResourceCodec; |
Sho SHIMIZU | e18cb12 | 2016-02-22 21:04:56 -0800 | [diff] [blame] | 261 | import org.onosproject.net.resource.DiscreteResourceId; |
| 262 | import org.onosproject.net.resource.ResourceAllocation; |
Naoki Shiota | bd1974c | 2016-04-29 18:44:17 -0700 | [diff] [blame] | 263 | import org.onosproject.net.resource.ResourceConsumerId; |
Changhoon Yoon | e71dfa4 | 2015-12-04 21:49:25 +0900 | [diff] [blame] | 264 | import org.onosproject.security.Permission; |
Brian O'Connor | abafb50 | 2014-12-02 22:26:20 -0800 | [diff] [blame] | 265 | import org.onosproject.store.Timestamp; |
Madan Jampani | 39fff10 | 2016-02-14 13:17:28 -0800 | [diff] [blame] | 266 | import org.onosproject.store.primitives.MapUpdate; |
Madan Jampani | cadd70b | 2016-02-08 13:45:43 -0800 | [diff] [blame] | 267 | import org.onosproject.store.primitives.TransactionId; |
Madan Jampani | 50589ac | 2015-06-08 11:38:46 -0700 | [diff] [blame] | 268 | import org.onosproject.store.service.MapEvent; |
Jonathan Hart | 46bf89b | 2017-02-27 15:56:42 -0800 | [diff] [blame] | 269 | import org.onosproject.store.service.MultimapEvent; |
Madan Jampani | 50589ac | 2015-06-08 11:38:46 -0700 | [diff] [blame] | 270 | import org.onosproject.store.service.SetEvent; |
Madan Jampani | 35708a9 | 2016-07-06 10:48:19 -0700 | [diff] [blame] | 271 | import org.onosproject.store.service.Task; |
Carmelo Cascone | 72343c5 | 2017-09-05 17:37:10 +0200 | [diff] [blame] | 272 | import org.onosproject.store.service.TransactionLog; |
Madan Jampani | e97fec4 | 2015-02-17 10:53:42 -0800 | [diff] [blame] | 273 | import org.onosproject.store.service.Versioned; |
Madan Jampani | 35708a9 | 2016-07-06 10:48:19 -0700 | [diff] [blame] | 274 | import org.onosproject.store.service.WorkQueueStats; |
Simon Hunt | d7395c8 | 2016-10-20 17:54:01 -0700 | [diff] [blame] | 275 | import org.onosproject.ui.model.topo.UiTopoLayoutId; |
Jordan Halterman | 980a8c1 | 2017-09-22 18:01:19 -0700 | [diff] [blame] | 276 | import org.onosproject.upgrade.Upgrade; |
Yuta HIGUCHI | 03fec1f | 2014-10-03 09:13:50 -0700 | [diff] [blame] | 277 | |
Charles Chan | 6a7d367 | 2018-06-19 20:40:52 -0700 | [diff] [blame] | 278 | import java.lang.invoke.SerializedLambda; |
Jonathan Hart | 4572785 | 2015-01-28 13:35:54 -0800 | [diff] [blame] | 279 | import java.net.URI; |
| 280 | import java.time.Duration; |
| 281 | import java.util.ArrayList; |
| 282 | import java.util.Arrays; |
Jordi Ortiz | 1b1a3b4 | 2017-03-03 12:36:54 +0100 | [diff] [blame] | 283 | import java.util.BitSet; |
Jonathan Hart | 4572785 | 2015-01-28 13:35:54 -0800 | [diff] [blame] | 284 | import java.util.Collections; |
| 285 | import java.util.HashMap; |
| 286 | import java.util.HashSet; |
Sho SHIMIZU | 6c9e33a | 2016-01-07 18:45:27 -0800 | [diff] [blame] | 287 | import java.util.LinkedHashSet; |
Jonathan Hart | 4572785 | 2015-01-28 13:35:54 -0800 | [diff] [blame] | 288 | import java.util.LinkedList; |
| 289 | import java.util.Optional; |
Madan Jampani | 86940d9 | 2015-05-06 11:47:57 -0700 | [diff] [blame] | 290 | import java.util.concurrent.ConcurrentHashMap; |
| 291 | import java.util.concurrent.CopyOnWriteArraySet; |
Madan Jampani | 6db0b44 | 2015-07-07 20:27:59 -0700 | [diff] [blame] | 292 | import java.util.concurrent.atomic.AtomicBoolean; |
| 293 | import java.util.concurrent.atomic.AtomicInteger; |
| 294 | import java.util.concurrent.atomic.AtomicLong; |
Yuta HIGUCHI | 47c4088 | 2014-10-10 18:44:37 -0700 | [diff] [blame] | 295 | |
Yuta HIGUCHI | 8d143d2 | 2014-10-19 23:15:09 -0700 | [diff] [blame] | 296 | public final class KryoNamespaces { |
Yuta HIGUCHI | 03fec1f | 2014-10-03 09:13:50 -0700 | [diff] [blame] | 297 | |
Jonathan Hart | 679d24d | 2016-05-13 13:29:53 -0700 | [diff] [blame] | 298 | public static final int BASIC_MAX_SIZE = 50; |
Jordan Halterman | 1d4d189 | 2018-01-10 14:11:18 -0800 | [diff] [blame] | 299 | |
| 300 | /** |
| 301 | * WARNING: Do not change ordering of registrations! |
| 302 | * |
| 303 | * Serial IDs are automatically assigned to types registered via the {@link KryoNamespace} API. |
| 304 | * ISSU depends on consistent type IDs for registered serializers across versions. |
| 305 | * New types must be appended to the registration chain unless an explicit type ID is assigned by |
| 306 | * calling {@link KryoNamespace.Builder#nextId(int)}. |
| 307 | * If existing types need to be removed, use {@link KryoNamespace.Builder#nextId(int)} to preserve a consistent |
| 308 | * ordering of type IDs. |
| 309 | */ |
Yuta HIGUCHI | 1aa249c | 2014-11-05 17:40:28 -0800 | [diff] [blame] | 310 | public static final KryoNamespace BASIC = KryoNamespace.newBuilder() |
Yuta HIGUCHI | 91768e3 | 2014-11-22 05:06:35 -0800 | [diff] [blame] | 311 | .nextId(KryoNamespace.FLOATING_ID) |
| 312 | .register(byte[].class) |
Madan Jampani | 6db0b44 | 2015-07-07 20:27:59 -0700 | [diff] [blame] | 313 | .register(AtomicBoolean.class) |
| 314 | .register(AtomicInteger.class) |
| 315 | .register(AtomicLong.class) |
Yuta HIGUCHI | 91768e3 | 2014-11-22 05:06:35 -0800 | [diff] [blame] | 316 | .register(new ImmutableListSerializer(), |
| 317 | ImmutableList.class, |
| 318 | ImmutableList.of(1).getClass(), |
Jimmy Jin | e9b7a02 | 2016-08-12 16:56:48 -0700 | [diff] [blame] | 319 | ImmutableList.of(1, 2).getClass(), |
| 320 | ImmutableList.of(1, 2, 3).subList(1, 3).getClass()) |
Yuta HIGUCHI | 91768e3 | 2014-11-22 05:06:35 -0800 | [diff] [blame] | 321 | .register(new ImmutableSetSerializer(), |
| 322 | ImmutableSet.class, |
| 323 | ImmutableSet.of().getClass(), |
| 324 | ImmutableSet.of(1).getClass(), |
| 325 | ImmutableSet.of(1, 2).getClass()) |
| 326 | .register(new ImmutableMapSerializer(), |
| 327 | ImmutableMap.class, |
| 328 | ImmutableMap.of().getClass(), |
| 329 | ImmutableMap.of("a", 1).getClass(), |
| 330 | ImmutableMap.of("R", 2, "D", 2).getClass()) |
Madan Jampani | 10666e5 | 2016-02-11 16:46:42 -0800 | [diff] [blame] | 331 | .register(Collections.unmodifiableSet(Collections.emptySet()).getClass()) |
Yuta HIGUCHI | 91768e3 | 2014-11-22 05:06:35 -0800 | [diff] [blame] | 332 | .register(HashMap.class) |
Madan Jampani | 86940d9 | 2015-05-06 11:47:57 -0700 | [diff] [blame] | 333 | .register(ConcurrentHashMap.class) |
| 334 | .register(CopyOnWriteArraySet.class) |
Yuta HIGUCHI | 91768e3 | 2014-11-22 05:06:35 -0800 | [diff] [blame] | 335 | .register(ArrayList.class, |
| 336 | LinkedList.class, |
Sho SHIMIZU | 6c9e33a | 2016-01-07 18:45:27 -0800 | [diff] [blame] | 337 | HashSet.class, |
| 338 | LinkedHashSet.class |
alshabib | 1aa5814 | 2016-02-17 15:37:56 -0800 | [diff] [blame] | 339 | ) |
Jonathan Hart | ad0c302 | 2017-02-22 14:06:01 -0800 | [diff] [blame] | 340 | .register(HashMultiset.class) |
Saurav Das | 9df5b7c | 2017-08-14 16:44:43 -0700 | [diff] [blame] | 341 | .register(Sets.class) |
Madan Jampani | 3ca9cb6 | 2015-07-21 11:35:44 -0700 | [diff] [blame] | 342 | .register(Maps.immutableEntry("a", "b").getClass()) |
Yuta HIGUCHI | 91768e3 | 2014-11-22 05:06:35 -0800 | [diff] [blame] | 343 | .register(new ArraysAsListSerializer(), Arrays.asList().getClass()) |
| 344 | .register(Collections.singletonList(1).getClass()) |
| 345 | .register(Duration.class) |
Yuta HIGUCHI | ae1d210 | 2014-11-25 19:26:01 -0800 | [diff] [blame] | 346 | .register(Collections.emptySet().getClass()) |
Sho SHIMIZU | 166e61e | 2015-01-21 18:07:12 -0800 | [diff] [blame] | 347 | .register(Optional.class) |
Jonathan Hart | 4572785 | 2015-01-28 13:35:54 -0800 | [diff] [blame] | 348 | .register(Collections.emptyList().getClass()) |
Marc De Leenheer | 4a1c1fa | 2015-06-01 18:08:56 -0700 | [diff] [blame] | 349 | .register(Collections.singleton(Object.class).getClass()) |
Jian Li | 83fa041 | 2016-05-06 12:33:49 -0700 | [diff] [blame] | 350 | .register(int[].class) |
| 351 | .register(long[].class) |
| 352 | .register(short[].class) |
| 353 | .register(double[].class) |
| 354 | .register(float[].class) |
| 355 | .register(char[].class) |
| 356 | .register(String[].class) |
| 357 | .register(boolean[].class) |
Charles Chan | 6a7d367 | 2018-06-19 20:40:52 -0700 | [diff] [blame] | 358 | // For serializing lambda functions |
| 359 | .register(Object[].class) |
| 360 | .register(Class.class) |
| 361 | .register(SerializedLambda.class) |
| 362 | .register(new ClosureSerializer(), ClosureSerializer.Closure.class) |
HIGUCHI Yuta | b2d0fd8 | 2016-05-17 20:34:58 -0700 | [diff] [blame] | 363 | .build("BASIC"); |
Yuta HIGUCHI | 1aa249c | 2014-11-05 17:40:28 -0800 | [diff] [blame] | 364 | |
Yuta HIGUCHI | 03fec1f | 2014-10-03 09:13:50 -0700 | [diff] [blame] | 365 | /** |
Thomas Vachuska | a10137c | 2018-04-03 16:45:59 -0700 | [diff] [blame] | 366 | * KryoNamespace which can serialize ONF misc classes. |
Yuta HIGUCHI | 03fec1f | 2014-10-03 09:13:50 -0700 | [diff] [blame] | 367 | */ |
Jonathan Hart | 679d24d | 2016-05-13 13:29:53 -0700 | [diff] [blame] | 368 | public static final int MISC_MAX_SIZE = 30; |
Jordan Halterman | 1d4d189 | 2018-01-10 14:11:18 -0800 | [diff] [blame] | 369 | |
| 370 | /** |
| 371 | * WARNING: Do not change ordering of registrations! |
| 372 | * |
| 373 | * Serial IDs are automatically assigned to types registered via the {@link KryoNamespace} API. |
| 374 | * ISSU depends on consistent type IDs for registered serializers across versions. |
| 375 | * New types must be appended to the registration chain unless an explicit type ID is assigned by |
| 376 | * calling {@link KryoNamespace.Builder#nextId(int)}. |
| 377 | * If existing types need to be removed, use {@link KryoNamespace.Builder#nextId(int)} to preserve a consistent |
| 378 | * ordering of type IDs. |
| 379 | */ |
Yuta HIGUCHI | 8d143d2 | 2014-10-19 23:15:09 -0700 | [diff] [blame] | 380 | public static final KryoNamespace MISC = KryoNamespace.newBuilder() |
Yuta HIGUCHI | 91768e3 | 2014-11-22 05:06:35 -0800 | [diff] [blame] | 381 | .nextId(KryoNamespace.FLOATING_ID) |
| 382 | .register(new IpPrefixSerializer(), IpPrefix.class) |
| 383 | .register(new Ip4PrefixSerializer(), Ip4Prefix.class) |
| 384 | .register(new Ip6PrefixSerializer(), Ip6Prefix.class) |
| 385 | .register(new IpAddressSerializer(), IpAddress.class) |
| 386 | .register(new Ip4AddressSerializer(), Ip4Address.class) |
| 387 | .register(new Ip6AddressSerializer(), Ip6Address.class) |
| 388 | .register(new MacAddressSerializer(), MacAddress.class) |
Madan Jampani | 063949f | 2016-01-26 12:10:05 -0800 | [diff] [blame] | 389 | .register(Match.class) |
Yuta HIGUCHI | 5fa3dc0 | 2014-10-15 17:08:13 -0700 | [diff] [blame] | 390 | .register(VlanId.class) |
Sho SHIMIZU | dee7871 | 2015-04-30 09:33:52 -0700 | [diff] [blame] | 391 | .register(Frequency.class) |
Sho SHIMIZU | 63feca7 | 2015-05-07 10:44:25 -0700 | [diff] [blame] | 392 | .register(Bandwidth.class) |
Sho SHIMIZU | 31f37ed | 2016-01-08 18:45:54 -0800 | [diff] [blame] | 393 | .register(Bandwidth.bps(1L).getClass()) |
| 394 | .register(Bandwidth.bps(1.0).getClass()) |
HIGUCHI Yuta | b2d0fd8 | 2016-05-17 20:34:58 -0700 | [diff] [blame] | 395 | .build("MISC"); |
Yuta HIGUCHI | 03fec1f | 2014-10-03 09:13:50 -0700 | [diff] [blame] | 396 | |
Yuta HIGUCHI | 91768e3 | 2014-11-22 05:06:35 -0800 | [diff] [blame] | 397 | /** |
Yuta HIGUCHI | 8d143d2 | 2014-10-19 23:15:09 -0700 | [diff] [blame] | 398 | * KryoNamespace which can serialize API bundle classes. |
Yuta HIGUCHI | 03fec1f | 2014-10-03 09:13:50 -0700 | [diff] [blame] | 399 | */ |
Jonathan Hart | 679d24d | 2016-05-13 13:29:53 -0700 | [diff] [blame] | 400 | public static final int API_MAX_SIZE = 499; |
Jordan Halterman | 1d4d189 | 2018-01-10 14:11:18 -0800 | [diff] [blame] | 401 | |
| 402 | /** |
| 403 | * WARNING: Do not change ordering of registrations! |
| 404 | * |
| 405 | * Serial IDs are automatically assigned to types registered via the {@link KryoNamespace} API. |
| 406 | * ISSU depends on consistent type IDs for registered serializers across versions. |
| 407 | * New types must be appended to the registration chain unless an explicit type ID is assigned by |
| 408 | * calling {@link KryoNamespace.Builder#nextId(int)}. |
| 409 | * If existing types need to be removed, use {@link KryoNamespace.Builder#nextId(int)} to preserve a consistent |
| 410 | * ordering of type IDs. |
| 411 | */ |
Yuta HIGUCHI | 8d143d2 | 2014-10-19 23:15:09 -0700 | [diff] [blame] | 412 | public static final KryoNamespace API = KryoNamespace.newBuilder() |
Yuta HIGUCHI | 91768e3 | 2014-11-22 05:06:35 -0800 | [diff] [blame] | 413 | .nextId(KryoNamespace.INITIAL_ID) |
Yuta HIGUCHI | 1aa249c | 2014-11-05 17:40:28 -0800 | [diff] [blame] | 414 | .register(BASIC) |
Jonathan Hart | 679d24d | 2016-05-13 13:29:53 -0700 | [diff] [blame] | 415 | .nextId(KryoNamespace.INITIAL_ID + BASIC_MAX_SIZE) |
Yuta HIGUCHI | 91768e3 | 2014-11-22 05:06:35 -0800 | [diff] [blame] | 416 | .register(MISC) |
Jonathan Hart | 679d24d | 2016-05-13 13:29:53 -0700 | [diff] [blame] | 417 | .nextId(KryoNamespace.INITIAL_ID + BASIC_MAX_SIZE + MISC_MAX_SIZE) |
Yuta HIGUCHI | 03fec1f | 2014-10-03 09:13:50 -0700 | [diff] [blame] | 418 | .register( |
alshabib | 10c810b | 2015-08-18 16:59:04 -0700 | [diff] [blame] | 419 | Instructions.MeterInstruction.class, |
Cem Türker | 3baff67 | 2017-10-12 15:09:01 +0300 | [diff] [blame] | 420 | Instructions.StatTriggerInstruction.class, |
| 421 | StatTriggerFlag.class, |
| 422 | StatTriggerField.class, |
Frank Wang | d7e3b4b | 2017-09-24 13:37:54 +0900 | [diff] [blame] | 423 | MeterCellId.class, |
| 424 | MeterCellType.class, |
alshabib | 10c810b | 2015-08-18 16:59:04 -0700 | [diff] [blame] | 425 | MeterId.class, |
Thomas Vachuska | 90b453f | 2015-01-30 18:57:14 -0800 | [diff] [blame] | 426 | Version.class, |
Yuta HIGUCHI | 03fec1f | 2014-10-03 09:13:50 -0700 | [diff] [blame] | 427 | ControllerNode.State.class, |
Thomas Vachuska | 90b453f | 2015-01-30 18:57:14 -0800 | [diff] [blame] | 428 | ApplicationState.class, |
Changhoon Yoon | 32b9370 | 2015-05-15 04:41:15 +0900 | [diff] [blame] | 429 | ApplicationRole.class, |
Thomas Vachuska | 90b453f | 2015-01-30 18:57:14 -0800 | [diff] [blame] | 430 | DefaultApplication.class, |
Changhoon Yoon | e71dfa4 | 2015-12-04 21:49:25 +0900 | [diff] [blame] | 431 | Permission.class, |
Yuta HIGUCHI | 03fec1f | 2014-10-03 09:13:50 -0700 | [diff] [blame] | 432 | Device.Type.class, |
Thomas Vachuska | d16ce18 | 2014-10-29 17:25:29 -0700 | [diff] [blame] | 433 | Port.Type.class, |
alshabib | 7911a05 | 2014-10-16 17:49:37 -0700 | [diff] [blame] | 434 | ChassisId.class, |
Yuta HIGUCHI | 03fec1f | 2014-10-03 09:13:50 -0700 | [diff] [blame] | 435 | DefaultControllerNode.class, |
| 436 | DefaultDevice.class, |
Madan Jampani | 53e44e6 | 2014-10-07 12:39:51 -0700 | [diff] [blame] | 437 | DefaultDeviceDescription.class, |
Madan Jampani | 7058397 | 2015-06-30 11:25:05 -0700 | [diff] [blame] | 438 | DefaultHost.class, |
Madan Jampani | 2ff0559 | 2014-10-10 15:42:47 -0700 | [diff] [blame] | 439 | DefaultLinkDescription.class, |
Yuta HIGUCHI | 03fec1f | 2014-10-03 09:13:50 -0700 | [diff] [blame] | 440 | Port.class, |
Madan Jampani | 53e44e6 | 2014-10-07 12:39:51 -0700 | [diff] [blame] | 441 | DefaultPortDescription.class, |
Yuta HIGUCHI | 03fec1f | 2014-10-03 09:13:50 -0700 | [diff] [blame] | 442 | Element.class, |
Yuta HIGUCHI | 9ee60f6 | 2014-10-09 10:00:01 -0700 | [diff] [blame] | 443 | Link.Type.class, |
Thomas Vachuska | 57126fe | 2014-11-11 17:13:24 -0800 | [diff] [blame] | 444 | Link.State.class, |
Yuta HIGUCHI | 5fa3dc0 | 2014-10-15 17:08:13 -0700 | [diff] [blame] | 445 | Timestamp.class, |
Madan Jampani | 39fff10 | 2016-02-14 13:17:28 -0800 | [diff] [blame] | 446 | Change.class, |
| 447 | Leader.class, |
Madan Jampani | 1ee9178 | 2014-11-20 20:24:24 -0800 | [diff] [blame] | 448 | Leadership.class, |
| 449 | LeadershipEvent.class, |
| 450 | LeadershipEvent.Type.class, |
Madan Jampani | 35708a9 | 2016-07-06 10:48:19 -0700 | [diff] [blame] | 451 | Task.class, |
| 452 | WorkQueueStats.class, |
Yuta HIGUCHI | 5fa3dc0 | 2014-10-15 17:08:13 -0700 | [diff] [blame] | 453 | HostId.class, |
| 454 | HostDescription.class, |
Madan Jampani | 38b250d | 2014-10-17 11:02:38 -0700 | [diff] [blame] | 455 | DefaultHostDescription.class, |
Madan Jampani | 117aaae | 2014-10-23 10:04:05 -0700 | [diff] [blame] | 456 | DefaultFlowEntry.class, |
| 457 | StoredFlowEntry.class, |
Yuta HIGUCHI | 2fcfde9 | 2014-10-20 18:37:14 -0700 | [diff] [blame] | 458 | DefaultFlowRule.class, |
Carmelo Cascone | 4160574 | 2017-06-19 15:46:44 +0900 | [diff] [blame] | 459 | TableId.class, |
| 460 | IndexTableId.class, |
Murat Parlakisik | c6759e8 | 2016-06-29 03:22:22 -0700 | [diff] [blame] | 461 | FlowRule.FlowRemoveReason.class, |
alshabib | 4294778 | 2015-03-31 14:59:06 -0700 | [diff] [blame] | 462 | DefaultPacketRequest.class, |
| 463 | PacketPriority.class, |
alshabib | f6c2ede | 2014-10-22 23:31:50 -0700 | [diff] [blame] | 464 | FlowEntry.FlowEntryState.class, |
Ray Milkey | 97db350 | 2016-12-07 14:46:34 -0800 | [diff] [blame] | 465 | FlowEntry.FlowLiveType.class, |
Yuta HIGUCHI | 2809bf3 | 2014-10-20 22:44:12 -0700 | [diff] [blame] | 466 | FlowId.class, |
Yuta HIGUCHI | 85d58d1 | 2014-10-20 23:59:44 -0700 | [diff] [blame] | 467 | DefaultTrafficSelector.class, |
Sho SHIMIZU | fbc80e5 | 2015-04-28 10:41:58 -0700 | [diff] [blame] | 468 | PortCriterion.class, |
| 469 | MetadataCriterion.class, |
| 470 | EthCriterion.class, |
alshabib | caf1ca2 | 2015-06-25 15:18:16 -0700 | [diff] [blame] | 471 | EthType.class, |
Sho SHIMIZU | fbc80e5 | 2015-04-28 10:41:58 -0700 | [diff] [blame] | 472 | EthTypeCriterion.class, |
| 473 | VlanIdCriterion.class, |
| 474 | VlanPcpCriterion.class, |
| 475 | IPDscpCriterion.class, |
| 476 | IPEcnCriterion.class, |
| 477 | IPProtocolCriterion.class, |
| 478 | IPCriterion.class, |
Hyunsun Moon | cf732fb | 2015-08-22 21:04:23 -0700 | [diff] [blame] | 479 | TpPort.class, |
Sho SHIMIZU | fbc80e5 | 2015-04-28 10:41:58 -0700 | [diff] [blame] | 480 | TcpPortCriterion.class, |
| 481 | UdpPortCriterion.class, |
| 482 | SctpPortCriterion.class, |
| 483 | IcmpTypeCriterion.class, |
| 484 | IcmpCodeCriterion.class, |
| 485 | IPv6FlowLabelCriterion.class, |
| 486 | Icmpv6TypeCriterion.class, |
| 487 | Icmpv6CodeCriterion.class, |
| 488 | IPv6NDTargetAddressCriterion.class, |
| 489 | IPv6NDLinkLayerAddressCriterion.class, |
| 490 | MplsCriterion.class, |
Charles Chan | 7ba33f4 | 2015-12-15 19:27:30 -0800 | [diff] [blame] | 491 | MplsBosCriterion.class, |
Hyunsun Moon | a08c5d0 | 2015-07-14 17:53:00 -0700 | [diff] [blame] | 492 | TunnelIdCriterion.class, |
Sho SHIMIZU | fbc80e5 | 2015-04-28 10:41:58 -0700 | [diff] [blame] | 493 | IPv6ExthdrFlagsCriterion.class, |
| 494 | LambdaCriterion.class, |
Sho SHIMIZU | 084c4ca | 2015-05-04 11:52:51 -0700 | [diff] [blame] | 495 | OchSignalCriterion.class, |
Sho SHIMIZU | b5e6de6 | 2015-05-04 12:13:44 -0700 | [diff] [blame] | 496 | OchSignalTypeCriterion.class, |
Yafit Hadar | 5796d97 | 2015-10-15 13:16:11 +0300 | [diff] [blame] | 497 | OduSignalIdCriterion.class, |
| 498 | OduSignalTypeCriterion.class, |
Hyunsun Moon | c8fe98b | 2016-01-11 00:01:46 -0800 | [diff] [blame] | 499 | ArpOpCriterion.class, |
| 500 | ArpHaCriterion.class, |
| 501 | ArpPaCriterion.class, |
Yuta HIGUCHI | 85d58d1 | 2014-10-20 23:59:44 -0700 | [diff] [blame] | 502 | Criterion.class, |
| 503 | Criterion.Type.class, |
| 504 | DefaultTrafficTreatment.class, |
Charles Chan | 7efabeb | 2015-09-28 15:12:19 -0700 | [diff] [blame] | 505 | Instructions.NoActionInstruction.class, |
Yuta HIGUCHI | 40d0177 | 2014-10-21 00:08:44 -0700 | [diff] [blame] | 506 | Instructions.OutputInstruction.class, |
Pavlin Radoslavov | 1d21866 | 2015-02-13 11:34:30 -0800 | [diff] [blame] | 507 | Instructions.GroupInstruction.class, |
Steffen Gebert | 7c446e4 | 2016-06-21 23:22:20 +0200 | [diff] [blame] | 508 | Instructions.SetQueueInstruction.class, |
Srikanth Vavilapalli | 2318191 | 2015-05-04 09:48:09 -0700 | [diff] [blame] | 509 | Instructions.TableTypeTransition.class, |
Jonathan Hart | 68fef9d | 2014-10-29 17:30:03 -0700 | [diff] [blame] | 510 | L0ModificationInstruction.class, |
| 511 | L0ModificationInstruction.L0SubType.class, |
Sho SHIMIZU | c682709 | 2015-05-05 17:58:34 -0700 | [diff] [blame] | 512 | L0ModificationInstruction.ModOchSignalInstruction.class, |
Yafit Hadar | 5796d97 | 2015-10-15 13:16:11 +0300 | [diff] [blame] | 513 | L1ModificationInstruction.class, |
| 514 | L1ModificationInstruction.L1SubType.class, |
| 515 | L1ModificationInstruction.ModOduSignalIdInstruction.class, |
Jonathan Hart | 68fef9d | 2014-10-29 17:30:03 -0700 | [diff] [blame] | 516 | L2ModificationInstruction.class, |
| 517 | L2ModificationInstruction.L2SubType.class, |
| 518 | L2ModificationInstruction.ModEtherInstruction.class, |
Jian Li | 11260a0 | 2016-05-19 13:07:22 -0700 | [diff] [blame] | 519 | L2ModificationInstruction.ModMplsHeaderInstruction.class, |
Jonathan Hart | 68fef9d | 2014-10-29 17:30:03 -0700 | [diff] [blame] | 520 | L2ModificationInstruction.ModVlanIdInstruction.class, |
| 521 | L2ModificationInstruction.ModVlanPcpInstruction.class, |
Jian Li | 11260a0 | 2016-05-19 13:07:22 -0700 | [diff] [blame] | 522 | L2ModificationInstruction.ModVlanHeaderInstruction.class, |
Pavlin Radoslavov | 1d21866 | 2015-02-13 11:34:30 -0800 | [diff] [blame] | 523 | L2ModificationInstruction.ModMplsLabelInstruction.class, |
Saurav Das | 8a0732e | 2015-11-20 15:27:53 -0800 | [diff] [blame] | 524 | L2ModificationInstruction.ModMplsBosInstruction.class, |
Pavlin Radoslavov | 1d21866 | 2015-02-13 11:34:30 -0800 | [diff] [blame] | 525 | L2ModificationInstruction.ModMplsTtlInstruction.class, |
Hyunsun Moon | a08c5d0 | 2015-07-14 17:53:00 -0700 | [diff] [blame] | 526 | L2ModificationInstruction.ModTunnelIdInstruction.class, |
Jonathan Hart | 68fef9d | 2014-10-29 17:30:03 -0700 | [diff] [blame] | 527 | L3ModificationInstruction.class, |
| 528 | L3ModificationInstruction.L3SubType.class, |
| 529 | L3ModificationInstruction.ModIPInstruction.class, |
Pavlin Radoslavov | febe82c | 2015-02-11 19:08:15 -0800 | [diff] [blame] | 530 | L3ModificationInstruction.ModIPv6FlowLabelInstruction.class, |
Pavlin Radoslavov | 1d21866 | 2015-02-13 11:34:30 -0800 | [diff] [blame] | 531 | L3ModificationInstruction.ModTtlInstruction.class, |
Hyunsun Moon | c8bd97c | 2015-07-18 22:47:33 -0700 | [diff] [blame] | 532 | L4ModificationInstruction.class, |
| 533 | L4ModificationInstruction.L4SubType.class, |
| 534 | L4ModificationInstruction.ModTransportPortInstruction.class, |
Yuta HIGUCHI | 9def047 | 2014-10-23 15:51:10 -0700 | [diff] [blame] | 535 | RoleInfo.class, |
Brian O'Connor | 72cb19a | 2015-01-16 16:14:41 -0800 | [diff] [blame] | 536 | FlowRuleBatchEvent.class, |
| 537 | FlowRuleBatchEvent.Type.class, |
| 538 | FlowRuleBatchRequest.class, |
Yuta HIGUCHI | 9def047 | 2014-10-23 15:51:10 -0700 | [diff] [blame] | 539 | FlowRuleBatchOperation.class, |
Madan Jampani | 87e276b | 2015-06-02 10:49:47 -0700 | [diff] [blame] | 540 | FlowRuleEvent.class, |
| 541 | FlowRuleEvent.Type.class, |
Yuta HIGUCHI | 9def047 | 2014-10-23 15:51:10 -0700 | [diff] [blame] | 542 | CompletedBatchOperation.class, |
| 543 | FlowRuleBatchEntry.class, |
Yuta HIGUCHI | 087019b | 2014-10-28 21:07:56 -0700 | [diff] [blame] | 544 | FlowRuleBatchEntry.FlowRuleOperation.class, |
| 545 | IntentId.class, |
| 546 | IntentState.class, |
Brian O'Connor | 4e6c17d | 2015-02-19 11:40:05 -0800 | [diff] [blame] | 547 | //Key.class, is abstract |
| 548 | Key.of(1L, new DefaultApplicationId(0, "bar")).getClass(), //LongKey.class |
| 549 | Key.of("foo", new DefaultApplicationId(0, "bar")).getClass(), //StringKey.class |
Yuta HIGUCHI | 087019b | 2014-10-28 21:07:56 -0700 | [diff] [blame] | 550 | Intent.class, |
| 551 | ConnectivityIntent.class, |
| 552 | PathIntent.class, |
| 553 | DefaultPath.class, |
| 554 | DefaultEdgeLink.class, |
| 555 | HostToHostIntent.class, |
| 556 | PointToPointIntent.class, |
Jonathan Hart | 68fef9d | 2014-10-29 17:30:03 -0700 | [diff] [blame] | 557 | MultiPointToSinglePointIntent.class, |
Michele Santuari | 4a33807 | 2014-11-05 18:38:55 +0100 | [diff] [blame] | 558 | SinglePointToMultiPointIntent.class, |
Brian O'Connor | a751537 | 2015-03-25 14:45:34 -0700 | [diff] [blame] | 559 | FlowRuleIntent.class, |
Brian O'Connor | 41718fc | 2014-10-30 16:57:21 -0700 | [diff] [blame] | 560 | LinkCollectionIntent.class, |
| 561 | OpticalConnectivityIntent.class, |
| 562 | OpticalPathIntent.class, |
Marc De Leenheer | 8c2caac | 2015-05-28 16:37:33 -0700 | [diff] [blame] | 563 | OpticalCircuitIntent.class, |
Rimon Ashkenazy | 27438ff | 2016-03-22 15:57:45 +0200 | [diff] [blame] | 564 | OpticalOduIntent.class, |
Jonathan Hart | 6552b8d | 2016-04-12 14:21:50 -0700 | [diff] [blame] | 565 | FlowObjectiveIntent.class, |
Sho SHIMIZU | f33b893 | 2016-01-25 18:43:32 -0800 | [diff] [blame] | 566 | DiscreteResource.class, |
| 567 | ContinuousResource.class, |
Sho SHIMIZU | f33b893 | 2016-01-25 18:43:32 -0800 | [diff] [blame] | 568 | DiscreteResourceId.class, |
| 569 | ContinuousResourceId.class, |
Sho SHIMIZU | 1f5e591 | 2015-08-10 17:00:00 -0700 | [diff] [blame] | 570 | ResourceAllocation.class, |
Naoki Shiota | bd1974c | 2016-04-29 18:44:17 -0700 | [diff] [blame] | 571 | ResourceConsumerId.class, |
Luca Prete | 670ac5d | 2017-02-03 15:55:43 -0800 | [diff] [blame] | 572 | ResourceGroup.class, |
Sho SHIMIZU | cd4bac8 | 2014-11-11 17:07:25 -0800 | [diff] [blame] | 573 | // Constraints |
Thomas Vachuska | 7d0032b | 2014-11-04 17:39:57 -0800 | [diff] [blame] | 574 | BandwidthConstraint.class, |
| 575 | LinkTypeConstraint.class, |
Sho SHIMIZU | cd4bac8 | 2014-11-11 17:07:25 -0800 | [diff] [blame] | 576 | LatencyConstraint.class, |
| 577 | WaypointConstraint.class, |
| 578 | ObstacleConstraint.class, |
| 579 | AnnotationConstraint.class, |
Brian O'Connor | 72a034c | 2014-11-26 18:24:23 -0800 | [diff] [blame] | 580 | BooleanConstraint.class, |
Jonathan Hart | 96c5a4a | 2015-07-31 14:23:33 -0700 | [diff] [blame] | 581 | PartialFailureConstraint.class, |
jcc | 3d4e14a | 2015-04-21 11:32:05 +0800 | [diff] [blame] | 582 | IntentOperation.class, |
Marc De Leenheer | bb38235 | 2015-04-23 18:20:34 -0700 | [diff] [blame] | 583 | FlowRuleExtPayLoad.class, |
Thomas Vachuska | fdbc4c2 | 2015-05-29 15:53:01 -0700 | [diff] [blame] | 584 | DefaultAnnotations.class, |
| 585 | PortStatistics.class, |
Brian O'Connor | ce2d8b5 | 2015-07-29 16:24:13 -0700 | [diff] [blame] | 586 | DefaultPortStatistics.class, |
Srikanth Vavilapalli | 95810f5 | 2015-09-14 15:49:56 -0700 | [diff] [blame] | 587 | IntentDomainId.class, |
| 588 | TableStatisticsEntry.class, |
Charles Chan | c72271f | 2016-04-05 15:15:27 -0700 | [diff] [blame] | 589 | DefaultTableStatisticsEntry.class, |
Jonathan Hart | 26bd813 | 2016-04-13 10:39:55 -0700 | [diff] [blame] | 590 | EncapsulationConstraint.class, |
| 591 | EncapsulationType.class, |
jaegonkim | 7e87663 | 2017-01-25 06:01:49 +0900 | [diff] [blame] | 592 | HashedPathSelectionConstraint.class, |
Antonio Marsico | 4f68ec9 | 2017-03-09 11:16:32 +0100 | [diff] [blame] | 593 | NonDisruptiveConstraint.class, |
Charles Chan | c72271f | 2016-04-05 15:15:27 -0700 | [diff] [blame] | 594 | // Flow Objectives |
| 595 | DefaultForwardingObjective.class, |
| 596 | ForwardingObjective.Flag.class, |
| 597 | DefaultFilteringObjective.class, |
| 598 | FilteringObjective.Type.class, |
| 599 | DefaultNextObjective.class, |
| 600 | NextObjective.Type.class, |
Charles Chan | 6a7d367 | 2018-06-19 20:40:52 -0700 | [diff] [blame] | 601 | Objective.Operation.class, |
| 602 | DefaultObjectiveContext.class, |
| 603 | ObjectiveError.class |
Marc De Leenheer | bb38235 | 2015-04-23 18:20:34 -0700 | [diff] [blame] | 604 | ) |
Yuta HIGUCHI | 91768e3 | 2014-11-22 05:06:35 -0800 | [diff] [blame] | 605 | .register(new DefaultApplicationIdSerializer(), DefaultApplicationId.class) |
Jonathan Hart | d9df7bd | 2015-11-10 17:10:25 -0800 | [diff] [blame] | 606 | .register(new UriSerializer(), URI.class) |
Yuta HIGUCHI | 91768e3 | 2014-11-22 05:06:35 -0800 | [diff] [blame] | 607 | .register(new NodeIdSerializer(), NodeId.class) |
| 608 | .register(new ProviderIdSerializer(), ProviderId.class) |
| 609 | .register(new DeviceIdSerializer(), DeviceId.class) |
| 610 | .register(new PortNumberSerializer(), PortNumber.class) |
| 611 | .register(new DefaultPortSerializer(), DefaultPort.class) |
| 612 | .register(new LinkKeySerializer(), LinkKey.class) |
| 613 | .register(new ConnectPointSerializer(), ConnectPoint.class) |
Brian O'Connor | 562d9d3 | 2016-10-07 12:16:50 -0700 | [diff] [blame] | 614 | .register(new FilteredConnectPointSerializer(), FilteredConnectPoint.class) |
Yuta HIGUCHI | 91768e3 | 2014-11-22 05:06:35 -0800 | [diff] [blame] | 615 | .register(new DefaultLinkSerializer(), DefaultLink.class) |
| 616 | .register(new MastershipTermSerializer(), MastershipTerm.class) |
| 617 | .register(new HostLocationSerializer(), HostLocation.class) |
| 618 | .register(new DefaultOutboundPacketSerializer(), DefaultOutboundPacket.class) |
Ayaka Koshibe | 08e457a | 2015-06-25 17:11:54 -0700 | [diff] [blame] | 619 | .register(new AnnotationsSerializer(), DefaultAnnotations.class) |
Jonathan Hart | 3c25916 | 2015-10-21 21:31:19 -0700 | [diff] [blame] | 620 | .register(new ExtensionInstructionSerializer(), Instructions.ExtensionInstructionWrapper.class) |
Charles Chan | 14967c2 | 2015-12-07 11:11:50 -0800 | [diff] [blame] | 621 | .register(new ExtensionCriterionSerializer(), ExtensionCriterion.class) |
Thomas Vachuska | eb851cd | 2016-07-21 15:41:05 -0700 | [diff] [blame] | 622 | .register(Region.class) |
| 623 | .register(Region.Type.class) |
| 624 | .register(RegionId.class) |
| 625 | .register(DefaultRegion.class) |
Simon Hunt | d7395c8 | 2016-10-20 17:54:01 -0700 | [diff] [blame] | 626 | .register(UiTopoLayoutId.class) |
Charles Chan | 14967c2 | 2015-12-07 11:11:50 -0800 | [diff] [blame] | 627 | .register(ExtensionSelectorType.class) |
alshabib | 880b644 | 2015-11-23 22:13:04 -0800 | [diff] [blame] | 628 | .register(ExtensionTreatmentType.class) |
Madan Jampani | cadd70b | 2016-02-08 13:45:43 -0800 | [diff] [blame] | 629 | .register(TransactionId.class) |
Jordan Halterman | 948d659 | 2017-04-20 17:18:24 -0700 | [diff] [blame] | 630 | .register(TransactionLog.class) |
Madan Jampani | 39fff10 | 2016-02-14 13:17:28 -0800 | [diff] [blame] | 631 | .register(MapUpdate.class) |
| 632 | .register(MapUpdate.Type.class) |
Madan Jampani | e97fec4 | 2015-02-17 10:53:42 -0800 | [diff] [blame] | 633 | .register(Versioned.class) |
Madan Jampani | 50589ac | 2015-06-08 11:38:46 -0700 | [diff] [blame] | 634 | .register(MapEvent.class) |
| 635 | .register(MapEvent.Type.class) |
Jonathan Hart | 46bf89b | 2017-02-27 15:56:42 -0800 | [diff] [blame] | 636 | .register(MultimapEvent.class) |
| 637 | .register(MultimapEvent.Type.class) |
Madan Jampani | 50589ac | 2015-06-08 11:38:46 -0700 | [diff] [blame] | 638 | .register(SetEvent.class) |
| 639 | .register(SetEvent.Type.class) |
Yi Tseng | fa394de | 2017-02-01 11:26:40 -0800 | [diff] [blame] | 640 | .register(GroupId.class) |
Marc De Leenheer | bb38235 | 2015-04-23 18:20:34 -0700 | [diff] [blame] | 641 | .register(Annotations.class) |
Sho SHIMIZU | 014c33a | 2015-04-30 11:40:37 -0700 | [diff] [blame] | 642 | .register(OduSignalType.class) |
Ayaka Koshibe | bcb0237 | 2015-06-01 10:56:42 -0700 | [diff] [blame] | 643 | .register(OchSignalType.class) |
Sho SHIMIZU | 014c33a | 2015-04-30 11:40:37 -0700 | [diff] [blame] | 644 | .register(GridType.class) |
| 645 | .register(ChannelSpacing.class) |
Toru Furusawa | 72ee30c | 2016-01-08 13:29:04 -0800 | [diff] [blame] | 646 | .register(CltSignalType.class) |
Sho SHIMIZU | 91210a7 | 2015-04-29 12:54:28 -0700 | [diff] [blame] | 647 | .register(OchSignal.class) |
Yafit Hadar | 5796d97 | 2015-10-15 13:16:11 +0300 | [diff] [blame] | 648 | .register(OduSignalId.class) |
Rimon Ashkenazy | e2410ff | 2015-11-10 14:11:08 +0200 | [diff] [blame] | 649 | .register(TributarySlot.class) |
Rimon Ashkenazy | 8ebfff0 | 2016-02-01 11:56:36 +0200 | [diff] [blame] | 650 | .register(OtuSignalType.class) |
Michele Santuari | 4b6019e | 2014-12-19 11:31:45 +0100 | [diff] [blame] | 651 | .register( |
sangho | b35a619 | 2015-04-01 13:05:26 -0700 | [diff] [blame] | 652 | org.onlab.packet.MplsLabel.class, |
| 653 | org.onlab.packet.MPLS.class |
Marc De Leenheer | bb38235 | 2015-04-23 18:20:34 -0700 | [diff] [blame] | 654 | ) |
Sho SHIMIZU | c0e010dd | 2016-05-02 14:46:22 -0700 | [diff] [blame] | 655 | .register(ClosedOpenRange.class) |
Sho SHIMIZU | c0e010dd | 2016-05-02 14:46:22 -0700 | [diff] [blame] | 656 | .register(DiscreteResourceCodec.class) |
Carmelo Cascone | 804c001 | 2016-06-23 13:05:40 -0700 | [diff] [blame] | 657 | .register(new ImmutableByteSequenceSerializer(), ImmutableByteSequence.class) |
Yuta HIGUCHI | 4859b3a | 2016-08-16 12:58:23 -0700 | [diff] [blame] | 658 | .register(PathIntent.ProtectionType.class) |
Yuta HIGUCHI | 625fb64 | 2016-09-01 16:10:24 -0700 | [diff] [blame] | 659 | .register(ProtectionConstraint.class) |
Andreas Papazois | 0554896 | 2016-11-23 11:36:55 +0200 | [diff] [blame] | 660 | .register(ProtectedTransportEndpointDescription.class) |
| 661 | .register(ProtectionEndpointIntent.class) |
Yuta HIGUCHI | b360bb0 | 2016-12-08 16:40:48 -0800 | [diff] [blame] | 662 | .register(ProtectedTransportIntent.class) |
Yuta HIGUCHI | eb28a7c | 2017-01-13 18:59:27 -0800 | [diff] [blame] | 663 | .register(MarkerResource.class) |
Jordi Ortiz | 1b1a3b4 | 2017-03-03 12:36:54 +0100 | [diff] [blame] | 664 | .register(new BitSetSerializer(), BitSet.class) |
Michele Santuari | 38dd82e | 2017-01-04 09:23:49 +0100 | [diff] [blame] | 665 | .register(DomainIntent.class) |
Pier Luigi | 02778b1 | 2017-09-11 17:51:13 +0200 | [diff] [blame] | 666 | .register(DomainConstraint.class) |
Carmelo Cascone | 72343c5 | 2017-09-05 17:37:10 +0200 | [diff] [blame] | 667 | .register( |
| 668 | // PI model |
Carmelo Cascone | 87892e2 | 2017-11-13 16:01:29 -0800 | [diff] [blame] | 669 | PiActionId.class, |
| 670 | PiActionParamId.class, |
| 671 | PiActionProfileId.class, |
| 672 | PiControlMetadataId.class, |
| 673 | PiCounterId.class, |
| 674 | PiCounterType.class, |
| 675 | PiMatchFieldId.class, |
Carmelo Cascone | 72343c5 | 2017-09-05 17:37:10 +0200 | [diff] [blame] | 676 | PiMatchType.class, |
Carmelo Cascone | 87892e2 | 2017-11-13 16:01:29 -0800 | [diff] [blame] | 677 | PiMeterId.class, |
Frank Wang | d7e3b4b | 2017-09-24 13:37:54 +0900 | [diff] [blame] | 678 | PiMeterCellId.class, |
Carmelo Cascone | 87892e2 | 2017-11-13 16:01:29 -0800 | [diff] [blame] | 679 | PiMeterType.class, |
| 680 | PiPacketOperationType.class, |
Carmelo Cascone | 72343c5 | 2017-09-05 17:37:10 +0200 | [diff] [blame] | 681 | PiPipeconfId.class, |
Carmelo Cascone | 87892e2 | 2017-11-13 16:01:29 -0800 | [diff] [blame] | 682 | PiTableId.class, |
| 683 | PiTableType.class, |
Carmelo Cascone | 72343c5 | 2017-09-05 17:37:10 +0200 | [diff] [blame] | 684 | // PI Runtime |
| 685 | PiAction.class, |
| 686 | PiActionGroup.class, |
Carmelo Cascone | 326ad2d | 2017-11-28 18:09:13 -0800 | [diff] [blame] | 687 | PiActionGroupHandle.class, |
Carmelo Cascone | 72343c5 | 2017-09-05 17:37:10 +0200 | [diff] [blame] | 688 | PiActionGroupId.class, |
| 689 | PiActionGroupMember.class, |
| 690 | PiActionGroupMemberId.class, |
Carmelo Cascone | 72343c5 | 2017-09-05 17:37:10 +0200 | [diff] [blame] | 691 | PiActionParam.class, |
Carmelo Cascone | 87892e2 | 2017-11-13 16:01:29 -0800 | [diff] [blame] | 692 | PiControlMetadata.class, |
| 693 | PiCounterCellData.class, |
| 694 | PiCounterCellId.class, |
Carmelo Cascone | 1a7e4f9 | 2017-11-20 23:04:02 -0800 | [diff] [blame] | 695 | PiEntity.class, |
| 696 | PiEntityType.class, |
Carmelo Cascone | 72343c5 | 2017-09-05 17:37:10 +0200 | [diff] [blame] | 697 | PiExactFieldMatch.class, |
| 698 | PiFieldMatch.class, |
Carmelo Cascone | 87b9b39 | 2017-10-02 18:33:20 +0200 | [diff] [blame] | 699 | PiGroupKey.class, |
Carmelo Cascone | 326ad2d | 2017-11-28 18:09:13 -0800 | [diff] [blame] | 700 | PiHandle.class, |
Carmelo Cascone | 72343c5 | 2017-09-05 17:37:10 +0200 | [diff] [blame] | 701 | PiLpmFieldMatch.class, |
| 702 | PiMatchKey.class, |
Carmelo Cascone | 72343c5 | 2017-09-05 17:37:10 +0200 | [diff] [blame] | 703 | PiPacketOperation.class, |
| 704 | PiPipeconfConfig.class, |
| 705 | PiRangeFieldMatch.class, |
| 706 | PiTableAction.class, |
| 707 | PiTableEntry.class, |
Carmelo Cascone | 72343c5 | 2017-09-05 17:37:10 +0200 | [diff] [blame] | 708 | PiTernaryFieldMatch.class, |
Carmelo Cascone | 1a7e4f9 | 2017-11-20 23:04:02 -0800 | [diff] [blame] | 709 | // PI service |
Carmelo Cascone | 326ad2d | 2017-11-28 18:09:13 -0800 | [diff] [blame] | 710 | PiTableEntryHandle.class, |
Carmelo Cascone | 1a7e4f9 | 2017-11-20 23:04:02 -0800 | [diff] [blame] | 711 | PiTranslatedEntity.class, |
| 712 | PiTranslatable.class, |
Carmelo Cascone | 72343c5 | 2017-09-05 17:37:10 +0200 | [diff] [blame] | 713 | // Other |
| 714 | PiCriterion.class, |
| 715 | PiInstruction.class |
| 716 | ) |
Jordan Halterman | 980a8c1 | 2017-09-22 18:01:19 -0700 | [diff] [blame] | 717 | .register(Upgrade.class) |
| 718 | .register(Upgrade.Status.class) |
Patryk Konopka | 6f01713 | 2017-11-21 10:44:25 +0100 | [diff] [blame] | 719 | .register(L3ModificationInstruction.ModArpEthInstruction.class, |
| 720 | L3ModificationInstruction.ModArpEthInstruction.class, |
| 721 | L3ModificationInstruction.ModArpOpInstruction.class, |
| 722 | L3ModificationInstruction.ModArpIPInstruction.class) |
HIGUCHI Yuta | b2d0fd8 | 2016-05-17 20:34:58 -0700 | [diff] [blame] | 723 | .build("API"); |
Yuta HIGUCHI | 03fec1f | 2014-10-03 09:13:50 -0700 | [diff] [blame] | 724 | |
Jonathan Hart | 679d24d | 2016-05-13 13:29:53 -0700 | [diff] [blame] | 725 | /** |
| 726 | * Kryo registration Id for user custom registration. |
| 727 | */ |
| 728 | public static final int BEGIN_USER_CUSTOM_ID = API_MAX_SIZE + 1; |
Yuta HIGUCHI | 03fec1f | 2014-10-03 09:13:50 -0700 | [diff] [blame] | 729 | |
| 730 | // not to be instantiated |
alshabib | 1aa5814 | 2016-02-17 15:37:56 -0800 | [diff] [blame] | 731 | private KryoNamespaces() { |
| 732 | } |
Yuta HIGUCHI | 03fec1f | 2014-10-03 09:13:50 -0700 | [diff] [blame] | 733 | } |