Java 类org.projectfloodlight.openflow.protocol.OFGroupFeaturesStatsReply 实例源码

项目:fresco_floodlight    文件:StatsReplySerializer.java   
/***
 * Serializes Group Feature Reply 
 * @author Naveen
 * @param groupFeaturesReplies
 * @param jGen
 * @throws IOException
 * @throws JsonProcessingException
 */
public static void serializeGroupFeaturesReply(List<OFGroupFeaturesStatsReply> groupFeaturesReplies, JsonGenerator jGen) throws IOException, JsonProcessingException{

    OFGroupFeaturesStatsReply groupFeaturesReply = groupFeaturesReplies.get(0);
    jGen.writeStringField("version", groupFeaturesReply.getVersion().toString()); //return the enum name

    jGen.writeFieldName("groupFeatures");
    jGen.writeStartObject();                        
    jGen.writeNumberField("capabilities",groupFeaturesReply.getCapabilities());                                                              
    jGen.writeNumberField("maxGroupsAll",groupFeaturesReply.getMaxGroupsAll());
    jGen.writeNumberField("maxGroupsSelect",groupFeaturesReply.getMaxGroupsSelect());
    jGen.writeNumberField("maxGroupsIndirect",groupFeaturesReply.getMaxGroupsIndirect());
    jGen.writeNumberField("maxGroupsFf",groupFeaturesReply.getMaxGroupsFf());
    jGen.writeNumberField("actionsAll",groupFeaturesReply.getActionsAll());
    jGen.writeNumberField("actionsSelect",groupFeaturesReply.getActionsSelect());
    jGen.writeNumberField("actionsIndirect",groupFeaturesReply.getActionsIndirect());
    jGen.writeNumberField("actionsFf",groupFeaturesReply.getActionsFf());

    jGen.writeEndObject();//end of group Feature
}
项目:iTAP-controller    文件:StatsReplySerializer.java   
/***
 * Serializes Group Feature Reply 
 * @author Naveen
 * @param groupFeaturesReplies
 * @param jGen
 * @throws IOException
 * @throws JsonProcessingException
 */
public static void serializeGroupFeaturesReply(List<OFGroupFeaturesStatsReply> groupFeaturesReplies, JsonGenerator jGen) throws IOException, JsonProcessingException{

    OFGroupFeaturesStatsReply groupFeaturesReply = groupFeaturesReplies.get(0);
    jGen.writeStringField("version", groupFeaturesReply.getVersion().toString()); //return the enum name

    jGen.writeFieldName("groupFeatures");
    jGen.writeStartObject();                        
    jGen.writeNumberField("capabilities",groupFeaturesReply.getCapabilities());                                                              
    jGen.writeNumberField("maxGroupsAll",groupFeaturesReply.getMaxGroupsAll());
    jGen.writeNumberField("maxGroupsSelect",groupFeaturesReply.getMaxGroupsSelect());
    jGen.writeNumberField("maxGroupsIndirect",groupFeaturesReply.getMaxGroupsIndirect());
    jGen.writeNumberField("maxGroupsFf",groupFeaturesReply.getMaxGroupsFf());
    jGen.writeNumberField("actionsAll",groupFeaturesReply.getActionsAll());
    jGen.writeNumberField("actionsSelect",groupFeaturesReply.getActionsSelect());
    jGen.writeNumberField("actionsIndirect",groupFeaturesReply.getActionsIndirect());
    jGen.writeNumberField("actionsFf",groupFeaturesReply.getActionsFf());

    jGen.writeEndObject();//end of group Feature
}
项目:SDN-Multicast    文件:StatsReplySerializer.java   
/***
 * Serializes Group Feature Reply 
 * @author Naveen
 * @param groupFeaturesReplies
 * @param jGen
 * @throws IOException
 * @throws JsonProcessingException
 */
