Enum HeaderProtocol
- java.lang.Object
-
- java.lang.Enum<HeaderProtocol>
-
- org.opennms.netmgt.telemetry.protocols.sflow.parser.proto.flows.HeaderProtocol
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<HeaderProtocol>
public enum HeaderProtocol extends java.lang.Enum<HeaderProtocol>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description AAL5
AAL5_IP
ETHERNET_ISO88023
FDDI
FRAME_RELAY
IEEE80211_AMPDU
IEEE80211_AMSDU_Subframe
IEEE80211MAC
IPv4
IPv6
ISO88024_TOKENBUS
ISO88025_TOKENRING
MPLS
POS
PPP
SMDS
X25
-
Field Summary
Fields Modifier and Type Field Description int
value
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static HeaderProtocol
from(io.netty.buffer.ByteBuf buffer)
java.lang.String
toString()
static HeaderProtocol
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static HeaderProtocol[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.void
writeBson(org.bson.BsonWriter bsonWriter)
-
-
-
Enum Constant Detail
-
ETHERNET_ISO88023
public static final HeaderProtocol ETHERNET_ISO88023
-
ISO88024_TOKENBUS
public static final HeaderProtocol ISO88024_TOKENBUS
-
ISO88025_TOKENRING
public static final HeaderProtocol ISO88025_TOKENRING
-
FDDI
public static final HeaderProtocol FDDI
-
FRAME_RELAY
public static final HeaderProtocol FRAME_RELAY
-
X25
public static final HeaderProtocol X25
-
PPP
public static final HeaderProtocol PPP
-
SMDS
public static final HeaderProtocol SMDS
-
AAL5
public static final HeaderProtocol AAL5
-
AAL5_IP
public static final HeaderProtocol AAL5_IP
-
IPv4
public static final HeaderProtocol IPv4
-
IPv6
public static final HeaderProtocol IPv6
-
MPLS
public static final HeaderProtocol MPLS
-
POS
public static final HeaderProtocol POS
-
IEEE80211MAC
public static final HeaderProtocol IEEE80211MAC
-
IEEE80211_AMPDU
public static final HeaderProtocol IEEE80211_AMPDU
-
IEEE80211_AMSDU_Subframe
public static final HeaderProtocol IEEE80211_AMSDU_Subframe
-
-
Method Detail
-
values
public static HeaderProtocol[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (HeaderProtocol c : HeaderProtocol.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static HeaderProtocol valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Enum<HeaderProtocol>
-
from
public static HeaderProtocol from(io.netty.buffer.ByteBuf buffer) throws InvalidPacketException
- Throws:
InvalidPacketException
-
writeBson
public void writeBson(org.bson.BsonWriter bsonWriter)
-
-