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

项目:fresco_floodlight    文件:StatsReplySerializer.java   
/***
 * Serializes Meter Feature Reply
 * @author Naveen
 * @param meterFeaturesReplies
 * @param jGen
 * @throws IOException
 * @throws JsonProcessingException
 */
public static void serializeMeterFeaturesReply(List<OFMeterFeaturesStatsReply> meterFeaturesReplies, JsonGenerator jGen) throws IOException, JsonProcessingException{
    OFMeterFeaturesStatsReply meterFeaturesReply = meterFeaturesReplies.get(0);
    jGen.writeStringField("version", meterFeaturesReply.getVersion().toString()); //return the enum name

    OFMeterFeatures meterFeatures = meterFeaturesReply.getFeatures();
    jGen.writeFieldName("meterFeatures");
    jGen.writeStartObject();      

    jGen.writeNumberField("maxGroupsAll",meterFeatures.getMaxMeter());
    jGen.writeNumberField("maxGroupsSelect",meterFeatures.getBandTypes());
    jGen.writeNumberField("capabilities",meterFeatures.getCapabilities());
    jGen.writeNumberField("maxGroupsIndirect",meterFeatures.getMaxBands());
    jGen.writeNumberField("maxGroupsFf",meterFeatures.getMaxColor());

    jGen.writeEndObject();//end of group Feature
}
项目:iTAP-controller    文件:StatsReplySerializer.java   
/***
 * Serializes Meter Feature Reply
 * @author Naveen
 * @param meterFeaturesReplies
 * @param jGen
 * @throws IOException
 * @throws JsonProcessingException
 */
public static void serializeMeterFeaturesReply(List<OFMeterFeaturesStatsReply> meterFeaturesReplies, JsonGenerator jGen) throws IOException, JsonProcessingException{
    OFMeterFeaturesStatsReply meterFeaturesReply = meterFeaturesReplies.get(0);
    jGen.writeStringField("version", meterFeaturesReply.getVersion().toString()); //return the enum name

    OFMeterFeatures meterFeatures = meterFeaturesReply.getFeatures();
    jGen.writeFieldName("meterFeatures");
    jGen.writeStartObject();      

    jGen.writeNumberField("maxGroupsAll",meterFeatures.getMaxMeter());
    jGen.writeNumberField("maxGroupsSelect",meterFeatures.getBandTypes());
    jGen.writeNumberField("capabilities",meterFeatures.getCapabilities());
    jGen.writeNumberField("maxGroupsIndirect",meterFeatures.getMaxBands());
    jGen.writeNumberField("maxGroupsFf",meterFeatures.getMaxColor());

    jGen.writeEndObject();//end of group Feature
}
项目:SDN-Multicast    文件:StatsReplySerializer.java   
/***
 * Serializes Meter Feature Reply
 * @author Naveen
 * @param meterFeaturesReplies
 * @param jGen
 * @throws IOException
 * @throws JsonProcessingException
 */
public static void serializeMeterFeaturesReply(List<OFMeterFeaturesStatsReply> meterFeaturesReplies, JsonGenerator jGen) throws IOException, JsonProcessingException{
    OFMeterFeaturesStatsReply meterFeaturesReply = meterFeaturesReplies.get(0);
    jGen.writeStringField("version", meterFeaturesReply.getVersion().toString()); //return the enum name

    OFMeterFeatures meterFeatures = meterFeaturesReply.getFeatures();
    jGen.writeFieldName("meterFeatures");
    jGen.writeStartObject();      

    jGen.writeNumberField("maxGroupsAll",meterFeatures.getMaxMeter());
    jGen.writeNumberField("maxGroupsSelect",meterFeatures.getBandTypes());
    jGen.writeNumberField("capabilities",meterFeatures.getCapabilities());
    jGen.writeNumberField("maxGroupsIndirect",meterFeatures.getMaxBands());
    jGen.writeNumberField("maxGroupsFf",meterFeatures.getMaxColor());

    jGen.writeEndObject();//end of group Feature
}
项目:arscheduler    文件:StatsReplySerializer.java   
/***
 * Serializes Meter Feature Reply
 * @author Naveen
 * @param meterFeaturesReplies
 * @param jGen
 * @throws IOException
 * @throws JsonProcessingException
 */
