• 如果您觉得本站非常有看点,那么赶紧使用Ctrl+D 收藏吧

Java PacketProviderService类的典型用法和代码示例

java 1次浏览

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

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

示例1: start

点赞 2

import org.onosproject.net.packet.PacketProviderService; //导入依赖的package包/类
/**
 * Starts the packet generation process.
 *
 * @param packetRate      packets per second
 * @param hostService     host service
 * @param deviceService   device service
 * @param providerService packet provider service
 */
void start(int packetRate, HostService hostService,
           DeviceAdminService deviceService,
           PacketProviderService providerService) {
    this.hostService = hostService;
    this.providerService = providerService;

    this.devices = copyOf(deviceService.getDevices()).stream()
            .filter(d -> deviceService.getRole(d.id()) == MASTER)
            .collect(Collectors.toList());

    adjustRate(packetRate);
    timeout = timer.newTimeout(new PacketDriverTask(), INITIAL_DELAY, SECONDS);
}
 

开发者ID:shlee89,
项目名称:athena,
代码行数:22,
代码来源:NullPacketProvider.java

示例2: start

点赞 2

import org.onosproject.net.packet.PacketProviderService; //导入依赖的package包/类
/**
 * Starts the packet generation process.
 *
 * @param packetRate      packets per second
 * @param hostService     host service
 * @param deviceService   device service
 * @param providerService packet provider service
 */
void start(int packetRate, HostService hostService,
           DeviceAdminService deviceService,
           PacketProviderService providerService) {
    this.hostService = hostService;
    this.providerService = providerService;

    this.devices = copyOf(deviceService.getDevices()).stream()
            .filter(d -> deviceService.getRole(d.id()) == MASTER)
            .collect(Collectors.toList());

    adjustRate(packetRate);
    timeout = Timer.newTimeout(new PacketDriverTask(), INITIAL_DELAY, SECONDS);
}
 

开发者ID:opennetworkinglab,
项目名称:onos,
代码行数:22,
代码来源:NullPacketProvider.java

示例3: register

点赞 2

import org.onosproject.net.packet.PacketProviderService; //导入依赖的package包/类
@Override
public PacketProviderService register(PacketProvider provider) {
    listener = provider;
    return new TestPacketProviderService();
}
 

开发者ID:shlee89,
项目名称:athena,
代码行数:6,
代码来源:OpenFlowPacketProviderTest.java

示例4: createProviderService

点赞 2

import org.onosproject.net.packet.PacketProviderService; //导入依赖的package包/类
@Override
protected PacketProviderService createProviderService(PacketProvider provider) {
    return new InternalPacketProviderService(provider);
}
 

开发者ID:shlee89,
项目名称:athena,
代码行数:5,
代码来源:PacketManager.java

示例5: setPacketProviderService

点赞 2

import org.onosproject.net.packet.PacketProviderService; //导入依赖的package包/类
public void setPacketProviderService(PacketProviderService packetProviderService) {
    this.packetProviderService = packetProviderService;
}
 

开发者ID:fp7-netide,
项目名称:Engine,
代码行数:4,
代码来源:NetIDEPacketProvider.java


版权声明:本文转自网络文章,转载此文章仅为分享知识,如有侵权,请联系管理员进行删除。
喜欢 (0)