- java.lang.Object
-
- java.lang.Enum<MOTableRowEvent.OriginType>
-
- org.snmp4j.agent.mo.MOTableRowEvent.OriginType
-
- All Implemented Interfaces:
Serializable
,Comparable<MOTableRowEvent.OriginType>
- Enclosing class:
- MOTableRowEvent<R extends MOTableRow>
public static enum MOTableRowEvent.OriginType extends Enum<MOTableRowEvent.OriginType>
Specifies the origin of a change: the source of an external change is a protocol operation (SNMP or AgentX) that originates external to the managed object. The source of an internal change is originated from within the managed object, for example when loading a row from persistent storage.- Since:
- 3.3.0
-
-
Enum Constant Summary
Enum Constants Enum Constant Description external
Change is originated from external source of the affectedManagedObject
, for example by a SNMP (AgentX) protocol operation.internal
Change is originated from internal source of the affectedManagedObject
, for example by loading a row from persistent storage withDefaultMOTable.loadRow(OID, Variable[], int)
.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static MOTableRowEvent.OriginType
valueOf(String name)
Returns the enum constant of this type with the specified name.static MOTableRowEvent.OriginType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
external
public static final MOTableRowEvent.OriginType external
Change is originated from external source of the affectedManagedObject
, for example by a SNMP (AgentX) protocol operation.
-
internal
public static final MOTableRowEvent.OriginType internal
Change is originated from internal source of the affectedManagedObject
, for example by loading a row from persistent storage withDefaultMOTable.loadRow(OID, Variable[], int)
.
-
-
Method Detail
-
values
public static MOTableRowEvent.OriginType[] 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 (MOTableRowEvent.OriginType c : MOTableRowEvent.OriginType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static MOTableRowEvent.OriginType 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
-
-