use of org.onosproject.core.ApplicationId in project onos by opennetworkinglab.
the class DistributedK8sIpamStore method activate.
@Activate
protected void activate() {
ApplicationId appId = coreService.registerApplication(APP_ID);
allocatedStore = storageService.<String, K8sIpam>consistentMapBuilder().withSerializer(Serializer.using(SERIALIZER_K8S_IPAM)).withName("k8s-ipam-allocated-store").withApplicationId(appId).build();
availableStore = storageService.<String, K8sIpam>consistentMapBuilder().withSerializer(Serializer.using(SERIALIZER_K8S_IPAM)).withName("k8s-ipam-available-store").withApplicationId(appId).build();
log.info("Started");
}
use of org.onosproject.core.ApplicationId in project onos by opennetworkinglab.
the class DistributedK8sNetworkPolicyStore method activate.
@Activate
protected void activate() {
ApplicationId appId = coreService.registerApplication(APP_ID);
networkPolicyStore = storageService.<String, NetworkPolicy>consistentMapBuilder().withSerializer(Serializer.using(SERIALIZER_K8S_NETWORK_POLICY)).withName("k8s-network-policy-store").withApplicationId(appId).build();
networkPolicyStore.addListener(networkPolicyMapListener);
log.info("Started");
}
use of org.onosproject.core.ApplicationId in project onos by opennetworkinglab.
the class DistributedK8sServiceStore method activate.
@Activate
protected void activate() {
ApplicationId appId = coreService.registerApplication(APP_ID);
serviceStore = storageService.<String, Service>consistentMapBuilder().withSerializer(Serializer.using(SERIALIZER_K8S_SERVICE)).withName("k8s-service-store").withApplicationId(appId).build();
serviceStore.addListener(serviceMapListener);
log.info("Started");
}
use of org.onosproject.core.ApplicationId in project onos by opennetworkinglab.
the class DistributedK8sHostStore method activate.
@Activate
protected void activate() {
ApplicationId appId = coreService.registerApplication(APP_ID);
hostStore = storageService.<String, K8sHost>consistentMapBuilder().withSerializer(Serializer.using(SERIALIZER_K8S_HOST)).withName("k8s-hoststore").withApplicationId(appId).build();
hostStore.addListener(hostMapListener);
log.info("Started");
}
use of org.onosproject.core.ApplicationId in project onos by opennetworkinglab.
the class DistributedK8sApiConfigStore method activate.
@Activate
protected void activate() {
ApplicationId appId = coreService.registerApplication(APP_ID);
apiConfigStore = storageService.<String, K8sApiConfig>consistentMapBuilder().withSerializer(Serializer.using(SERIALIZER_K8S_API_CONFIG)).withName("k8s-apiconfig-store").withApplicationId(appId).build();
apiConfigStore.addListener(apiConfigMapListener);
log.info("Started");
}
Aggregations