当前位置: 首页>>代码示例>>Java>>正文


Java LabelResourceAdminService类代码示例

本文整理汇总了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)));
}
 
开发者ID:shlee89,项目名称:athena,代码行数:8,代码来源:LabelPoolCreateCommand.java

示例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)));
}
 
开发者ID:shlee89,项目名称:athena,代码行数:8,代码来源:GlobalLabelPoolCreateCommand.java

示例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;
}
 
开发者ID:shlee89,项目名称:athena,代码行数:21,代码来源:PceccSrTeBeHandler.java

示例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;
}
 
开发者ID:opennetworkinglab,项目名称:onos,代码行数:21,代码来源:PceccSrTeBeHandler.java

示例5: execute

import org.onosproject.incubator.net.resource.label.LabelResourceAdminService; //导入依赖的package包/类
@Override
protected void execute() {
    LabelResourceAdminService lrs = get(LabelResourceAdminService.class);
    lrs.destroyGlobalPool();
}
 
开发者ID:shlee89,项目名称:athena,代码行数:6,代码来源:GlobalLabelPoolDestoryCommand.java

示例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));
}
 
开发者ID:shlee89,项目名称:athena,代码行数:6,代码来源:LabelPoolDestroyCommand.java


注:本文中的org.onosproject.incubator.net.resource.label.LabelResourceAdminService类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。