本文整理汇总了Java中net.floodlightcontroller.linkdiscovery.ILinkDiscoveryListener.linkDiscoveryUpdate方法的典型用法代码示例。如果您正苦于以下问题:Java ILinkDiscoveryListener.linkDiscoveryUpdate方法的具体用法?Java ILinkDiscoveryListener.linkDiscoveryUpdate怎么用?Java ILinkDiscoveryListener.linkDiscoveryUpdate使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类net.floodlightcontroller.linkdiscovery.ILinkDiscoveryListener
的用法示例。
在下文中一共展示了ILinkDiscoveryListener.linkDiscoveryUpdate方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: doUpdatesThread
import net.floodlightcontroller.linkdiscovery.ILinkDiscoveryListener; //导入方法依赖的package包/类
private void doUpdatesThread() throws InterruptedException {
do {
LDUpdate update = updates.take();
List<LDUpdate> updateList = new ArrayList<LDUpdate>();
updateList.add(update);
// Add all the pending updates to the list.
while (updates.peek() != null) {
updateList.add(updates.remove());
}
if (linkDiscoveryAware != null && !updateList.isEmpty()) {
if (log.isDebugEnabled()) {
log.debug("Dispatching link discovery update {} {} {} {} {} {}ms for {}",
new Object[] {
update.getOperation(),
update.getSrc(),
update.getSrcPort(),
update.getDst(),
update.getDstPort(),
update.getLatency().getValue(),
linkDiscoveryAware });
}
try {
for (ILinkDiscoveryListener lda : linkDiscoveryAware) { // order
// maintained
lda.linkDiscoveryUpdate(updateList);
}
} catch (Exception e) {
log.error("Error in link discovery updates loop", e);
}
}
} while (updates.peek() != null);
}
示例2: doUpdatesThread
import net.floodlightcontroller.linkdiscovery.ILinkDiscoveryListener; //导入方法依赖的package包/类
@LogMessageDoc(level = "ERROR",
message = "Error in link discovery updates loop",
explanation = "An unknown error occured while dispatching "
+ "link update notifications",
recommendation = LogMessageDoc.GENERIC_ACTION)
private void doUpdatesThread() throws InterruptedException {
do {
LDUpdate update = updates.take();
List<LDUpdate> updateList = new ArrayList<LDUpdate>();
updateList.add(update);
// Add all the pending updates to the list.
while (updates.peek() != null) {
updateList.add(updates.remove());
}
if (linkDiscoveryAware != null) {
if (log.isTraceEnabled()) {
log.trace("Dispatching link discovery update {} {} {} {} {} for {}",
new Object[] {
update.getOperation(),
update.getSrc().toString(),
update.getSrcPort(),
update.getDst().toString(),
update.getDstPort(),
linkDiscoveryAware });
}
try {
for (ILinkDiscoveryListener lda : linkDiscoveryAware) { // order
// maintained
lda.linkDiscoveryUpdate(updateList);
}
} catch (Exception e) {
log.error("Error in link discovery updates loop", e);
}
}
} while (updates.peek() != null);
}
示例3: doUpdatesThread
import net.floodlightcontroller.linkdiscovery.ILinkDiscoveryListener; //导入方法依赖的package包/类
@LogMessageDoc(level = "ERROR",
message = "Error in link discovery updates loop",
explanation = "An unknown error occured while dispatching "
+ "link update notifications",
recommendation = LogMessageDoc.GENERIC_ACTION)
private void doUpdatesThread() throws InterruptedException {
do {
LDUpdate update = updates.take();
List<LDUpdate> updateList = new ArrayList<LDUpdate>();
updateList.add(update);
// Add all the pending updates to the list.
while (updates.peek() != null) {
updateList.add(updates.remove());
}
if (linkDiscoveryAware != null) {
if (log.isTraceEnabled()) {
log.trace("Dispatching link discovery update {} {} {} {} {} for {}",
new Object[] {
update.getOperation(),
HexString.toHexString(update.getSrc()),
update.getSrcPort(),
HexString.toHexString(update.getDst()),
update.getDstPort(),
linkDiscoveryAware });
}
try {
for (ILinkDiscoveryListener lda : linkDiscoveryAware) { // order
// maintained
lda.linkDiscoveryUpdate(updateList);
}
} catch (Exception e) {
log.error("Error in link discovery updates loop", e);
}
}
} while (updates.peek() != null);
}
示例4: doUpdatesThread
import net.floodlightcontroller.linkdiscovery.ILinkDiscoveryListener; //导入方法依赖的package包/类
@LogMessageDoc(level="ERROR",
message="Error in link discovery updates loop",
explanation="An unknown error occured while dispatching " +
"link update notifications",
recommendation=LogMessageDoc.GENERIC_ACTION)
private void doUpdatesThread() throws InterruptedException {
do {
LDUpdate update = updates.take();
if (linkDiscoveryAware != null) {
if (log.isTraceEnabled()) {
log.trace("Dispatching link discovery update {} {} {} {} {} for {}",
new Object[]{update.getOperation(),
HexString.toHexString(update.getSrc()), update.getSrcPort(),
HexString.toHexString(update.getDst()), update.getDstPort(),
linkDiscoveryAware});
}
try {
for (ILinkDiscoveryListener lda : linkDiscoveryAware) { // order maintained
lda.linkDiscoveryUpdate(update);
}
}
catch (Exception e) {
log.error("Error in link discovery updates loop", e);
}
}
} while (updates.peek() != null);
}
开发者ID:vishalshubham,项目名称:Multipath-Hedera-system-in-Floodlight-controller,代码行数:29,代码来源:LinkDiscoveryManager.java
示例5: doUpdatesThread
import net.floodlightcontroller.linkdiscovery.ILinkDiscoveryListener; //导入方法依赖的package包/类
@LogMessageDoc(level = "ERROR",
message = "Error in link discovery updates loop",
explanation = "An unknown error occured while dispatching "
+ "link update notifications",
recommendation = LogMessageDoc.GENERIC_ACTION)
private void doUpdatesThread() throws InterruptedException {
do {
LDUpdate update = updates.take();
List<LDUpdate> updateList = new ArrayList<LDUpdate>();
updateList.add(update);
// Add all the pending updates to the list.
while (updates.peek() != null) {
updateList.add(updates.remove());
}
if (linkDiscoveryAware != null) {
if (log.isTraceEnabled()) {
log.trace("Dispatching link discovery update {} {} {} {} {} for {}",
new Object[] {
update.getOperation(),
HexString.toHexString(update.getSrc()),
update.getSrcPort(),
HexString.toHexString(update.getDst()),
update.getDstPort(),
linkDiscoveryAware });
}
try {
for (ILinkDiscoveryListener lda : linkDiscoveryAware) { // order
// maintained
lda.linkDiscoveryUpdate(updateList);
}
} catch (Exception e) {
log.error("Error in link discovery updates loop", e);
}
}
} while (updates.peek() != null);
}
示例6: doUpdatesThread
import net.floodlightcontroller.linkdiscovery.ILinkDiscoveryListener; //导入方法依赖的package包/类
@LogMessageDoc(level = "ERROR",
message = "Error in link discovery updates loop",
explanation = "An unknown error occured while dispatching "
+ "link update notifications",
recommendation = LogMessageDoc.GENERIC_ACTION)
private
void doUpdatesThread() throws InterruptedException {
do {
LDUpdate update = updates.take();
List<LDUpdate> updateList = new ArrayList<LDUpdate>();
updateList.add(update);
// Add all the pending updates to the list.
while (updates.peek() != null) {
updateList.add(updates.remove());
}
if (linkDiscoveryAware != null) {
if (log.isTraceEnabled()) {
log.trace("Dispatching link discovery update {} {} {} {} {} for {}",
new Object[] {
update.getOperation(),
HexString.toHexString(update.getSrc()),
update.getSrcPort(),
HexString.toHexString(update.getDst()),
update.getDstPort(),
linkDiscoveryAware });
}
try {
for (ILinkDiscoveryListener lda : linkDiscoveryAware) { // order
// maintained
lda.linkDiscoveryUpdate(updateList);
}
} catch (Exception e) {
log.error("Error in link discovery updates loop", e);
}
}
} while (updates.peek() != null);
}