• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

Java IDataPacketService类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

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



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

示例1: unsetDataPacketService

import org.opendaylight.controller.sal.packet.IDataPacketService; //导入依赖的package包/类
/**
 * Unsets DataPacketService
 */
void unsetDataPacketService(IDataPacketService s) {
    log.trace("Removed DataPacketService.");

    if (dataPacketService == s) {
        dataPacketService = null;
    }
}
 
开发者ID:pahharo,项目名称:dissectorapp,代码行数:11,代码来源:DissectorHandler.java


示例2: configureInstance

import org.opendaylight.controller.sal.packet.IDataPacketService; //导入依赖的package包/类
public void configureInstance(Component c, Object imp, String containerName) {
    log.trace("Configuring instance");

    if (imp.equals(DissectorHandler.class)) {
        // Define exported and used services for DissectorHandler component.

        Dictionary<String, Object> props = new Hashtable<String, Object>();
        props.put("salListenerName", "myDissectorHandler");

        // Export IListenDataPacket interface to receive packet-in events.
        c.setInterface(new String[] {IListenDataPacket.class.getName()}, props);

        // Need the DataPacketService for encoding, decoding, sending data packets
        c.add(createContainerServiceDependency(containerName).setService(
                IDataPacketService.class).setCallbacks(
                "setDataPacketService", "unsetDataPacketService")
                .setRequired(true));
        
        // Need FlowProgrammerService for programming flows
        c.add(createContainerServiceDependency(containerName).setService(
                IFlowProgrammerService.class).setCallbacks(
                "setFlowProgrammerService", "unsetFlowProgrammerService")
                .setRequired(true));
        
        // Need SwitchManager service for enumerating ports of switch
        c.add(createContainerServiceDependency(containerName).setService(
                ISwitchManager.class).setCallbacks(
                "setSwitchManagerService", "unsetSwitchManagerService")
                .setRequired(true));
    }

}
 
开发者ID:pahharo,项目名称:dissectorapp,代码行数:33,代码来源:Activator.java


示例3: unsetDataPacketService

import org.opendaylight.controller.sal.packet.IDataPacketService; //导入依赖的package包/类
/**
 * Callback called by OpenDaylight when DataPacketService is unbound.
 */
void unsetDataPacketService(IDataPacketService s) {
    log.trace("Removed DataPacketService.");

    if (dataPacketService == s) {
        dataPacketService = null;
    }
}
 
开发者ID:duerrfk,项目名称:sdn-mq,代码行数:11,代码来源:PacketHandler.java


示例4: unsetDataPacketService

import org.opendaylight.controller.sal.packet.IDataPacketService; //导入依赖的package包/类
/**
 * Unbind from DataPacketService.
 */
void unsetDataPacketService(IDataPacketService s) {
    log.trace("Unbind from DataPacketService.");

    if (dataPacketService == s) {
        dataPacketService = null;
    }
}
 
开发者ID:duerrfk,项目名称:sdn-mq,代码行数:11,代码来源:PacketForwarder.java


示例5: configureInstance

import org.opendaylight.controller.sal.packet.IDataPacketService; //导入依赖的package包/类
public void configureInstance(Component c, Object imp, String containerName) {
    if (imp.equals(PacketHandler.class)) {
        log.trace("Configuring packet handler");
     
        // Export IListenDataPacket interface to receive packet-in events.
        Dictionary<String, Object> props = new Hashtable<String, Object>();
        props.put("salListenerName", "sdnmq");
        c.setInterface(new String[] {IListenDataPacket.class.getName()}, props);

        // Need the DataPacketService for decoding data packets
        c.add(createContainerServiceDependency(containerName).setService(
                IDataPacketService.class).setCallbacks(
                        "setDataPacketService", "unsetDataPacketService").setRequired(true));

    } else if (imp.equals(PacketForwarder.class)) {
        log.trace("Configuring packet forwarder");
        
        // Need the DataPacketService for encoding and sending packets
        c.add(createContainerServiceDependency(containerName).setService(
                IDataPacketService.class).setCallbacks(
                        "setDataPacketService", "unsetDataPacketService").setRequired(true));
        
        // Need SwitchManager service for finding nodes and node connectors
        c.add(createContainerServiceDependency(containerName).setService(
                ISwitchManager.class).setCallbacks(
                        "setSwitchManagerService", "unsetSwitchManagerService").setRequired(true));
    } else if (imp.equals(FlowProgrammer.class)) {
        log.trace("Configuring flow programmer");
        
        // Need SwitchManager service for finding nodes and node connectors
        c.add(createContainerServiceDependency(containerName).setService(
                ISwitchManager.class).setCallbacks(
                        "setSwitchManagerService", "unsetSwitchManagerService").setRequired(true));
        
        // Need FlowProgrammerService for programming flows
        c.add(createContainerServiceDependency(containerName).setService(
                IFlowProgrammerService.class).setCallbacks(
                        "setFlowProgrammerService", "unsetFlowProgrammerService").setRequired(true));
    }
}
 