public static void serializeGroupFeaturesReply(List<OFGroupFeaturesStatsReply> groupFeaturesReplies, JsonGenerator jGen) throws IOException, JsonProcessingException{

    OFGroupFeaturesStatsReply groupFeaturesReply = groupFeaturesReplies.get(0);
    jGen.writeStringField("version", groupFeaturesReply.getVersion().toString()); //return the enum name

    jGen.writeFieldName("groupFeatures");
    jGen.writeStartObject();                        
    jGen.writeNumberField("capabilities",groupFeaturesReply.getCapabilities());                                                              
    jGen.writeNumberField("maxGroupsAll",groupFeaturesReply.getMaxGroupsAll());
    jGen.writeNumberField("maxGroupsSelect",groupFeaturesReply.getMaxGroupsSelect());
    jGen.writeNumberField("maxGroupsIndirect",groupFeaturesReply.getMaxGroupsIndirect());
    jGen.writeNumberField("maxGroupsFf",groupFeaturesReply.getMaxGroupsFf());
    jGen.writeNumberField("actionsAll",groupFeaturesReply.getActionsAll());
    jGen.writeNumberField("actionsSelect",groupFeaturesReply.getActionsSelect());
    jGen.writeNumberField("actionsIndirect",groupFeaturesReply.getActionsIndirect());
    jGen.writeNumberField("actionsFf",groupFeaturesReply.getActionsFf());

    jGen.writeEndObject();//end of group Feature
}
项目:arscheduler    文件:StatsReplySerializer.java   
/***
 * Serializes Group Feature Reply 
 * @author Naveen
 * @param groupFeaturesReplies
 * @param jGen
 * @throws IOException
 * @throws JsonProcessingException
 */
public static void serializeGroupFeaturesReply(List<OFGroupFeaturesStatsReply> groupFeaturesReplies, JsonGenerator jGen) throws IOException, JsonProcessingException{

    OFGroupFeaturesStatsReply groupFeaturesReply = groupFeaturesReplies.get(0);
    jGen.writeStringField("version", groupFeaturesReply.getVersion().toString()); //return the enum name

    jGen.writeFieldName("groupFeatures");
    jGen.writeStartObject();                        
    jGen.writeNumberField("capabilities",groupFeaturesReply.getCapabilities());                                                              
    jGen.writeNumberField("maxGroupsAll",groupFeaturesReply.getMaxGroupsAll());
    jGen.writeNumberField("maxGroupsSelect",groupFeaturesReply.getMaxGroupsSelect());
    jGen.writeNumberField("maxGroupsIndirect",groupFeaturesReply.getMaxGroupsIndirect());
    jGen.writeNumberField("maxGroupsFf",groupFeaturesReply.getMaxGroupsFf());
    jGen.writeNumberField("actionsAll",groupFeaturesReply.getActionsAll());
    jGen.writeNumberField("actionsSelect",groupFeaturesReply.getActionsSelect());
    jGen.writeNumberField("actionsIndirect",groupFeaturesReply.getActionsIndirect());
    jGen.writeNumberField("actionsFf",groupFeaturesReply.getActionsFf());

    jGen.writeEndObject();//end of group Feature
}
项目:floodlight1.2-delay    文件:StatsReplySerializer.java   
/***
 * Serializes Group Feature Reply 
 * @author Naveen
 * @param groupFeaturesReplies
 * @param jGen
 * @throws IOException
 * @throws JsonProcessingException
 */
public static void serializeGroupFeaturesReply(List<OFGroupFeaturesStatsReply> groupFeaturesReplies, JsonGenerator jGen) throws IOException, JsonProcessingException{

    OFGroupFeaturesStatsReply groupFeaturesReply = groupFeaturesReplies.get(0);
    jGen.writeStringField("version", groupFeaturesReply.getVersion().toString()); //return the enum name

    jGen.writeFieldName("groupFeatures");
    jGen.writeStartObject();                        
    jGen.writeNumberField("capabilities",groupFeaturesReply.getCapabilities());                                                              
    jGen.writeNumberField("maxGroupsAll",groupFeaturesReply.getMaxGroupsAll());
    jGen.writeNumberField("maxGroupsSelect",groupFeaturesReply.getMaxGroupsSelect());
    jGen.writeNumberField("maxGroupsIndirect",groupFeaturesReply.getMaxGroupsIndirect());
    jGen.writeNumberField("maxGroupsFf",groupFeaturesReply.getMaxGroupsFf());
    jGen.writeNumberField("actionsAll",groupFeaturesReply.getActionsAll());
    jGen.writeNumberField("actionsSelect",groupFeaturesReply.getActionsSelect());
    jGen.writeNumberField("actionsIndirect",groupFeaturesReply.getActionsIndirect());
    jGen.writeNumberField("actionsFf",groupFeaturesReply.getActionsFf());

    jGen.writeEndObject();//end of group Feature
}
项目:floodlight-hardware    文件:StatsReplySerializer.java   
/***
 * Serializes Group Feature Reply
 * @author Naveen
 * @param groupFeaturesReplies
 * @param jGen
 * @throws IOException
 * @throws JsonProcessingException
 */
public static void serializeGroupFeaturesReply(List<OFGroupFeaturesStatsReply> groupFeaturesReplies, JsonGenerator jGen) throws IOException, JsonProcessingException{

    OFGroupFeaturesStatsReply groupFeaturesReply = groupFeaturesReplies.get(0);
    jGen.writeStringField("version", groupFeaturesReply.getVersion().toString()); //return the enum name

    jGen.writeFieldName("groupFeatures");
    jGen.writeStartObject();
    jGen.writeNumberField("capabilities",groupFeaturesReply.getCapabilities());
    jGen.writeNumberField("maxGroupsAll",groupFeaturesReply.getMaxGroupsAll());
    jGen.writeNumberField("maxGroupsSelect",groupFeaturesReply.getMaxGroupsSelect());
    jGen.writeNumberField("maxGroupsIndirect",groupFeaturesReply.getMaxGroupsIndirect());
    jGen.writeNumberField("maxGroupsFf",groupFeaturesReply.getMaxGroupsFf());
    jGen.writeNumberField("actionsAll",groupFeaturesReply.getActionsAll());
    jGen.writeNumberField("actionsSelect",groupFeaturesReply.getActionsSelect());
    jGen.writeNumberField("actionsIndirect",groupFeaturesReply.getActionsIndirect());
    jGen.writeNumberField("actionsFf",groupFeaturesReply.getActionsFf());

    jGen.writeEndObject();//end of group Feature
}
项目:ACAMPController    文件:StatsReplySerializer.java   
/***
 * Serializes Group Feature Reply 
 * @author Naveen
 * @param groupFeaturesReplies
 * @param jGen
 * @throws IOException
 * @throws JsonProcessingException
 */
public static void serializeGroupFeaturesReply(List<OFGroupFeaturesStatsReply> groupFeaturesReplies, JsonGenerator jGen) throws IOException, JsonProcessingException{

    OFGroupFeaturesStatsReply groupFeaturesReply = groupFeaturesReplies.get(0);
    jGen.writeStringField("version", groupFeaturesReply.getVersion().toString()); //return the enum name

    jGen.writeFieldName("groupFeatures");
    jGen.writeStartObject();                        
    jGen.writeNumberField("capabilities",groupFeaturesReply.getCapabilities());                                                              
    jGen.writeNumberField("maxGroupsAll",groupFeaturesReply.getMaxGroupsAll());
    jGen.writeNumberField("maxGroupsSelect",groupFeaturesReply.getMaxGroupsSelect());
    jGen.writeNumberField("maxGroupsIndirect",groupFeaturesReply.getMaxGroupsIndirect());
    jGen.writeNumberField("maxGroupsFf",groupFeaturesReply.getMaxGroupsFf());
    jGen.writeNumberField("actionsAll",groupFeaturesReply.getActionsAll());
    jGen.writeNumberField("actionsSelect",groupFeaturesReply.getActionsSelect());
    jGen.writeNumberField("actionsIndirect",groupFeaturesReply.getActionsIndirect());
    jGen.writeNumberField("actionsFf",groupFeaturesReply.getActionsFf());

    jGen.writeEndObject();//end of group Feature
}
项目:fast-failover-demo    文件:StatsReplySerializer.java   
/***
 * Serializes Group Feature Reply 
 * @author Naveen
 * @param groupFeaturesReplies
 * @param jGen
 * @throws IOException
 * @throws JsonProcessingException
 */
