@Activate protected void activate() { tunnelInfoMap = storageService.<TunnelId, ResourceConsumer>consistentMapBuilder() .withName("onos-pce-tunnelinfomap") .withSerializer(Serializer.using( new KryoNamespace.Builder() .register(KryoNamespaces.API) .register(TunnelId.class, TunnelConsumerId.class) .build())) .build(); failedPathSet = storageService.<PcePathInfo>setBuilder() .withName("failed-path-info") .withSerializer(SERIALIZER) .build() .asDistributedSet(); tunnelNameExplicitPathInfoMap = storageService.<String, List<ExplicitPathInfo>>consistentMapBuilder() .withName("onos-pce-explicitpathinfo") .withSerializer(Serializer.using( new KryoNamespace.Builder() .register(KryoNamespaces.API) .register(ExplicitPathInfo.class) .register(ExplicitPathInfo.Type.class) .build())) .build(); log.info("Started"); }
.withName("onos-pce-globalnodelabelmap") .withSerializer(Serializer.using( new KryoNamespace.Builder() .register(KryoNamespaces.API) .register(LabelResourceId.class) .withName("onos-pce-adjlabelmap") .withSerializer(Serializer.using( new KryoNamespace.Builder() .register(KryoNamespaces.API) .register(Link.class, .withName("onos-pce-tunnellabelinfomap") .withSerializer(Serializer.using( new KryoNamespace.Builder() .register(KryoNamespaces.API) .register(TunnelId.class,
.withName("onos-pce-globalnodelabelmap") .withSerializer(Serializer.using( new KryoNamespace.Builder() .register(KryoNamespaces.API) .register(LabelResourceId.class) .withName("onos-pce-adjlabelmap") .withSerializer(Serializer.using( new KryoNamespace.Builder() .register(KryoNamespaces.API) .register(Link.class, .withName("onos-pce-tunnelinfomap") .withSerializer(Serializer.using( new KryoNamespace.Builder() .register(KryoNamespaces.API) .register(TunnelId.class, .withName("failed-path-info") .withSerializer(Serializer.using( new KryoNamespace.Builder() .register(KryoNamespaces.API) .register(PcePathInfo.class,
/** * Creates a new {@link KryoNamespace} builder. * * @return builder */ public static Builder newBuilder() { return new Builder(); }