本文整理汇总了Java中org.onosproject.incubator.net.resource.label.LabelResourceAdminService类的典型用法代码示例。如果您正苦于以下问题:Java LabelResourceAdminService类的具体用法?Java LabelResourceAdminService怎么用?Java LabelResourceAdminService使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
LabelResourceAdminService类属于org.onosproject.incubator.net.resource.label包,在下文中一共展示了LabelResourceAdminService类的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: execute
import org.onosproject.incubator.net.resource.label.LabelResourceAdminService; //导入依赖的package包/类
@Override
protected void execute() {
LabelResourceAdminService lrs = get(LabelResourceAdminService.class);
lrs.createDevicePool(DeviceId.deviceId(deviceId), LabelResourceId
.labelResourceId(Long.parseLong(beginLabel)), LabelResourceId
.labelResourceId(Long.parseLong(endLabel)));
}
示例2: execute
import org.onosproject.incubator.net.resource.label.LabelResourceAdminService; //导入依赖的package包/类
@Override
protected void execute() {
LabelResourceAdminService lrs = get(LabelResourceAdminService.class);
lrs.createGlobalPool(LabelResourceId.labelResourceId(Long
.parseLong(beginLabel)), LabelResourceId.labelResourceId(Long
.parseLong(endLabel)));
}
示例3: initialize
import org.onosproject.incubator.net.resource.label.LabelResourceAdminService; //导入依赖的package包/类
/**
* Initialization of label manager interfaces and pce store.
*
* @param labelRsrcAdminService label resource admin service
* @param labelRsrcService label resource service
* @param flowObjectiveService flow objective service to push device label information
* @param appId application id
* @param pceStore PCE label store
* @param deviceService device service
*/
public void initialize(LabelResourceAdminService labelRsrcAdminService, LabelResourceService labelRsrcService,
FlowObjectiveService flowObjectiveService, ApplicationId appId, PceStore pceStore,
DeviceService deviceService) {
this.labelRsrcAdminService = labelRsrcAdminService;
this.labelRsrcService = labelRsrcService;
this.flowObjectiveService = flowObjectiveService;
this.pceStore = pceStore;
this.appId = appId;
this.deviceService = deviceService;
}
示例4: initialize
import org.onosproject.incubator.net.resource.label.LabelResourceAdminService; //导入依赖的package包/类
/**
* Initialization of label manager interfaces and pce store.
*
* @param labelRsrcAdminService label resource admin service
* @param labelRsrcService label resource service
* @param clientController client controller
* @param pceStore PCE label store
* @param deviceService device service
*/
public void initialize(LabelResourceAdminService labelRsrcAdminService,
LabelResourceService labelRsrcService,
PcepClientController clientController,
PceLabelStore pceStore,
DeviceService deviceService) {
this.labelRsrcAdminService = labelRsrcAdminService;
this.labelRsrcService = labelRsrcService;
this.clientController = clientController;
this.pceStore = pceStore;
this.deviceService = deviceService;
}
示例5: execute
import org.onosproject.incubator.net.resource.label.LabelResourceAdminService; //导入依赖的package包/类
@Override
protected void execute() {
LabelResourceAdminService lrs = get(LabelResourceAdminService.class);
lrs.destroyGlobalPool();
}
示例6: execute
import org.onosproject.incubator.net.resource.label.LabelResourceAdminService; //导入依赖的package包/类
@Override
protected void execute() {
LabelResourceAdminService lrs = get(LabelResourceAdminService.class);
lrs.destroyDevicePool(DeviceId.deviceId(deviceId));
}