开发者ID:duerrfk,项目名称:sdn-mq,代码行数:41,代码来源:Activator.java


示例6: configureInstance

import org.opendaylight.controller.sal.packet.IDataPacketService; //导入依赖的package包/类
/**
 * Function that is called when configuration of the dependencies
 * is required.
 *
 * @param c dependency manager Component object, used for
 * configuring the dependencies exported and imported
 * @param imp Implementation class that is being configured,
 * needed as long as the same routine can configure multiple
 * implementations
 * @param containerName The containerName being configured, this allow
 * also optional per-container different behavior if needed, usually
 * should not be the case though.
 */
public void configureInstance(Component c, Object imp, String containerName) {
    if (imp.equals(ArpHandler.class)) {
        // export the service
        Dictionary<String, String> props = new Hashtable<String, String>();
        props.put("salListenerName", "arphandler");
        c.setInterface(new String[] { IHostFinder.class.getName(),
                IListenDataPacket.class.getName() }, props);

        c.add(createContainerServiceDependency(containerName).setService(
                ISwitchManager.class).setCallbacks("setSwitchManager",
                "unsetSwitchManager").setRequired(true));

        c.add(createContainerServiceDependency(containerName).setService(
                ITopologyManager.class).setCallbacks("setTopologyManager",
                "unsetTopologyMananger").setRequired(true));

       c.add(createContainerServiceDependency(containerName).setService(
                IDataPacketService.class).setCallbacks(
                "setDataPacketService", "unsetDataPacketService")
                .setRequired(true));

        // the Host Listener is optional
        c.add(createContainerServiceDependency(containerName).setService(
                IfHostListener.class).setCallbacks("setHostListener",
                "unsetHostListener").setRequired(false));

        // the IfIptoHost is a required dependency
        c.add(createContainerServiceDependency(containerName).setService(
                IfIptoHost.class).setCallbacks("setHostTracker",
                "unsetHostTracker").setRequired(true));
    }
}
 
开发者ID:lbchen,项目名称:ODL,代码行数:46,代码来源:Activator.java


示例7: configureInstance

import org.opendaylight.controller.sal.packet.IDataPacketService; //导入依赖的package包/类
/**
 * Function that is called when configuration of the dependencies is
 * required.
 *
 * @param c
 *            dependency manager Component object, used for configuring the
 *            dependencies exported and imported
 * @param imp
 *            Implementation class that is being configured, needed as long
 *            as the same routine can configure multiple implementations
 * @param containerName
 *            The containerName being configured, this allow also optional
 *            per-container different behavior if needed, usually should not
 *            be the case though.
 */
@Override
public void configureInstance(Component c, Object imp, String containerName) {
    if (imp.equals(DeviceManagerImpl.class)) {
        // export the service
        // XXX - TODO merge with existing APIs
        Dictionary<String, String> props = new Hashtable<String, String>();
        props.put("salListenerName", "devicemanager");

        c.setInterface(
                new String[] { IDeviceService.class.getName(),
                        IfIptoHost.class.getName(),
                        IListenDataPacket.class.getName(),
                        ITopologyManagerAware.class.getName() }, props);

        c.add(createContainerServiceDependency(containerName)
                .setService(ISwitchManager.class)
                .setCallbacks("setSwitchManager", "unsetSwitchManager")
                .setRequired(false));

        c.add(createContainerServiceDependency(containerName)
                .setService(IDataPacketService.class)
                .setCallbacks("setDataPacketService",
                        "unsetDataPacketService").setRequired(true));

        c.add(createContainerServiceDependency(containerName)
                .setService(IfNewHostNotify.class)
                .setCallbacks("setNewHostNotify",
                        "unsetNewHostNotify").setRequired(false));

        // c.add(createContainerServiceDependency(containerName).setService(
        // IClusterContainerServices.class).setCallbacks(
        // "setClusterContainerService",
        // "unsetClusterContainerService").setRequired(true));
        c.add(createContainerServiceDependency(containerName)
                .setService(ITopologyManager.class)
                .setCallbacks("setTopologyManager", "unsetTopologyManager")
                .setRequired(false));
    }
}
 
开发者ID:lbchen,项目名称:ODL,代码行数:55,代码来源:Activator.java


示例8: configureInstance