public static void serializeGroupFeaturesReply(List<OFGroupFeaturesStatsReply> groupFeaturesReplies, JsonGenerator jGen) throws IOException, JsonProcessingException{

    OFGroupFeaturesStatsReply groupFeaturesReply = groupFeaturesReplies.get(0);
    jGen.writeStringField("version", groupFeaturesReply.getVersion().toString()); //return the enum name

    jGen.writeFieldName("groupFeatures");
    jGen.writeStartObject();                        
    jGen.writeNumberField("capabilities",groupFeaturesReply.getCapabilities());                                                              
    jGen.writeNumberField("maxGroupsAll",groupFeaturesReply.getMaxGroupsAll());
    jGen.writeNumberField("maxGroupsSelect",groupFeaturesReply.getMaxGroupsSelect());
    jGen.writeNumberField("maxGroupsIndirect",groupFeaturesReply.getMaxGroupsIndirect());
    jGen.writeNumberField("maxGroupsFf",groupFeaturesReply.getMaxGroupsFf());
    jGen.writeNumberField("actionsAll",groupFeaturesReply.getActionsAll());
    jGen.writeNumberField("actionsSelect",groupFeaturesReply.getActionsSelect());
    jGen.writeNumberField("actionsIndirect",groupFeaturesReply.getActionsIndirect());
    jGen.writeNumberField("actionsFf",groupFeaturesReply.getActionsFf());

    jGen.writeEndObject();//end of group Feature
}
项目:floodlightLB    文件:StatsReplySerializer.java   
/***
 * Serializes Group Feature Reply 
 * @author Naveen
 * @param groupFeaturesReplies
 * @param jGen
 * @throws IOException
 * @throws JsonProcessingException
 */
public static void serializeGroupFeaturesReply(List<OFGroupFeaturesStatsReply> groupFeaturesReplies, JsonGenerator jGen) throws IOException, JsonProcessingException{

    OFGroupFeaturesStatsReply groupFeaturesReply = groupFeaturesReplies.get(0);
    jGen.writeStringField("version", groupFeaturesReply.getVersion().toString()); //return the enum name

    jGen.writeFieldName("groupFeatures");
    jGen.writeStartObject();                        
    jGen.writeNumberField("capabilities",groupFeaturesReply.getCapabilities());                                                              
    jGen.writeNumberField("maxGroupsAll",groupFeaturesReply.getMaxGroupsAll());
    jGen.writeNumberField("maxGroupsSelect",groupFeaturesReply.getMaxGroupsSelect());
    jGen.writeNumberField("maxGroupsIndirect",groupFeaturesReply.getMaxGroupsIndirect());
    jGen.writeNumberField("maxGroupsFf",groupFeaturesReply.getMaxGroupsFf());
    jGen.writeNumberField("actionsAll",groupFeaturesReply.getActionsAll());
    jGen.writeNumberField("actionsSelect",groupFeaturesReply.getActionsSelect());
    jGen.writeNumberField("actionsIndirect",groupFeaturesReply.getActionsIndirect());
    jGen.writeNumberField("actionsFf",groupFeaturesReply.getActionsFf());

    jGen.writeEndObject();//end of group Feature
}
项目:DSC    文件:StatsReplySerializer.java   
/***
 * Serializes Group Feature Reply 
 * @author Naveen
 * @param groupFeaturesReplies
 * @param jGen
 * @throws IOException
 * @throws JsonProcessingException
 */
public static void serializeGroupFeaturesReply(List<OFGroupFeaturesStatsReply> groupFeaturesReplies, JsonGenerator jGen) throws IOException, JsonProcessingException{

    OFGroupFeaturesStatsReply groupFeaturesReply = groupFeaturesReplies.get(0);
    jGen.writeStringField("version", groupFeaturesReply.getVersion().toString()); //return the enum name

    jGen.writeFieldName("groupFeatures");
    jGen.writeStartObject();                        
    jGen.writeNumberField("capabilities",groupFeaturesReply.getCapabilities());                                                              
    jGen.writeNumberField("maxGroupsAll",groupFeaturesReply.getMaxGroupsAll());
    jGen.writeNumberField("maxGroupsSelect",groupFeaturesReply.getMaxGroupsSelect());
    jGen.writeNumberField("maxGroupsIndirect",groupFeaturesReply.getMaxGroupsIndirect());
    jGen.writeNumberField("maxGroupsFf",groupFeaturesReply.getMaxGroupsFf());
    jGen.writeNumberField("actionsAll",groupFeaturesReply.getActionsAll());
    jGen.writeNumberField("actionsSelect",groupFeaturesReply.getActionsSelect());
    jGen.writeNumberField("actionsIndirect",groupFeaturesReply.getActionsIndirect());
    jGen.writeNumberField("actionsFf",groupFeaturesReply.getActionsFf());

    jGen.writeEndObject();//end of group Feature
}
项目:floodlight    文件:StatsReplySerializer.java   
/***
 * Serializes Group Feature Reply 
 * @author Naveen
 * @param groupFeaturesReplies
 * @param jGen
 * @throws IOException
 * @throws JsonProcessingException
 */
