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


Java DeviceProperties类代码示例

本文整理汇总了Java中org.onosproject.segmentrouting.config.DeviceProperties的典型用法代码示例。如果您正苦于以下问题:Java DeviceProperties类的具体用法?Java DeviceProperties怎么用?Java DeviceProperties使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。


DeviceProperties类属于org.onosproject.segmentrouting.config包,在下文中一共展示了DeviceProperties类的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: DefaultGroupHandler

import org.onosproject.segmentrouting.config.DeviceProperties; //导入依赖的package包/类
protected DefaultGroupHandler(DeviceId deviceId, ApplicationId appId,
                              DeviceProperties config,
                              LinkService linkService,
                              FlowObjectiveService flowObjService,
                              SegmentRoutingManager srManager) {
    this.deviceId = checkNotNull(deviceId);
    this.appId = checkNotNull(appId);
    this.deviceConfig = checkNotNull(config);
    this.linkService = checkNotNull(linkService);
    this.allSegmentIds = checkNotNull(config.getAllDeviceSegmentIds());
    try {
        this.nodeSegmentId = config.getSegmentId(deviceId);
        this.isEdgeRouter = config.isEdgeDevice(deviceId);
        this.nodeMacAddr = checkNotNull(config.getDeviceMac(deviceId));
    } catch (DeviceConfigNotFoundException e) {
        log.warn(e.getMessage()
                + " Skipping value assignment in DefaultGroupHandler");
    }
    this.flowObjectiveService = flowObjService;
    this.nsNextObjStore = srManager.nsNextObjStore;
    this.subnetNextObjStore = srManager.subnetNextObjStore;
    this.portNextObjStore = srManager.portNextObjStore;
    this.srManager = srManager;

    populateNeighborMaps();
}
 
开发者ID:shlee89,项目名称:athena,代码行数:27,代码来源:DefaultGroupHandler.java

示例2: createGroupHandler

import org.onosproject.segmentrouting.config.DeviceProperties; //导入依赖的package包/类
/**
 * Creates a group handler object based on the type of device. If device is
 * of edge type it returns edge group handler, else it returns transit group
 * handler.
 *
 * @param deviceId device identifier
 * @param appId application identifier
 * @param config interface to retrieve the device properties
 * @param linkService link service object
 * @param flowObjService flow objective service object
 * @param srManager segment routing manager
 * @throws DeviceConfigNotFoundException if the device configuration is not found
 * @return default group handler type
 */
public static DefaultGroupHandler createGroupHandler(
                                      DeviceId deviceId,
                                      ApplicationId appId,
                                      DeviceProperties config,
                                      LinkService linkService,
                                      FlowObjectiveService flowObjService,
                                      SegmentRoutingManager srManager)
                                              throws DeviceConfigNotFoundException {
    // handle possible exception in the caller
    if (config.isEdgeDevice(deviceId)) {
        return new DefaultEdgeGroupHandler(deviceId, appId, config,
                                           linkService,
                                           flowObjService,
                                           srManager
                                           );
    } else {
        return new DefaultTransitGroupHandler(deviceId, appId, config,
                                              linkService,
                                              flowObjService,
                                              srManager);
    }
}
 
开发者ID:shlee89,项目名称:athena,代码行数:37,代码来源:DefaultGroupHandler.java

示例3: DefaultTransitGroupHandler

import org.onosproject.segmentrouting.config.DeviceProperties; //导入依赖的package包/类
protected DefaultTransitGroupHandler(DeviceId deviceId,
                              ApplicationId appId,
                              DeviceProperties config,
                              LinkService linkService,
                              FlowObjectiveService flowObjService,
                              SegmentRoutingManager srManager) {
    super(deviceId, appId, config, linkService, flowObjService, srManager);
}
 
开发者ID:shlee89,项目名称:athena,代码行数:9,代码来源:DefaultTransitGroupHandler.java

示例4: DefaultEdgeGroupHandler