public static void serializeMeterFeaturesReply(List<OFMeterFeaturesStatsReply> meterFeaturesReplies, JsonGenerator jGen) throws IOException, JsonProcessingException{
    OFMeterFeaturesStatsReply meterFeaturesReply = meterFeaturesReplies.get(0);
    jGen.writeStringField("version", meterFeaturesReply.getVersion().toString()); //return the enum name

    OFMeterFeatures meterFeatures = meterFeaturesReply.getFeatures();
    jGen.writeFieldName("meterFeatures");
    jGen.writeStartObject();      

    jGen.writeNumberField("maxGroupsAll",meterFeatures.getMaxMeter());
    jGen.writeNumberField("maxGroupsSelect",meterFeatures.getBandTypes());
    jGen.writeNumberField("capabilities",meterFeatures.getCapabilities());
    jGen.writeNumberField("maxGroupsIndirect",meterFeatures.getMaxBands());
    jGen.writeNumberField("maxGroupsFf",meterFeatures.getMaxColor());

    jGen.writeEndObject();//end of group Feature
}
项目:floodlight1.2-delay    文件:StatsReplySerializer.java   
/***
 * Serializes Meter Feature Reply
 * @author Naveen
 * @param meterFeaturesReplies
 * @param jGen
 * @throws IOException
 * @throws JsonProcessingException
 */
public static void serializeMeterFeaturesReply(List<OFMeterFeaturesStatsReply> meterFeaturesReplies, JsonGenerator jGen) throws IOException, JsonProcessingException{
    OFMeterFeaturesStatsReply meterFeaturesReply = meterFeaturesReplies.get(0);
    jGen.writeStringField("version", meterFeaturesReply.getVersion().toString()); //return the enum name

    OFMeterFeatures meterFeatures = meterFeaturesReply.getFeatures();
    jGen.writeFieldName("meterFeatures");
    jGen.writeStartObject();      

    jGen.writeNumberField("maxGroupsAll",meterFeatures.getMaxMeter());
    jGen.writeNumberField("maxGroupsSelect",meterFeatures.getBandTypes());
    jGen.writeNumberField("capabilities",meterFeatures.getCapabilities());
    jGen.writeNumberField("maxGroupsIndirect",meterFeatures.getMaxBands());
    jGen.writeNumberField("maxGroupsFf",meterFeatures.getMaxColor());

    jGen.writeEndObject();//end of group Feature
}
项目:floodlight-hardware    文件:StatsReplySerializer.java   
/***
 * Serializes Meter Feature Reply
 * @author Naveen
 * @param meterFeaturesReplies
 * @param jGen
 * @throws IOException
 * @throws JsonProcessingException
 */
public static void serializeMeterFeaturesReply(List<OFMeterFeaturesStatsReply> meterFeaturesReplies, JsonGenerator jGen) throws IOException, JsonProcessingException{
    OFMeterFeaturesStatsReply meterFeaturesReply = meterFeaturesReplies.get(0);
    jGen.writeStringField("version", meterFeaturesReply.getVersion().toString()); //return the enum name

    OFMeterFeatures meterFeatures = meterFeaturesReply.getFeatures();
    jGen.writeFieldName("meterFeatures");
    jGen.writeStartObject();

    jGen.writeNumberField("maxGroupsAll",meterFeatures.getMaxMeter());
    jGen.writeNumberField("maxGroupsSelect",meterFeatures.getBandTypes());
    jGen.writeNumberField("capabilities",meterFeatures.getCapabilities());
    jGen.writeNumberField("maxGroupsIndirect",meterFeatures.getMaxBands());
    jGen.writeNumberField("maxGroupsFf",meterFeatures.getMaxColor());

    jGen.writeEndObject();//end of group Feature
}
项目:ACAMPController    文件:StatsReplySerializer.java   
/***
 * Serializes Meter Feature Reply
 * @author Naveen
 * @param meterFeaturesReplies
 * @param jGen
 * @throws IOException
 * @throws JsonProcessingException
 */
