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

项目:openflowj-otn    文件:OFStatsRequestFlagsSerializerVer12.java   
public static Set<OFStatsRequestFlags> readFrom(ChannelBuffer bb) throws OFParseError {
    try {
        return ofWireValue(bb.readShort());
    } catch (IllegalArgumentException e) {
        throw new OFParseError(e);
    }
}
项目:openflowj-otn    文件:OFStatsRequestFlagsSerializerVer12.java   
public static short toWireValue(Set<OFStatsRequestFlags> set) {
    short wireValue = 0;

    for(OFStatsRequestFlags e: set) {
        switch(e) {
            default:
                throw new IllegalArgumentException("Illegal enum value for type OFStatsRequestFlags in version 1.2: " + e);
        }
    }
    return wireValue;
}
项目:openflowj-otn    文件:OFStatsRequestFlagsSerializerVer13.java   
public static Set<OFStatsRequestFlags> readFrom(ChannelBuffer bb) throws OFParseError {
    try {
        return ofWireValue(bb.readShort());
    } catch (IllegalArgumentException e) {
        throw new OFParseError(e);
    }
}
项目:openflowj-otn    文件:OFStatsRequestFlagsSerializerVer13.java   
public static Set<OFStatsRequestFlags> ofWireValue(short val) {
    EnumSet<OFStatsRequestFlags> set = EnumSet.noneOf(OFStatsRequestFlags.class);

    if((val & REQ_MORE_VAL) != 0)
        set.add(OFStatsRequestFlags.REQ_MORE);
    return Collections.unmodifiableSet(set);
}
项目:openflowj-otn    文件:OFStatsRequestFlagsSerializerVer13.java   
public static short toWireValue(Set<OFStatsRequestFlags> set) {
    short wireValue = 0;

    for(OFStatsRequestFlags e: set) {
        switch(e) {
            case REQ_MORE:
                wireValue |= REQ_MORE_VAL;
                break;
            default:
                throw new IllegalArgumentException("Illegal enum value for type OFStatsRequestFlags in version 1.3: " + e);
        }
    }
    return wireValue;
}
项目:openflowj-otn    文件:OFStatsRequestFlagsSerializerVer10.java   
public static Set<OFStatsRequestFlags> readFrom(ChannelBuffer bb) throws OFParseError {
    try {
        return ofWireValue(bb.readShort());
    } catch (IllegalArgumentException e) {
        throw new OFParseError(e);
    }
}
项目:openflowj-otn    文件:OFStatsRequestFlagsSerializerVer10.java   
public static short toWireValue(Set<OFStatsRequestFlags> set) {
    short wireValue = 0;

    for(OFStatsRequestFlags e: set) {
        switch(e) {
            default:
                throw new IllegalArgumentException("Illegal enum value for type OFStatsRequestFlags in version 1.0: " + e);
        }
    }
    return wireValue;
}
项目:openflowj-otn    文件:OFStatsRequestFlagsSerializerVer11.java   
public static Set<OFStatsRequestFlags> readFrom(ChannelBuffer bb) throws OFParseError {
    try {
        return ofWireValue(bb.readShort());
    } catch (IllegalArgumentException e) {
        throw new OFParseError(e);
    }
}
项目:openflowj-otn    文件:OFStatsRequestFlagsSerializerVer11.java   
public static short toWireValue(Set<OFStatsRequestFlags> set) {
    short wireValue = 0;

    for(OFStatsRequestFlags e: set) {
        switch(e) {
            default:
                throw new IllegalArgumentException("Illegal enum value for type OFStatsRequestFlags in version 1.1: " + e);
        }
    }
    return wireValue;
}
项目:openflowj-otn    文件:OFStatsRequestFlagsSerializerVer14.java   
public static Set<OFStatsRequestFlags> readFrom(ChannelBuffer bb) throws OFParseError {
    try {
        return ofWireValue(bb.readShort());
    } catch (IllegalArgumentException e) {
        throw new OFParseError(e);
    }
}
项目:openflowj-otn    文件:OFStatsRequestFlagsSerializerVer14.java   
public static Set<OFStatsRequestFlags> ofWireValue(short val) {
    EnumSet<OFStatsRequestFlags> set = EnumSet.noneOf(OFStatsRequestFlags.class);

    if((val & REQ_MORE_VAL) != 0)
        set.add(OFStatsRequestFlags.REQ_MORE);
    return Collections.unmodifiableSet(set);
}
项目:openflowj-otn    文件:OFStatsRequestFlagsSerializerVer14.java   
public static short toWireValue(Set<OFStatsRequestFlags> set) {
    short wireValue = 0;

    for(OFStatsRequestFlags e: set) {
        switch(e) {
            case REQ_MORE:
                wireValue |= REQ_MORE_VAL;
                break;
            default:
                throw new IllegalArgumentException("Illegal enum value for type OFStatsRequestFlags in version 1.4: " + e);
        }
    }
    return wireValue;
}
项目:loxigen-artifacts    文件:OFStatsRequestFlagsSerializerVer12.java   
public static Set<OFStatsRequestFlags> readFrom(ByteBuf bb) throws OFParseError {
    try {
        return ofWireValue(bb.readShort());
    } catch (IllegalArgumentException e) {
        throw new OFParseError(e);
    }
}
项目:loxigen-artifacts    文件:OFStatsRequestFlagsSerializerVer12.java   
public static short toWireValue(Set<OFStatsRequestFlags> set) {
    short wireValue = 0;

    for(OFStatsRequestFlags e: set) {
        switch(e) {
            default:
                throw new IllegalArgumentException("Illegal enum value for type OFStatsRequestFlags in version 1.2: " + e);
        }
    }
    return wireValue;
}
项目:loxigen-artifacts    文件:OFStatsRequestFlagsSerializerVer13.java   
public static Set<OFStatsRequestFlags> readFrom(ByteBuf bb) throws OFParseError {
    try {
        return ofWireValue(bb.readShort());
    } catch (IllegalArgumentException e) {
        throw new OFParseError(e);
    }
}
项目:loxigen-artifacts    文件:OFStatsRequestFlagsSerializerVer13.java   
public static Set<OFStatsRequestFlags> ofWireValue(short val) {
    EnumSet<OFStatsRequestFlags> set = EnumSet.noneOf(OFStatsRequestFlags.class);

    if((val & REQ_MORE_VAL) != 0)
        set.add(OFStatsRequestFlags.REQ_MORE);
    return Collections.unmodifiableSet(set);
}
项目:loxigen-artifacts    文件:OFStatsRequestFlagsSerializerVer13.java   
public static short toWireValue(Set<OFStatsRequestFlags> set) {
    short wireValue = 0;

    for(OFStatsRequestFlags e: set) {
        switch(e) {
            case REQ_MORE:
                wireValue |= REQ_MORE_VAL;
                break;
            default:
                throw new IllegalArgumentException("Illegal enum value for type OFStatsRequestFlags in version 1.3: " + e);
        }
    }
    return wireValue;
}
项目:loxigen-artifacts    文件:OFStatsRequestFlagsSerializerVer10.java   
public static Set<OFStatsRequestFlags> readFrom(ByteBuf bb) throws OFParseError {
    try {
        return ofWireValue(bb.readShort());
    } catch (IllegalArgumentException e) {
        throw new OFParseError(e);
    }
}
项目:loxigen-artifacts    文件:OFStatsRequestFlagsSerializerVer10.java   
public static short toWireValue(Set<OFStatsRequestFlags> set) {
    short wireValue = 0;

    for(OFStatsRequestFlags e: set) {
        switch(e) {
            default:
                throw new IllegalArgumentException("Illegal enum value for type OFStatsRequestFlags in version 1.0: " + e);
        }
    }
    return wireValue;
}
项目:loxigen-artifacts    文件:OFStatsRequestFlagsSerializerVer15.java   
public static Set<OFStatsRequestFlags> readFrom(ByteBuf bb) throws OFParseError {
    try {
        return ofWireValue(bb.readShort());
    } catch (IllegalArgumentException e) {
        throw new OFParseError(e);
    }
}
项目:loxigen-artifacts    文件:OFStatsRequestFlagsSerializerVer15.java   
public static Set<OFStatsRequestFlags> ofWireValue(short val) {
    EnumSet<OFStatsRequestFlags> set = EnumSet.noneOf(OFStatsRequestFlags.class);

    if((val & REQ_MORE_VAL) != 0)
        set.add(OFStatsRequestFlags.REQ_MORE);
    return Collections.unmodifiableSet(set);
}
项目:loxigen-artifacts    文件:OFStatsRequestFlagsSerializerVer15.java   
public static short toWireValue(Set<OFStatsRequestFlags> set) {
    short wireValue = 0;

    for(OFStatsRequestFlags e: set) {
        switch(e) {
            case REQ_MORE:
                wireValue |= REQ_MORE_VAL;
                break;
            default:
                throw new IllegalArgumentException("Illegal enum value for type OFStatsRequestFlags in version 1.5: " + e);
        }
    }
    return wireValue;
}
项目:loxigen-artifacts    文件:OFStatsRequestFlagsSerializerVer11.java   
public static Set<OFStatsRequestFlags> readFrom(ByteBuf bb) throws OFParseError {
    try {
        return ofWireValue(bb.readShort());
    } catch (IllegalArgumentException e) {
        throw new OFParseError(e);
    }
}
项目:loxigen-artifacts    文件:OFStatsRequestFlagsSerializerVer11.java   
public static short toWireValue(Set<OFStatsRequestFlags> set) {
    short wireValue = 0;

    for(OFStatsRequestFlags e: set) {
        switch(e) {
            default:
                throw new IllegalArgumentException("Illegal enum value for type OFStatsRequestFlags in version 1.1: " + e);
        }
    }
    return wireValue;
}
项目:loxigen-artifacts    文件:OFStatsRequestFlagsSerializerVer14.java   
public static Set<OFStatsRequestFlags> readFrom(ByteBuf bb) throws OFParseError {
    try {
        return ofWireValue(bb.readShort());
    } catch (IllegalArgumentException e) {
        throw new OFParseError(e);
    }
}
项目:loxigen-artifacts    文件:OFStatsRequestFlagsSerializerVer14.java   
public static Set<OFStatsRequestFlags> ofWireValue(short val) {
    EnumSet<OFStatsRequestFlags> set = EnumSet.noneOf(OFStatsRequestFlags.class);

    if((val & REQ_MORE_VAL) != 0)
        set.add(OFStatsRequestFlags.REQ_MORE);
    return Collections.unmodifiableSet(set);
}
项目:loxigen-artifacts    文件:OFStatsRequestFlagsSerializerVer14.java   
public static short toWireValue(Set<OFStatsRequestFlags> set) {
    short wireValue = 0;

    for(OFStatsRequestFlags e: set) {
        switch(e) {
            case REQ_MORE:
                wireValue |= REQ_MORE_VAL;
                break;
            default:
                throw new IllegalArgumentException("Illegal enum value for type OFStatsRequestFlags in version 1.4: " + e);
        }
    }
    return wireValue;
}
项目:fresco_floodlight    文件:OFSwitchHandshakeHandler.java   
protected void sendPortDescRequest() {
    mainConnection.write(factory.portDescStatsRequest(ImmutableSet.<OFStatsRequestFlags>of()));
}
项目:iTAP-controller    文件:OFSwitchHandshakeHandler.java   
protected void sendPortDescRequest() {
    mainConnection.write(factory.portDescStatsRequest(ImmutableSet.<OFStatsRequestFlags>of()));
}
项目:SDN-Multicast    文件:OFSwitchHandshakeHandler.java   
protected void sendPortDescRequest() {
    mainConnection.write(factory.portDescStatsRequest(ImmutableSet.<OFStatsRequestFlags>of()));
}
项目:arscheduler    文件:OFSwitchHandshakeHandler.java   
protected void sendPortDescRequest() {
    mainConnection.write(factory.portDescStatsRequest(ImmutableSet.<OFStatsRequestFlags>of()));
}
项目:floodlight1.2-delay    文件:OFSwitchHandshakeHandler.java   
protected void sendPortDescRequest() {
    mainConnection.write(factory.portDescStatsRequest(ImmutableSet.<OFStatsRequestFlags>of()));
}
项目:floodlight-hardware    文件:OFSwitchHandshakeHandler.java   
protected void sendPortDescRequest() {
    mainConnection.write(factory.portDescStatsRequest(ImmutableSet.<OFStatsRequestFlags>of()));
}
项目:ACAMPController    文件:OFSwitchHandshakeHandler.java   
protected void sendPortDescRequest() {
    mainConnection.write(factory.portDescStatsRequest(ImmutableSet.<OFStatsRequestFlags>of()));
}
项目:fast-failover-demo    文件:OFSwitchHandshakeHandler.java   
protected void sendPortDescRequest() {
    mainConnection.write(factory.portDescStatsRequest(ImmutableSet.<OFStatsRequestFlags>of()));
}
项目:floodlightLB    文件:OFSwitchHandshakeHandler.java   
protected void sendPortDescRequest() {
    mainConnection.write(factory.portDescStatsRequest(ImmutableSet.<OFStatsRequestFlags>of()));
}
项目:DSC    文件:OFSwitchHandshakeHandler.java   
protected void sendPortDescRequest() {
    mainConnection.write(factory.portDescStatsRequest(ImmutableSet.<OFStatsRequestFlags>of()));
}
项目:floodlight    文件:OFSwitchHandshakeHandler.java   
protected void sendPortDescRequest() {
    mainConnection.write(factory.portDescStatsRequest(ImmutableSet.<OFStatsRequestFlags>of()));
}
项目:openflowj-otn    文件:OFStatsRequestFlagsSerializerVer12.java   
public static void writeTo(ChannelBuffer bb, Set<OFStatsRequestFlags> set) {
    bb.writeShort(toWireValue(set));
}
项目:openflowj-otn    文件:OFStatsRequestFlagsSerializerVer12.java   
public static void putTo(Set<OFStatsRequestFlags> set, PrimitiveSink sink) {
    sink.putShort(toWireValue(set));
}