本文整理汇总了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;未经允许,请勿转载。 |
请发表评论