import org.onosproject.segmentrouting.config.DeviceProperties; //导入依赖的package包/类
protected DefaultEdgeGroupHandler(DeviceId deviceId,
                              ApplicationId appId,
                              DeviceProperties config,
                              LinkService linkService,
                              FlowObjectiveService flowObjService,
                              SegmentRoutingManager srManager) {
    super(deviceId, appId, config, linkService, flowObjService, srManager);
}
 
开发者ID:shlee89,项目名称:athena,代码行数:9,代码来源:DefaultEdgeGroupHandler.java

示例5: DefaultGroupHandler

import org.onosproject.segmentrouting.config.DeviceProperties; //导入依赖的package包/类
protected DefaultGroupHandler(DeviceId deviceId, ApplicationId appId,
                              DeviceProperties config,
                              LinkService linkService,
                              FlowObjectiveService flowObjService,
                              SegmentRoutingManager srManager) {
    this.deviceId = checkNotNull(deviceId);
    this.appId = checkNotNull(appId);
    this.deviceConfig = checkNotNull(config);
    this.linkService = checkNotNull(linkService);
    this.allSegmentIds = checkNotNull(config.getAllDeviceSegmentIds());
    try {
        this.ipv4NodeSegmentId = config.getIPv4SegmentId(deviceId);
        this.ipv6NodeSegmentId = config.getIPv6SegmentId(deviceId);
        this.isEdgeRouter = config.isEdgeDevice(deviceId);
        this.nodeMacAddr = checkNotNull(config.getDeviceMac(deviceId));
    } catch (DeviceConfigNotFoundException e) {
        log.warn(e.getMessage()
                + " Skipping value assignment in DefaultGroupHandler");
    }
    this.flowObjectiveService = flowObjService;
    this.dsNextObjStore = srManager.dsNextObjStore();
    this.vlanNextObjStore = srManager.vlanNextObjStore();
    this.portNextObjStore = srManager.portNextObjStore();
    this.srManager = srManager;
    executorService.scheduleWithFixedDelay(new BucketCorrector(), 10,
                                           VERIFY_INTERVAL,
                                           TimeUnit.SECONDS);
    populateNeighborMaps();
}
 
开发者ID:opennetworkinglab,项目名称:onos,代码行数:30,代码来源:DefaultGroupHandler.java

示例6: createGroupHandler

import org.onosproject.segmentrouting.config.DeviceProperties; //导入依赖的package包/类
/**
 * Creates a group handler object.
 *
 * @param deviceId device identifier
 * @param appId application identifier
 * @param config interface to retrieve the device properties
 * @param linkService link service object
 * @param flowObjService flow objective service object
 * @param srManager segment routing manager
 * @throws DeviceConfigNotFoundException if the device configuration is not found
 * @return default group handler type
 */
public static DefaultGroupHandler createGroupHandler(
                                                     DeviceId deviceId,
                                                     ApplicationId appId,
                                                     DeviceProperties config,
                                                     LinkService linkService,
                                                     FlowObjectiveService flowObjService,
                                                     SegmentRoutingManager srManager)
                                                             throws DeviceConfigNotFoundException {
    return new DefaultGroupHandler(deviceId, appId, config,
                                   linkService,
                                   flowObjService,
                                   srManager);
}
 
开发者ID:opennetworkinglab,项目名称:onos,代码行数:26,代码来源:DefaultGroupHandler.java

示例7: PolicyGroupHandler

import org.onosproject.segmentrouting.config.DeviceProperties; //导入依赖的package包/类
/**
 * Constructs policy group handler.
 *
 * @param deviceId device identifier
 * @param appId application identifier
 * @param config interface to retrieve the device properties
 * @param linkService link service object
 * @param flowObjService flow objective service object
 * @param srManager segment routing manager
 */
public PolicyGroupHandler(DeviceId deviceId,
                          ApplicationId appId,
                          DeviceProperties config,
                          LinkService linkService,
                          FlowObjectiveService flowObjService,
                          SegmentRoutingManager srManager) {
    super(deviceId, appId, config, linkService, flowObjService, srManager);
}
 
开发者ID:shlee89,项目名称:athena,代码行数:19,代码来源:PolicyGroupHandler.java


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