import org.opendaylight.controller.sal.packet.IDataPacketService; //导入依赖的package包/类
/**
 * Function that is called when configuration of the dependencies
 * is required.
 *
 * @param c dependency manager Component object, used for
 * configuring the dependencies exported and imported
 * @param imp Implementation class that is being configured,
 * needed as long as the same routine can configure multiple
 * implementations
 * @param containerName The containerName being configured, this allow
 * also optional per-container different behavior if needed, usually
 * should not be the case though.
 */
public void configureInstance(Component c, Object imp, String containerName) {
    if (imp.equals(LoadBalancerService.class)) {
        // export the service
        Dictionary<String, String> props = new Hashtable<String, String>();
        props.put("salListenerName", "loadbalancer");

        c.setInterface(new String[] { IListenDataPacket.class.getName(),
                    IConfigManager.class.getName()}, props);

        c.add(createContainerServiceDependency(containerName).setService(
                IDataPacketService.class).setCallbacks(
                "setDataPacketService", "unsetDataPacketService")
                .setRequired(true));

        c.add(createContainerServiceDependency(containerName).setService(
                IRouting.class).setCallbacks("setRouting", "unsetRouting")
                .setRequired(false));

        c.add(createContainerServiceDependency(containerName).setService(
                IfIptoHost.class).setCallbacks("setHostTracker",
                "unsetHostTracker").setRequired(true));

        c.add(createContainerServiceDependency(containerName).setService(
                IForwardingRulesManager.class).setCallbacks(
                "setForwardingRulesManager", "unsetForwardingRulesManager")
                .setRequired(true));
    }
}
 
开发者ID:lbchen,项目名称:ODL,代码行数:42,代码来源:Activator.java


示例9: configureInstance

import org.opendaylight.controller.sal.packet.IDataPacketService; //导入依赖的package包/类
/**
 * Function that is called when configuration of the dependencies
 * is required.
 *
 * @param c dependency manager Component object, used for
 * configuring the dependencies exported and imported
 * @param imp Implementation class that is being configured,
 * needed as long as the same routine can configure multiple
 * implementations
 * @param containerName The containerName being configured, this allow
 * also optional per-container different behavior if needed, usually
 * should not be the case though.
 */
public void configureInstance(Component c, Object imp, String containerName) {
    if (imp.equals(QoSHandler.class)) {
        // export the service
        Dictionary<String, String> props = new Hashtable<String, String>();
        props.put("salListenerName", "qoshandler");
        c.setInterface(new String[] { IPluginOutDataPacketService.class.getName(),
                IListenDataPacket.class.getName() }, props);

        c.add(createContainerServiceDependency(containerName).setService(
                ISwitchManager.class).setCallbacks("setSwitchManager",
                "unsetSwitchManager").setRequired(true));

        c.add(createContainerServiceDependency(containerName).setService(
                ITopologyManager.class).setCallbacks("setTopologyManager",
                "unsetTopologyMananger").setRequired(true));

       c.add(createContainerServiceDependency(containerName).setService(
                IDataPacketService.class).setCallbacks(
                "setDataPacketService", "unsetDataPacketService")
                .setRequired(true));

        // the Host Listener is optional
        c.add(createContainerServiceDependency(containerName).setService(
                IfHostListener.class).setCallbacks("setHostListener",
                "unsetHostListener").setRequired(false));

        // the IfIptoHost is a required dependency
        c.add(createContainerServiceDependency(containerName).setService(
                IfIptoHost.class).setCallbacks("setHostTracker",
                "unsetHostTracker").setRequired(true));
    }
}
 
开发者ID:lbchen,项目名称:ODL,代码行数:46,代码来源:Activator.java


示例10: setDataPacketService

import org.opendaylight.controller.sal.packet.IDataPacketService; //导入依赖的package包/类
/**
 * Sets a reference to the requested DataPacketService
 */
void setDataPacketService(IDataPacketService s) {
    log.trace("Set DataPacketService.");

    dataPacketService = s;
}
 
开发者ID:pahharo,项目名称:dissectorapp,代码行数:9,代码来源:DissectorHandler.java


示例11: setDataPacketService

import org.opendaylight.controller.sal.packet.IDataPacketService; //导入依赖的package包/类
public void setDataPacketService(IDataPacketService s) {
    log.trace("Set DataPacketService.");
    this.dataPacketService = s;
}
 
开发者ID:imcmy,项目名称:ODLJumpIP,代码行数:5,代码来源:JumpIP.java


示例12: unsetDataPacketService

import org.opendaylight.controller.sal.packet.IDataPacketService; //导入依赖的package包/类
public void unsetDataPacketService(IDataPacketService s) {
    log.trace("Removed DataPacketService.");
    if (this.dataPacketService == s) {
        this.dataPacketService = null;
    }
}
 
开发者ID:imcmy,项目名称:ODLJumpIP,代码行数:7,代码来源:JumpIP.java


