当前位置: 首页>>代码示例>>Java>>正文


Java OFVendorId类代码示例

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


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

示例1: initialize

import org.openflow.protocol.vendor.OFVendorId; //导入依赖的package包/类
public static synchronized void initialize() {
    if (initialized)
        return;

    // Configure openflowj to be able to parse the OpenFlow extensions.
    OFBasicVendorId openflowVendorId =
            new OFBasicVendorId(OFOpenFlowVendorData.OF_VENDOR_ID, 4);
    OFVendorId.registerVendorId(openflowVendorId);

    OFBasicVendorDataType queueModifyVendorData =
            new OFBasicVendorDataType(OFQueueModifyVendorData.OFP_EXT_QUEUE_MODIFY,
                    OFQueueModifyVendorData.getInstantiable());
    openflowVendorId.registerVendorDataType(queueModifyVendorData);

    OFBasicVendorDataType queueDeleteVendorData =
            new OFBasicVendorDataType(OFQueueDeleteVendorData.OFP_EXT_QUEUE_DELETE,
                    OFQueueModifyVendorData.getInstantiable());
    openflowVendorId.registerVendorDataType(queueDeleteVendorData);

    initialized = true;
}
 
开发者ID:JianqingJiang,项目名称:QoS-floodlight,代码行数:22,代码来源:OFOpenFlowVendorExtensions.java

示例2: initialize

import org.openflow.protocol.vendor.OFVendorId; //导入依赖的package包/类
public static synchronized void initialize() {
    if (initialized)
        return;

    // Configure openflowj to be able to parse the role request/reply
    // vendor messages.
    OFBasicVendorId niciraVendorId =
            new OFBasicVendorId(OFNiciraVendorData.NX_VENDOR_ID, 4);
    OFVendorId.registerVendorId(niciraVendorId);
    OFBasicVendorDataType roleRequestVendorData =
            new OFBasicVendorDataType(OFRoleRequestVendorData.NXT_ROLE_REQUEST,
                    OFRoleRequestVendorData.getInstantiable());
    niciraVendorId.registerVendorDataType(roleRequestVendorData);
    OFBasicVendorDataType roleReplyVendorData =
            new OFBasicVendorDataType(OFRoleReplyVendorData.NXT_ROLE_REPLY,
                    OFRoleReplyVendorData.getInstantiable());
    niciraVendorId.registerVendorDataType(roleReplyVendorData);

    initialized = true;
}
 
开发者ID:JianqingJiang,项目名称:QoS-floodlight,代码行数:21,代码来源:OFNiciraVendorExtensions.java

示例3: initVendorMessages

import org.openflow.protocol.vendor.OFVendorId; //导入依赖的package包/类
private void initVendorMessages() {
    // Configure openflowj to be able to parse the role request/reply
    // vendor messages.
    OFBasicVendorId niciraVendorId = new OFBasicVendorId(
            OFNiciraVendorData.NX_VENDOR_ID, 4);
    OFVendorId.registerVendorId(niciraVendorId);
    OFBasicVendorDataType roleRequestVendorData =
            new OFBasicVendorDataType(
                    OFRoleRequestVendorData.NXT_ROLE_REQUEST,
                    OFRoleRequestVendorData.getInstantiable());
    niciraVendorId.registerVendorDataType(roleRequestVendorData);
    OFBasicVendorDataType roleReplyVendorData =
            new OFBasicVendorDataType(
                    OFRoleReplyVendorData.NXT_ROLE_REPLY,
                    OFRoleReplyVendorData.getInstantiable());
     niciraVendorId.registerVendorDataType(roleReplyVendorData);
}
 
开发者ID:vishalshubham,项目名称:Multipath-Hedera-system-in-Floodlight-controller,代码行数:18,代码来源:Controller.java

示例4: initialize

import org.openflow.protocol.vendor.OFVendorId; //导入依赖的package包/类
public static synchronized void initialize() {
    if (initialized)
        return;

    // Configure openflowj to be able to parse the role request/reply
    // vendor messages.
    OFBasicVendorId niciraVendorId = new OFBasicVendorId(
            OFNiciraVendorData.NX_VENDOR_ID, 4);
    OFVendorId.registerVendorId(niciraVendorId);
    OFBasicVendorDataType roleRequestVendorData = new OFBasicVendorDataType(
            OFRoleRequestVendorData.NXT_ROLE_REQUEST,
            OFRoleRequestVendorData.getInstantiable());
    niciraVendorId.registerVendorDataType(roleRequestVendorData);
    OFBasicVendorDataType roleReplyVendorData = new OFBasicVendorDataType(
            OFRoleReplyVendorData.NXT_ROLE_REPLY,
            OFRoleReplyVendorData.getInstantiable());
    niciraVendorId.registerVendorDataType(roleReplyVendorData);

    initialized = true;
}
 
开发者ID:CoVisor,项目名称:CoVisor,代码行数:21,代码来源:OFNiciraVendorExtensions.java

示例5: getVendorData

import org.openflow.protocol.vendor.OFVendorId; //导入依赖的package包/类
@Override
public OFVendorData getVendorData(OFVendorId vendorId,
                                  OFVendorDataType vendorDataType) {
    if (vendorDataType == null)
        return null;
    
    return vendorDataType.newInstance();
}
 
开发者ID:vishalshubham,项目名称:Multipath-Hedera-system-in-Floodlight-controller,代码行数:9,代码来源:BasicFactory.java

示例6: getVendorData

import org.openflow.protocol.vendor.OFVendorId; //导入依赖的package包/类
@Override
public OFVendorData getVendorData(final OFVendorId vendorId,
        final OFVendorDataType vendorDataType) {
    if (vendorDataType == null) {
        return null;
    }

    return vendorDataType.newInstance();
}
 
开发者ID:CoVisor,项目名称:CoVisor,代码行数:10,代码来源:BasicFactory.java

示例7: getVendorData

import org.openflow.protocol.vendor.OFVendorId; //导入依赖的package包/类
@Override
public OFVendorData getVendorData(OFVendorId vendorId,
                                  OFVendorDataType vendorDataType) {
    if (vendorDataType == null)
        return null;

    return vendorDataType.newInstance();
}
 
开发者ID:opendaylight,项目名称:archived-net-virt-platform,代码行数:9,代码来源:BasicFactory.java

示例8: initialize

import org.openflow.protocol.vendor.OFVendorId; //导入依赖的package包/类
public static synchronized void initialize() {
    if (initialized)
        return;

    OFBasicVendorId bsnVendorId = 
            new OFBasicVendorId(OFBigSwitchVendorData.BSN_VENDOR_ID, 4);
    OFVendorId.registerVendorId(bsnVendorId);

    // register data types used for big tap
    OFBasicVendorDataType setEntryVendorData =
            new OFBasicVendorDataType(
                     OFNetmaskSetVendorData.BSN_SET_IP_MASK_ENTRY,
                     OFNetmaskSetVendorData.getInstantiable());
    bsnVendorId.registerVendorDataType(setEntryVendorData);

    OFBasicVendorDataType getEntryVendorDataRequest =
            new OFBasicVendorDataType(
                     OFNetmaskGetVendorDataRequest.BSN_GET_IP_MASK_ENTRY_REQUEST,
                     OFNetmaskGetVendorDataRequest.getInstantiable());
    bsnVendorId.registerVendorDataType(getEntryVendorDataRequest);

    OFBasicVendorDataType getEntryVendorDataReply =
            new OFBasicVendorDataType(
                     OFNetmaskGetVendorDataReply.BSN_GET_IP_MASK_ENTRY_REPLY,
                     OFNetmaskGetVendorDataReply.getInstantiable());
    bsnVendorId.registerVendorDataType(getEntryVendorDataReply);

    // register data types used for tunneling
    OFBasicVendorDataType getIntfIPVendorDataRequest = 
            new OFBasicVendorDataType(
                      OFInterfaceIPRequestVendorData.BSN_GET_INTERFACE_IP_REQUEST,
                      OFInterfaceIPRequestVendorData.getInstantiable());
    bsnVendorId.registerVendorDataType(getIntfIPVendorDataRequest);

    OFBasicVendorDataType getIntfIPVendorDataReply = 
            new OFBasicVendorDataType(
                      OFInterfaceIPReplyVendorData.BSN_GET_INTERFACE_IP_REPLY,
                      OFInterfaceIPReplyVendorData.getInstantiable());
    bsnVendorId.registerVendorDataType(getIntfIPVendorDataReply);

    
}
 
开发者ID:JianqingJiang,项目名称:QoS-floodlight,代码行数:43,代码来源:OFBigSwitchVendorExtensions.java


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