net.sf.snmpadaptor4j.object
Enum GenericSnmpTrapType

java.lang.Object
  extended by java.lang.Enum<GenericSnmpTrapType>
      extended by net.sf.snmpadaptor4j.object.GenericSnmpTrapType
All Implemented Interfaces:
Serializable, Comparable<GenericSnmpTrapType>

public enum GenericSnmpTrapType
extends Enum<GenericSnmpTrapType>

Enumeration of generic type of SNMP traps.

Author:
Jean-Philippe MINETTI

Enum Constant Summary
authenticationFailure
          RFC1157 says: An authenticationFailure(4) trap signifies that the sending protocol entity is the addressee of a protocol message that is not properly authenticated.
coldStart
          RFC1157 says: A coldStart(0) trap signifies that the sending protocol entity is reinitializing itself such that the agent's configuration or the protocol entity implementation may be altered.
egpNeighborLoss
          RFC1157 says: An egpNeighborLoss(5) trap signifies that an EGP neighbor for whom the sending protocol entity was an EGP peer has been marked down and the peer relationship no longer obtains.
linkDown
          RFC1157 says: A linkDown(2) trap signifies that the sending protocol entity recognizes a failure in one of the communication links represented in the agent's configuration.
linkUp
          RFC1157 says: A linkUp(3) trap signifies that the sending protocol entity recognizes that one of the communication links represented in the agent's configuration has come up.
warmStart
          RFC1157 says: A warmStart(1) trap signifies that the sending protocol entity is reinitializing itself such that neither the agent configuration nor the protocol entity implementation is altered.
 
Method Summary
static GenericSnmpTrapType valueOf(String name)
          Returns the enum constant of this type with the specified name.
static GenericSnmpTrapType[] 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

coldStart

public static final GenericSnmpTrapType coldStart
RFC1157 says:

A coldStart(0) trap signifies that the sending protocol entity is reinitializing itself such that the agent's configuration or the protocol entity implementation may be altered.


warmStart

public static final GenericSnmpTrapType warmStart
RFC1157 says:

A warmStart(1) trap signifies that the sending protocol entity is reinitializing itself such that neither the agent configuration nor the protocol entity implementation is altered.


linkDown

public static final GenericSnmpTrapType linkDown
RFC1157 says:

A linkDown(2) trap signifies that the sending protocol entity recognizes a failure in one of the communication links represented in the agent's configuration.

The Trap-PDU of type linkDown contains as the first element of its variable-bindings, the name and value of the ifIndex instance for the affected interface.


linkUp

public static final GenericSnmpTrapType linkUp
RFC1157 says:

A linkUp(3) trap signifies that the sending protocol entity recognizes that one of the communication links represented in the agent's configuration has come up.

The Trap-PDU of type linkUp contains as the first element of its variable-bindings, the name and value of the ifIndex instance for the affected interface.


authenticationFailure

public static final GenericSnmpTrapType authenticationFailure
RFC1157 says:

An authenticationFailure(4) trap signifies that the sending protocol entity is the addressee of a protocol message that is not properly authenticated. While implementations of the SNMP must be capable of generating this trap, they must also be capable of suppressing the emission of such traps via an implementation-specific mechanism.


egpNeighborLoss

public static final GenericSnmpTrapType egpNeighborLoss
RFC1157 says:

An egpNeighborLoss(5) trap signifies that an EGP neighbor for whom the sending protocol entity was an EGP peer has been marked down and the peer relationship no longer obtains.

The Trap-PDU of type egpNeighborLoss contains as the first element of its variable-bindings, the name and value of the egpNeighAddr instance for the affected neighbor.

Method Detail

values

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

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

valueOf

public static GenericSnmpTrapType 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 © 2012-2013 snmpAdaptor4j. All Rights Reserved.