public static void serializeGroupFeaturesReply(List<OFGroupFeaturesStatsReply> groupFeaturesReplies, JsonGenerator jGen) throws IOException, JsonProcessingException{

    OFGroupFeaturesStatsReply groupFeaturesReply = groupFeaturesReplies.get(0);
    jGen.writeStringField("version", groupFeaturesReply.getVersion().toString()); //return the enum name

    jGen.writeFieldName("groupFeatures");
    jGen.writeStartObject();                        
    jGen.writeNumberField("capabilities",groupFeaturesReply.getCapabilities());                                                              
    jGen.writeNumberField("maxGroupsAll",groupFeaturesReply.getMaxGroupsAll());
    jGen.writeNumberField("maxGroupsSelect",groupFeaturesReply.getMaxGroupsSelect());
    jGen.writeNumberField("maxGroupsIndirect",groupFeaturesReply.getMaxGroupsIndirect());
    jGen.writeNumberField("maxGroupsFf",groupFeaturesReply.getMaxGroupsFf());
    jGen.writeNumberField("actionsAll",groupFeaturesReply.getActionsAll());
    jGen.writeNumberField("actionsSelect",groupFeaturesReply.getActionsSelect());
    jGen.writeNumberField("actionsIndirect",groupFeaturesReply.getActionsIndirect());
    jGen.writeNumberField("actionsFf",groupFeaturesReply.getActionsFf());

    jGen.writeEndObject();//end of group Feature
}
项目:ravikumaran201504    文件:OFSwitchImplCPqD13.java   
private void processStatsReply(OFStatsReply sr) {
    switch (sr.getStatsType()) {
    case AGGREGATE:
        break;
    case DESC:
        break;
    case EXPERIMENTER:
        break;
    case FLOW:
        break;
    case GROUP_DESC:
        processGroupDesc((OFGroupDescStatsReply) sr);
        break;
    case GROUP_FEATURES:
        processGroupFeatures((OFGroupFeaturesStatsReply) sr);
        break;
    case METER_CONFIG:
        break;
    case METER_FEATURES:
        break;
    case PORT_DESC:
        break;
    case TABLE_FEATURES:
        break;
    default:
        break;

    }
}
项目:spring-open    文件:OFSwitchImplSpringOpenTTP.java   
private void processStatsReply(OFStatsReply sr) {
    switch (sr.getStatsType()) {
    case AGGREGATE:
        break;
    case DESC:
        break;
    case EXPERIMENTER:
        break;
    case FLOW:
        break;
    case GROUP_DESC:
        processGroupDesc((OFGroupDescStatsReply) sr);
        break;
    case GROUP_FEATURES:
        processGroupFeatures((OFGroupFeaturesStatsReply) sr);
        break;
    case METER_CONFIG:
        break;
    case METER_FEATURES:
        break;
    case PORT_DESC:
        break;
    case TABLE_FEATURES:
        break;
    default:
        break;

    }
}
项目:ravikumaran201504    文件:OFSwitchImplCPqD13.java   
private void processGroupFeatures(OFGroupFeaturesStatsReply gfsr) {
    log.info("Sw: {} Group Features {}", getStringId(), gfsr);
}
项目:spring-open    文件:OFSwitchImplSpringOpenTTP.java   
private void processGroupFeatures(OFGroupFeaturesStatsReply gfsr) {
    log.info("Sw: {} Group Features {}", getStringId(), gfsr);
}