Package org.opennms.smoketest.stacks
Enum NetworkProtocol
- java.lang.Object
-
- java.lang.Enum<NetworkProtocol>
-
- org.opennms.smoketest.stacks.NetworkProtocol
-
- All Implemented Interfaces:
Serializable
,Comparable<NetworkProtocol>
public enum NetworkProtocol extends Enum<NetworkProtocol>
Network protocols used by our services. This includes both ports for management and communication from devices.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description InternetProtocol
getIpProtocol()
static NetworkProtocol
valueOf(String name)
Returns the enum constant of this type with the specified name.static NetworkProtocol[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
SSH
public static final NetworkProtocol SSH
-
HTTP
public static final NetworkProtocol HTTP
-
JDWP
public static final NetworkProtocol JDWP
-
SYSLOG
public static final NetworkProtocol SYSLOG
-
SNMP
public static final NetworkProtocol SNMP
-
JTI
public static final NetworkProtocol JTI
-
NXOS
public static final NetworkProtocol NXOS
-
FLOWS
public static final NetworkProtocol FLOWS
-
BMP
public static final NetworkProtocol BMP
-
IPFIX_TCP
public static final NetworkProtocol IPFIX_TCP
-
GRPC
public static final NetworkProtocol GRPC
-
-
Method Detail
-
values
public static NetworkProtocol[] 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 (NetworkProtocol c : NetworkProtocol.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static NetworkProtocol valueOf(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:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
getIpProtocol
public InternetProtocol getIpProtocol()
-
-