public static void serializeMeterFeaturesReply(List<OFMeterFeaturesStatsReply> meterFeaturesReplies, JsonGenerator jGen) throws IOException, JsonProcessingException{
    OFMeterFeaturesStatsReply meterFeaturesReply = meterFeaturesReplies.get(0);
    jGen.writeStringField("version", meterFeaturesReply.getVersion().toString()); //return the enum name

    OFMeterFeatures meterFeatures = meterFeaturesReply.getFeatures();
    jGen.writeFieldName("meterFeatures");
    jGen.writeStartObject();      

    jGen.writeNumberField("maxGroupsAll",meterFeatures.getMaxMeter());
    jGen.writeNumberField("maxGroupsSelect",meterFeatures.getBandTypes());
    jGen.writeNumberField("capabilities",meterFeatures.getCapabilities());
    jGen.writeNumberField("maxGroupsIndirect",meterFeatures.getMaxBands());
    jGen.writeNumberField("maxGroupsFf",meterFeatures.getMaxColor());

    jGen.writeEndObject();//end of group Feature
}
项目:fast-failover-demo    文件:StatsReplySerializer.java   
/***
 * Serializes Meter Feature Reply
 * @author Naveen
 * @param meterFeaturesReplies
 * @param jGen
 * @throws IOException
 * @throws JsonProcessingException
 */
public static void serializeMeterFeaturesReply(List<OFMeterFeaturesStatsReply> meterFeaturesReplies, JsonGenerator jGen) throws IOException, JsonProcessingException{
    OFMeterFeaturesStatsReply meterFeaturesReply = meterFeaturesReplies.get(0);
    jGen.writeStringField("version", meterFeaturesReply.getVersion().toString()); //return the enum name

    OFMeterFeatures meterFeatures = meterFeaturesReply.getFeatures();
    jGen.writeFieldName("meterFeatures");
    jGen.writeStartObject();      

    jGen.writeNumberField("maxGroupsAll",meterFeatures.getMaxMeter());
    jGen.writeNumberField("maxGroupsSelect",meterFeatures.getBandTypes());
    jGen.writeNumberField("capabilities",meterFeatures.getCapabilities());
    jGen.writeNumberField("maxGroupsIndirect",meterFeatures.getMaxBands());
    jGen.writeNumberField("maxGroupsFf",meterFeatures.getMaxColor());

    jGen.writeEndObject();//end of group Feature
}
项目:floodlightLB    文件:StatsReplySerializer.java   
/***
 * Serializes Meter Feature Reply
 * @author Naveen
 * @param meterFeaturesReplies
 * @param jGen
 * @throws IOException
 * @throws JsonProcessingException
 */
public static void serializeMeterFeaturesReply(List<OFMeterFeaturesStatsReply> meterFeaturesReplies, JsonGenerator jGen) throws IOException, JsonProcessingException{
    OFMeterFeaturesStatsReply meterFeaturesReply = meterFeaturesReplies.get(0);
    jGen.writeStringField("version", meterFeaturesReply.getVersion().toString()); //return the enum name

    OFMeterFeatures meterFeatures = meterFeaturesReply.getFeatures();
    jGen.writeFieldName("meterFeatures");
    jGen.writeStartObject();      

    jGen.writeNumberField("maxGroupsAll",meterFeatures.getMaxMeter());
    jGen.writeNumberField("maxGroupsSelect",meterFeatures.getBandTypes());
    jGen.writeNumberField("capabilities",meterFeatures.getCapabilities());
    jGen.writeNumberField("maxGroupsIndirect",meterFeatures.getMaxBands());
    jGen.writeNumberField("maxGroupsFf",meterFeatures.getMaxColor());

    jGen.writeEndObject();//end of group Feature
}
项目:DSC    文件:StatsReplySerializer.java   
/***
 * Serializes Meter Feature Reply
 * @author Naveen
 * @param meterFeaturesReplies
 * @param jGen
 * @throws IOException
 * @throws JsonProcessingException
 */
