HIGUCHI Yuta
Committed by Gerrit Code Review

Removing MISC, BASIC from registration, they are subset of API

Change-Id: I7e8a816a9a84b36dbd4720e3f6909c2adc99f387
......@@ -103,7 +103,6 @@ public class CordVtnNodeManager {
private static final KryoNamespace.Builder NODE_SERIALIZER = KryoNamespace.newBuilder()
.register(KryoNamespaces.API)
.register(KryoNamespaces.MISC)
.register(CordVtnNode.class)
.register(NodeState.class)
.register(SshAccessInfo.class)
......
......@@ -106,7 +106,6 @@ public class ControlPlaneMonitor implements ControlPlaneMonitorService {
private static final Serializer SERIALIZER = Serializer
.using(new KryoNamespace.Builder()
.register(KryoNamespaces.API)
.register(KryoNamespaces.BASIC)
.register(ControlMetricsRequest.class)
.register(ControlResourceRequest.class)
.register(ControlLoadSnapshot.class)
......
......@@ -145,7 +145,6 @@ public class OpenstackRoutingManager implements OpenstackRoutingService {
private OpenstackNetworkingConfig config;
private static final KryoNamespace.Builder FLOATING_IP_SERIALIZER = KryoNamespace.newBuilder()
.register(KryoNamespaces.API)
.register(KryoNamespaces.MISC)
.register(OpenstackFloatingIP.FloatingIpStatus.class)
.register(OpenstackFloatingIP.class)
.register(Ip4Address.class)
......@@ -153,13 +152,11 @@ public class OpenstackRoutingManager implements OpenstackRoutingService {
private static final KryoNamespace.Builder NUMBER_SERIALIZER = KryoNamespace.newBuilder()
.register(KryoNamespaces.API)
.register(KryoNamespaces.MISC)
.register(Integer.class)
.register(String.class);
private static final KryoNamespace.Builder ROUTER_INTERFACE_SERIALIZER = KryoNamespace.newBuilder()
.register(KryoNamespaces.API)
.register(KryoNamespaces.MISC)
.register(String.class);
private InternalPacketProcessor internalPacketProcessor = new InternalPacketProcessor();
......
......@@ -82,7 +82,7 @@ public class ConsistentResourceStore extends AbstractStore<ResourceEvent, Resour
private static final String CONTINUOUS_CONSUMER_MAP = "onos-continuous-consumers";
private static final String CHILD_MAP = "onos-resource-children";
private static final Serializer SERIALIZER = Serializer.using(
Arrays.asList(KryoNamespaces.BASIC, KryoNamespaces.API),
Arrays.asList(KryoNamespaces.API),
ContinuousResourceAllocation.class);
// TODO: We should provide centralized values for this
......