@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"); }
/** * Builds a {@link KryoNamespace} instance. * * @return KryoNamespace */ public KryoNamespace build() { return build(NO_NAME); }