@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 public void activate() { log.info("Started"); alarms = storageService.<AlarmId, Alarm>consistentMapBuilder() .withName("onos-alarm-table") .withSerializer(Serializer.using(KryoNamespaces.API, Alarm.class, DefaultAlarm.class, AlarmId.class, AlarmEvent.Type.class, Alarm.SeverityLevel.class, AlarmEntityId.class)) .build(); alarms.addListener(listener); alarmsMap = alarms.asJavaMap(); }
@Activate public void activate() { appId = coreService.registerApplication(VTNRSC_APP); networkIdAsKeyStore = storageService.<TenantNetworkId, TenantNetwork>consistentMapBuilder() .withName(TENANTNETWORK) .withApplicationId(appId) .withPurgeOnUninstall() .withSerializer(Serializer.using(Arrays.asList(KryoNamespaces.API), TenantNetworkId.class, DefaultTenantNetwork.class, TenantNetwork.State.class, TenantId.class, TenantNetwork.Type.class, PhysicalNetwork.class, SegmentationId.class)) .build().asJavaMap(); log.info("Started"); }
@Activate public void activate() { appId = coreService.registerApplication(VTNRSC_APP); networkIdAsKeyStore = storageService.<TenantNetworkId, TenantNetwork>consistentMapBuilder() .withName(TENANTNETWORK) .withApplicationId(appId) .withPurgeOnUninstall() .withSerializer(Serializer.using(Arrays.asList(KryoNamespaces.API), TenantNetworkId.class, DefaultTenantNetwork.class, TenantNetwork.State.class, TenantId.class, TenantNetwork.Type.class, PhysicalNetwork.class, SegmentationId.class)) .build().asJavaMap(); log.info("Started"); }
@Activate public void activate() { appId = coreService.registerApplication(VTNRSC_APP); subnetStore = storageService.<SubnetId, Subnet>consistentMapBuilder() .withName(SUBNET) .withApplicationId(appId) .withPurgeOnUninstall() .withSerializer(Serializer.using(Arrays.asList(KryoNamespaces.API), Subnet.class, SubnetId.class, TenantNetworkId.class, TenantId.class, HostRoute.class, DefaultHostRoute.class, Subnet.Mode.class, AllocationPool.class, DefaultAllocationPool.class, DefaultSubnet.class, IpAddress.Version.class)) .build().asJavaMap(); log.info("Started"); }
@Activate public void activate() { appId = coreService.registerApplication(VTNRSC_APP); subnetStore = storageService.<SubnetId, Subnet>consistentMapBuilder() .withName(SUBNET) .withApplicationId(appId) .withPurgeOnUninstall() .withSerializer(Serializer.using(Arrays.asList(KryoNamespaces.API), Subnet.class, SubnetId.class, TenantNetworkId.class, TenantId.class, HostRoute.class, DefaultHostRoute.class, Subnet.Mode.class, AllocationPool.class, DefaultAllocationPool.class, DefaultSubnet.class, IpAddress.Version.class)) .build().asJavaMap(); 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"); }
globalNodeLabelMap = storageService.<DeviceId, LabelResourceId>consistentMapBuilder() .withName("onos-pce-globalnodelabelmap") .withSerializer(Serializer.using( new KryoNamespace.Builder() .register(KryoNamespaces.API) .withSerializer(Serializer.using( new KryoNamespace.Builder() .register(KryoNamespaces.API) .withSerializer(Serializer.using( new KryoNamespace.Builder() .register(KryoNamespaces.API)
.withSerializer(Serializer.using(KryoNamespaces.API)) .build() .asAtomicValue();
.withSerializer(Serializer.using(KryoNamespaces.API)) .build() .asDistributedSet();
@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"); }
globalNodeLabelMap = storageService.<DeviceId, LabelResourceId>consistentMapBuilder() .withName("onos-pce-globalnodelabelmap") .withSerializer(Serializer.using( new KryoNamespace.Builder() .register(KryoNamespaces.API) .withSerializer(Serializer.using( new KryoNamespace.Builder() .register(KryoNamespaces.API) .withSerializer(Serializer.using( new KryoNamespace.Builder() .register(KryoNamespaces.API) .withSerializer(Serializer.using( new KryoNamespace.Builder() .register(KryoNamespaces.API)
@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"); }
.withApplicationId(appId) .withPurgeOnUninstall() .withSerializer(Serializer.using(Arrays.asList(KryoNamespaces.API))) .build();