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

Java OFFeaturesReplyFuture类代码示例

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

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



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

示例1: OFSwitchBase

import net.floodlightcontroller.core.internal.OFFeaturesReplyFuture; //导入依赖的package包/类
public OFSwitchBase() {
    this.stringId = null;
    this.attributes = new ConcurrentHashMap<Object, Object>();
    this.connectedSince = new Date();
    this.transactionIdSource = new AtomicInteger();
    this.portLock = new Object();
    this.portsByNumber = new ConcurrentHashMap<Short, OFPhysicalPort>();
    this.portsByName = new ConcurrentHashMap<String, OFPhysicalPort>();
    this.connected = true;
    this.statsFutureMap = new ConcurrentHashMap<Integer,OFStatisticsFuture>();
    this.featuresFutureMap = new ConcurrentHashMap<Integer,OFFeaturesReplyFuture>();
    this.iofMsgListenersMap = new ConcurrentHashMap<Integer,IOFMessageListener>();
    this.role = null;
    this.timedCache = new TimedCache<Long>(100, 5*1000 );  // 5 seconds interval
    this.listenerLock = new ReentrantReadWriteLock();
    this.portBroadcastCacheHitMap = new ConcurrentHashMap<Short, AtomicLong>();

    // Defaults properties for an ideal switch
    this.setAttribute(PROP_FASTWILDCARDS, OFMatch.OFPFW_ALL);
    this.setAttribute(PROP_SUPPORTS_OFPP_FLOOD, new Boolean(true));
    this.setAttribute(PROP_SUPPORTS_OFPP_TABLE, new Boolean(true));
}
 
开发者ID:dana-i2cat,项目名称:floodlight-nfv,代码行数:23,代码来源:OFSwitchBase.java


示例2: OFSwitchBase

import net.floodlightcontroller.core.internal.OFFeaturesReplyFuture; //导入依赖的package包/类
public OFSwitchBase() {
    this.stringId = null;
    this.attributes = new ConcurrentHashMap<Object, Object>();
    this.connectedSince = new Date();
    this.transactionIdSource = new AtomicInteger();
    this.portLock = new Object();
    this.portsByNumber = new ConcurrentHashMap<Short, OFPhysicalPort>();
    this.portsByName = new ConcurrentHashMap<String, OFPhysicalPort>();
    this.connected = true;
    this.statsFutureMap = new ConcurrentHashMap<Integer,OFStatisticsFuture>();
    this.featuresFutureMap = new ConcurrentHashMap<Integer,OFFeaturesReplyFuture>();
    this.iofMsgListenersMap = new ConcurrentHashMap<Integer,IOFMessageListener>();
    this.role = null;
    this.timedCache = new TimedCache<Long>(100, 5*1000 );  // 5 seconds interval
    this.listenerLock = new ReentrantReadWriteLock();
    this.portBroadcastCacheHitMap = new ConcurrentHashMap<Short, Long>();
    
    // Defaults properties for an ideal switch
    this.setAttribute(PROP_FASTWILDCARDS, OFMatch.OFPFW_ALL);
    this.setAttribute(PROP_SUPPORTS_OFPP_FLOOD, new Boolean(true));
    this.setAttribute(PROP_SUPPORTS_OFPP_TABLE, new Boolean(true));
}
 
开发者ID:wallnerryan,项目名称:FL_HAND,代码行数:23,代码来源:OFSwitchBase.java


示例3: OFSwitchBase

import net.floodlightcontroller.core.internal.OFFeaturesReplyFuture; //导入依赖的package包/类
public OFSwitchBase() {
    this.stringId = null;
    this.attributes = new ConcurrentHashMap<Object, Object>();
    this.connectedSince = null;
    this.transactionIdSource = new AtomicInteger();
    this.connected = false;
    this.statsFutureMap = new ConcurrentHashMap<Integer,OFStatisticsFuture>();
    this.featuresFutureMap = new ConcurrentHashMap<Integer,OFFeaturesReplyFuture>();
    this.iofMsgListenersMap = new ConcurrentHashMap<Integer,IOFMessageListener>();
    this.role = null;
    this.timedCache = new TimedCache<Long>(100, 5*1000 );  // 5 seconds interval
    this.portBroadcastCacheHitMap = new ConcurrentHashMap<Short, AtomicLong>();
    this.description = new OFDescriptionStatistics();
    this.lastMessageTime = System.currentTimeMillis();

    this.portManager = new PortManager();

    // Defaults properties for an ideal switch
    this.setAttribute(PROP_FASTWILDCARDS, OFMatch.OFPFW_ALL);
    this.setAttribute(PROP_SUPPORTS_OFPP_FLOOD, Boolean.valueOf(true));
    this.setAttribute(PROP_SUPPORTS_OFPP_TABLE, Boolean.valueOf(true));
    if (packetInRateThresholdHigh == 0) {
        packetInRateThresholdHigh = Integer.MAX_VALUE;
    } else {
        packetInRateThresholdLow = packetInRateThresholdHigh / 2;
    }
}
 
