@Activate protected void activate() { classifierList = storageService.<DeviceId>setBuilder() .withName("classifier") .withSerializer(Serializer.using(KryoNamespaces.API)) .build() .asDistributedSet(); log.info("Started"); }
@Activate protected void activate() { classifierList = storageService.<DeviceId>setBuilder() .withName("classifier") .withSerializer(Serializer.using(KryoNamespaces.API)) .build() .asDistributedSet(); log.info("Started"); }
@Activate protected void activate() { appId = coreService.registerApplication(PCE_SERVICE_APP); tunnelService.addListener(listener); tunnelConsumerIdGen = coreService.getIdGenerator(TUNNEL_CONSUMER_ID_GEN_TOPIC); localLspIdIdGen = coreService.getIdGenerator(LOCAL_LSP_ID_GEN_TOPIC); localLspIdIdGen.getNewId(); // To prevent 0, the 1st value generated from being used in protocol. localLspIdFreeList = storageService.<Short>setBuilder() .withName("pcepLocalLspIdDeletedList") .withSerializer(Serializer.using(KryoNamespaces.API)) .build() .asDistributedSet(); topologyService.addListener(topologyListener); log.info("Started"); }
.withSerializer(Serializer.using(KryoNamespaces.API)) .build() .asDistributedSet();
@Activate public void activate() { appId = coreService.registerApplication(APP_ID); nshSpiIdGenerator = coreService.getIdGenerator(nshSpiIdTopic); vtnRscService.addListener(vtnRscListener); KryoNamespace.Builder serializer = KryoNamespace .newBuilder() .register(PortChainId.class, UUID.class, FiveTuple.class, IpAddress.class, PortNumber.class, DefaultFiveTuple.class, IpAddress.Version.class, TenantId.class); nshSpiPortChainMap = storageService.<PortChainId, Integer>eventuallyConsistentMapBuilder() .withName("nshSpiPortChainMap").withSerializer(serializer) .withTimestampProvider((k, v) ->new WallClockTimestamp()).build(); portChainFiveTupleMap = storageService.<PortChainId, List<FiveTuple>>eventuallyConsistentMapBuilder() .withName("portChainFiveTupleMap").withSerializer(serializer) .withTimestampProvider((k, v) ->new WallClockTimestamp()).build(); nshSpiIdFreeList = storageService.<Integer>setBuilder() .withName("nshSpiIdDeletedList") .withSerializer(Serializer.using(KryoNamespaces.API)) .build() .asDistributedSet(); packetService.addProcessor(processor, PacketProcessor.director(SFC_PRIORITY)); log.info("Started"); }
@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"); }
.withSerializer(Serializer.using( new KryoNamespace.Builder() .register(KryoNamespaces.API)