示例13: configureInstance

import org.opendaylight.controller.sal.packet.IDataPacketService; //导入依赖的package包/类
@Override
public void configureInstance(Component c, Object imp, String containerName) {
    if (imp.equals(JumpIP.class)) {
        // export the service needed to listen to topology updates
        final Dictionary<String, Object> props = new Hashtable<String, Object>();
        props.put("StatisgetListenerName", "Statisget");
        props.put("salListenerName", "datapacketget");
        props.put("topoListenerName", "topoget");
        
        //listen topology to update topo & handle packet_in
        c.setInterface(new String[] { ITopologyManagerAware.class.getName(),
                 IListenDataPacket.class.getName() }, props);
        
        //statistics service
        c.add(createContainerServiceDependency(containerName)
            .setService(IStatisticsManager.class)
            .setCallbacks("setStatisticsManager", "unsetStatisticsManager")
            .setRequired(false));

        //flowprogrammer service
        c.add(createContainerServiceDependency(containerName)
            .setService(IFlowProgrammerService.class)
            .setCallbacks("setFlowProgrammerService","unsetFlowProgrammerService")
            .setRequired(true));

        //topology service
        c.add(createContainerServiceDependency(containerName)
            .setService(ITopologyManager.class)
            .setCallbacks("setTopologyManager", "unsetTopologyManager")
            .setRequired(true));
        
        //switch service
        c.add(createContainerServiceDependency(containerName)
            .setService(ISwitchManager.class)
            .setCallbacks("setSwitchManager", "unsetSwitchManager")
            .setRequired(false));
        c.add(createContainerServiceDependency(containerName)
            .setService(IfIptoHost.class)
            .setCallbacks("setHostTracker", "unsetHostTracker")
            .setRequired(true));
        c.add(createContainerServiceDependency(containerName)
            .setService(IDataPacketService.class)
            .setCallbacks("setDataPacketService", "unsetDataPacketService")
            .setRequired(true));
        c.add(createContainerServiceDependency(containerName)
            .setService(IForwardingRulesManager.class)
            .setCallbacks("setForwarder", "unsetForwarder")
            .setRequired(true));   
    }
}
 
开发者ID:imcmy,项目名称:ODLJumpIP,代码行数:51,代码来源:Activator.java


示例14: setDataPacketService

import org.opendaylight.controller.sal.packet.IDataPacketService; //导入依赖的package包/类
/**
 * Callback invoked by OpenDaylight when DataPacketService is bound.
 */
void setDataPacketService(IDataPacketService s) {
    log.trace("Set DataPacketService.");

    dataPacketService = s;
}
 
开发者ID:duerrfk,项目名称:sdn-mq,代码行数:9,代码来源:PacketHandler.java


示例15: setDataPacketService

import org.opendaylight.controller.sal.packet.IDataPacketService; //导入依赖的package包/类
/**
 * Bind to DataPacketService.
 */
void setDataPacketService(IDataPacketService s) {
    log.trace("Bind to DataPacketService.");

    dataPacketService = s;
}
 
开发者ID:duerrfk,项目名称:sdn-mq,代码行数:9,代码来源:PacketForwarder.java


示例16: setDataPacketService

import org.opendaylight.controller.sal.packet.IDataPacketService; //导入依赖的package包/类
void setDataPacketService(IDataPacketService s) {
    this.dataPacketService = s;
}
 
开发者ID:lbchen,项目名称:ODL,代码行数:4,代码来源:ArpHandler.java


示例17: unsetDataPacketService

import org.opendaylight.controller.sal.packet.IDataPacketService; //导入依赖的package包/类
void unsetDataPacketService(IDataPacketService s) {
    if (this.dataPacketService == s) {
        this.dataPacketService = null;
    }
}
 
开发者ID:lbchen,项目名称:ODL,代码行数:6,代码来源:ArpHandler.java


示例18: setDataPacketService

import org.opendaylight.controller.sal.packet.IDataPacketService; //导入依赖的package包/类
void setDataPacketService(IDataPacketService s) {
	this.dataPacketService = s;
}
 
开发者ID:lbchen,项目名称:ODL,代码行数:4,代码来源:QoSHandler.java


示例19: unsetDataPacketService

import org.opendaylight.controller.sal.packet.IDataPacketService; //导入依赖的package包/类
void unsetDataPacketService(IDataPacketService s) {
	if (this.dataPacketService == s) {
		this.dataPacketService = null;
	}
}
 
开发者ID:lbchen,项目名称:ODL,代码行数:6,代码来源:QoSHandler.java



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


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
Java FindRequest类代码示例发布时间:2022-05-22
下一篇:
Java PDIObserver类代码示例发布时间:2022-05-22
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap