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

项目: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    文件:AbstractOpenFlowSwitch.java   
@Override
public OFMeterFeatures getMeterFeatures() {
    if (this.meterfeatures != null) {
        return this.meterfeatures.getFeatures();
    } else {
        return null;
    }
}
项目:onos    文件:OpenFlowMeterProvider.java   
private MeterFeatures buildMeterFeatures(Dpid dpid, OFMeterFeatures mf) {
    if (mf != null) {
        return new MeterFeaturesBuilder(mf, deviceId(uri(dpid)))
                .build();
    } else {
        // This will usually happen for OpenFlow devices prior to 1.3
        return MeterFeaturesBuilder.noMeterFeatures(deviceId(uri(dpid)));
    }
}
项目:onos    文件:OpenFlowSwitchAdapter.java   
@Override
public OFMeterFeatures getMeterFeatures() {
    return null;
}
项目:onos    文件:OpenflowSwitchDriverAdapter.java   
@Override
public OFMeterFeatures getMeterFeatures() {
    return null;
}
项目:onos    文件:OpenFlowDeviceProviderTest.java   
@Override
public OFMeterFeatures getMeterFeatures() {
    return null;
}
项目:onos    文件:OpenFlowGroupProviderTest.java   
@Override
public OFMeterFeatures getMeterFeatures() {
    return null;
}
项目:onos    文件:MeterFeaturesBuilder.java   
public MeterFeaturesBuilder(OFMeterFeatures features, DeviceId deviceId) {
    this.ofMeterFeatures = checkNotNull(features);
    this.deviceId = deviceId;
}
项目:onos    文件:OpenFlowMeterProvider.java   
private void pushMeterFeatures(Dpid dpid, OFMeterFeatures meterFeatures) {
    providerService.pushMeterFeatures(deviceId(uri(dpid)),
            buildMeterFeatures(dpid, meterFeatures));
}
项目:onos    文件:OpenFlowPacketProviderTest.java   
@Override
public OFMeterFeatures getMeterFeatures() {
    return null;
}
项目:onos    文件:OpenFlowSwitch.java   
/**
 * Fetches the meter features of this switch.
 * @return unmodifiable meter features
 */
OFMeterFeatures getMeterFeatures();