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

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

java 2次浏览

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

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

示例1: localEmit

点赞 2

import org.onosproject.net.packet.PacketProvider; //导入依赖的package包/类
private void localEmit(OutboundPacket packet) {
    Device device = deviceService.getDevice(packet.sendThrough());
    if (device == null) {
        return;
    }
    PacketProvider packetProvider = getProvider(device.providerId());
    if (packetProvider != null) {
        packetProvider.emit(packet);
    }
}
 

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

示例2: localEmit

点赞 2

import org.onosproject.net.packet.PacketProvider; //导入依赖的package包/类
private void localEmit(OutboundPacket packet) {
    final Device device = deviceService.getDevice(packet.sendThrough());

    if (device == null) {
        return;
    }

    final PacketProvider packetProvider = getProvider(device.providerId());

    if (packetProvider != null) {
        packetProvider.emit(packet);
    }
}
 

开发者ID:ravikumaran2015,
项目名称:ravikumaran201504,
代码行数:14,
代码来源:PacketManager.java

示例3: register

点赞 2

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

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

示例4: unregister

点赞 2

import org.onosproject.net.packet.PacketProvider; //导入依赖的package包/类
@Override
public void unregister(PacketProvider provider) {
    listener = null;
}
 

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

示例5: provider

点赞 2

import org.onosproject.net.packet.PacketProvider; //导入依赖的package包/类
@Override
public PacketProvider provider() {
    return null;
}
 

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

示例6: defaultProvider

点赞 2

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

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

示例7: createProviderService

点赞 2

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

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

示例8: InternalPacketProviderService

点赞 2

import org.onosproject.net.packet.PacketProvider; //导入依赖的package包/类
protected InternalPacketProviderService(PacketProvider provider) {
    super(provider);
}
 

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


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