Search in sources :

Example 1 with LabelAllocator

use of org.onosproject.net.resource.impl.LabelAllocator in project onos by opennetworkinglab.

the class PathIntentCompiler method activate.

@Activate
public void activate() {
    appId = coreService.registerApplication("org.onosproject.net.intent");
    registrator.registerCompiler(PathIntent.class, this, false);
    labelAllocator = new LabelAllocator(resourceService);
}
Also used : LabelAllocator(org.onosproject.net.resource.impl.LabelAllocator) Activate(org.osgi.service.component.annotations.Activate)

Example 2 with LabelAllocator

use of org.onosproject.net.resource.impl.LabelAllocator in project onos by opennetworkinglab.

the class LinkCollectionIntentFlowObjectiveCompiler method activate.

@Activate
public void activate() {
    appId = coreService.registerApplication("org.onosproject.net.intent");
    registrator.registerCompiler(LinkCollectionIntent.class, this, true);
    if (labelAllocator == null) {
        labelAllocator = new LabelAllocator(resourceService);
    }
}
Also used : LabelAllocator(org.onosproject.net.resource.impl.LabelAllocator) Activate(org.osgi.service.component.annotations.Activate)

Example 3 with LabelAllocator

use of org.onosproject.net.resource.impl.LabelAllocator in project onos by opennetworkinglab.

the class PathIntentFlowObjectiveCompiler method activate.

@Activate
public void activate() {
    appId = coreService.registerApplication("org.onosproject.net.intent");
    registrator.registerCompiler(PathIntent.class, this, true);
    labelAllocator = new LabelAllocator(resourceService);
}
Also used : LabelAllocator(org.onosproject.net.resource.impl.LabelAllocator) Activate(org.osgi.service.component.annotations.Activate)

Example 4 with LabelAllocator

use of org.onosproject.net.resource.impl.LabelAllocator in project onos by opennetworkinglab.

the class LinkCollectionIntentCompiler method activate.

@Activate
public void activate() {
    appId = coreService.registerApplication("org.onosproject.net.intent");
    registrator.registerCompiler(LinkCollectionIntent.class, this, false);
    if (labelAllocator == null) {
        labelAllocator = new LabelAllocator(resourceService);
    }
}
Also used : LabelAllocator(org.onosproject.net.resource.impl.LabelAllocator) Activate(org.osgi.service.component.annotations.Activate)

Aggregations

LabelAllocator (org.onosproject.net.resource.impl.LabelAllocator)4 Activate (org.osgi.service.component.annotations.Activate)4