com.eurotech.framework.net
Enum NetInterfaceStatus

java.lang.Object
  extended by java.lang.Enum<NetInterfaceStatus>
      extended by com.eurotech.framework.net.NetInterfaceStatus
All Implemented Interfaces:
Serializable, Comparable<NetInterfaceStatus>

public enum NetInterfaceStatus
extends Enum<NetInterfaceStatus>

Used to track interface configuration status

Author:
eurotech

Enum Constant Summary
netIPv4StatusDisabled
          IPv4 configuration is disabled
netIPv4StatusEnabledLAN
          IPv4 configuration is enabled as a LAN interface
netIPv4StatusEnabledWAN
          IPv4 configuration is enabled as a WAN interface
netIPv4StatusUnknown
          IPv4 configuration is unknown
netIPv6StatusDisabled
          IPv6 configuration is disabled
netIPv6StatusEnabledLAN
          IPv6 configuration is enabled as a LAN interface
netIPv6StatusEnabledWAN
          IPv6 configuration is enabled as a WAN interface
netIPv6StatusUnknown
          IPv6 configuration is unknown
 
Method Summary
static NetInterfaceStatus valueOf(String name)
          Returns the enum constant of this type with the specified name.
static NetInterfaceStatus[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

netIPv4StatusDisabled

public static final NetInterfaceStatus netIPv4StatusDisabled
IPv4 configuration is disabled


netIPv4StatusEnabledLAN

public static final NetInterfaceStatus netIPv4StatusEnabledLAN
IPv4 configuration is enabled as a LAN interface


netIPv4StatusEnabledWAN

public static final NetInterfaceStatus netIPv4StatusEnabledWAN
IPv4 configuration is enabled as a WAN interface


netIPv4StatusUnknown

public static final NetInterfaceStatus netIPv4StatusUnknown
IPv4 configuration is unknown


netIPv6StatusDisabled

public static final NetInterfaceStatus netIPv6StatusDisabled
IPv6 configuration is disabled


netIPv6StatusEnabledLAN

public static final NetInterfaceStatus netIPv6StatusEnabledLAN
IPv6 configuration is enabled as a LAN interface


netIPv6StatusEnabledWAN

public static final NetInterfaceStatus netIPv6StatusEnabledWAN
IPv6 configuration is enabled as a WAN interface


netIPv6StatusUnknown

public static final NetInterfaceStatus netIPv6StatusUnknown
IPv6 configuration is unknown

Method Detail

values

public static NetInterfaceStatus[] 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 (NetInterfaceStatus c : NetInterfaceStatus.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static NetInterfaceStatus 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 name
NullPointerException - if the argument is null


Copyright © 2013. All Rights Reserved.