public static void serializeMeterFeaturesReply(List<OFMeterFeaturesStatsReply> meterFeaturesReplies, JsonGenerator jGen) throws IOException, JsonProcessingException{
    OFMeterFeaturesStatsReply meterFeaturesReply = meterFeaturesReplies.get(0);
    jGen.writeStringField("version", meterFeaturesReply.getVersion().toString()); //return the enum name

    OFMeterFeatures meterFeatures = meterFeaturesReply.getFeatures();
    jGen.writeFieldName("meterFeatures");
    jGen.writeStartObject();      

    jGen.writeNumberField("maxGroupsAll",meterFeatures.getMaxMeter());
    jGen.writeNumberField("maxGroupsSelect",meterFeatures.getBandTypes());
    jGen.writeNumberField("capabilities",meterFeatures.getCapabilities());
    jGen.writeNumberField("maxGroupsIndirect",meterFeatures.getMaxBands());
    jGen.writeNumberField("maxGroupsFf",meterFeatures.getMaxColor());

    jGen.writeEndObject();//end of group Feature
}
项目:floodlight    文件:StatsReplySerializer.java   
/***
 * Serializes Meter Feature Reply
 * @author Naveen
 * @param meterFeaturesReplies
 * @param jGen
 * @throws IOException
 * @throws JsonProcessingException
 */
public static void serializeMeterFeaturesReply(List<OFMeterFeaturesStatsReply> meterFeaturesReplies, JsonGenerator jGen) throws IOException, JsonProcessingException{
    OFMeterFeaturesStatsReply meterFeaturesReply = meterFeaturesReplies.get(0);
    jGen.writeStringField("version", meterFeaturesReply.getVersion().toString()); //return the enum name

    OFMeterFeatures meterFeatures = meterFeaturesReply.getFeatures();
    jGen.writeFieldName("meterFeatures");
    jGen.writeStartObject();      

    jGen.writeNumberField("maxGroupsAll",meterFeatures.getMaxMeter());
    jGen.writeNumberField("maxGroupsSelect",meterFeatures.getBandTypes());
    jGen.writeNumberField("capabilities",meterFeatures.getCapabilities());
    jGen.writeNumberField("maxGroupsIndirect",meterFeatures.getMaxBands());
    jGen.writeNumberField("maxGroupsFf",meterFeatures.getMaxColor());

    jGen.writeEndObject();//end of group Feature
}
项目:onos    文件:OFChannelHandler.java   
@Override
void processOFStatisticsReply(OFChannelHandler h,
                              OFStatsReply  m)
        throws IOException, SwitchStateException {
    switch (m.getStatsType()) {
        case METER_FEATURES:

            log.debug("Received Meter Features");
            OFMeterFeaturesStatsReply ofmfsr = (OFMeterFeaturesStatsReply) m;
            log.info("Received meter features from {} with max meters: {}",
                    h.getSwitchInfoString(),
                    ofmfsr.getFeatures().getMaxMeter());
            h.meterFeaturesReply = ofmfsr;
            h.sendHandshakeDescriptionStatsRequest();
            h.setState(WAIT_DESCRIPTION_STAT_REPLY);
            break;
        default:
            log.error("Unexpected OF Multi Part stats reply");
            illegalMessageReceived(h, m);
            break;
    }
}
项目:onos    文件:AbstractOpenFlowSwitch.java   
@Override
public void setMeterFeaturesReply(OFMeterFeaturesStatsReply meterFeaturesReply) {
    meterfeatures = meterFeaturesReply;
}
项目:onos    文件:OpenFlowSwitchDriver.java   
/**
 *  Sets the meter features reply for this switch.
 * @param meterFeaturesReply the meter features to set.
 */
void setMeterFeaturesReply(OFMeterFeaturesStatsReply meterFeaturesReply);
项目:onos    文件:OpenflowSwitchDriverAdapter.java   
@Override
public void setMeterFeaturesReply(OFMeterFeaturesStatsReply meterFeaturesReply) {

}