开发者ID:JianqingJiang,项目名称:QoS-floodlight,代码行数:28,代码来源:OFSwitchBase.java


示例4: querySwitchFeaturesReply

import net.floodlightcontroller.core.internal.OFFeaturesReplyFuture; //导入依赖的package包/类
@Override
public Future<OFFeaturesReply> querySwitchFeaturesReply()
        throws IOException {
    OFMessage request =
            floodlightProvider.getOFMessageFactory().
                getMessage(OFType.FEATURES_REQUEST);
    request.setXid(getNextTransactionId());
    OFFeaturesReplyFuture future =
            new OFFeaturesReplyFuture(threadPool, this, request.getXid());
    this.featuresFutureMap.put(request.getXid(), future);
    List<OFMessage> msglist = new ArrayList<OFMessage>(1);
    msglist.add(request);
    this.write(msglist);
    return future;
}
 
开发者ID:JianqingJiang,项目名称:QoS-floodlight,代码行数:16,代码来源:OFSwitchBase.java


示例5: deliverOFFeaturesReply

import net.floodlightcontroller.core.internal.OFFeaturesReplyFuture; //导入依赖的package包/类
@Override
public void deliverOFFeaturesReply(OFMessage reply) {
    OFFeaturesReplyFuture future = this.featuresFutureMap.get(reply.getXid());
    if (future != null) {
        future.deliverFuture(this, reply);
        // The future will ultimately unregister itself and call
        // cancelFeaturesReply
        return;
    }
    log.error("Switch {}: received unexpected featureReply", this);
}
 
开发者ID:JianqingJiang,项目名称:QoS-floodlight,代码行数:12,代码来源:OFSwitchBase.java


示例6: querySwitchFeaturesReply

import net.floodlightcontroller.core.internal.OFFeaturesReplyFuture; //导入依赖的package包/类
@Override
public Future<OFFeaturesReply> querySwitchFeaturesReply()
        throws IOException {
    OFMessage request = 
            floodlightProvider.getOFMessageFactory().
                getMessage(OFType.FEATURES_REQUEST);
    request.setXid(getNextTransactionId());
    OFFeaturesReplyFuture future =
            new OFFeaturesReplyFuture(threadPool, this, request.getXid());
    this.featuresFutureMap.put(request.getXid(), future);
    List<OFMessage> msglist = new ArrayList<OFMessage>(1);
    msglist.add(request);
    this.write(msglist);
    return future;
}
 
开发者ID:dana-i2cat,项目名称:floodlight-nfv,代码行数:16,代码来源:OFSwitchBase.java


示例7: querySwitchFeaturesReply

import net.floodlightcontroller.core.internal.OFFeaturesReplyFuture; //导入依赖的package包/类
@Override
public Future<OFFeaturesReply> querySwitchFeaturesReply()
        throws IOException {
    OFMessage request = 
            floodlightProvider.getOFMessageFactory().
                getMessage(OFType.FEATURES_REQUEST);
    request.setXid(getNextTransactionId());
    OFFeaturesReplyFuture future =
            new OFFeaturesReplyFuture(threadPool, this, request.getXid());
    this.featuresFutureMap.put(request.getXid(), future);
    List<OFMessage> msglist = new ArrayList<OFMessage>(1);
    msglist.add(request);
    this.channel.write(msglist);
    return future;
}
 
开发者ID:wallnerryan,项目名称:FL_HAND,代码行数:16,代码来源:OFSwitchBase.java



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


鲜花

握手

雷人

路过

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

请发表评论

全部评论

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

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

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

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

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