Enum Class ImportMode

java.lang.Object
java.lang.Enum<ImportMode>
org.snmp4j.agent.io.ImportMode
All Implemented Interfaces:
Serializable, Comparable<ImportMode>, java.lang.constant.Constable

public enum ImportMode extends Enum<ImportMode>
The definition of import modes for MIB data.
Version:
3.0
Author:
Frank Fock
  • Enum Constant Details

    • restoreChanges

      public static final ImportMode restoreChanges
      Replaces existing data that has a StorageType.nonVolatile. Rows of type StorageType.permanent are updated if a row with the same index exists in the import data for the current ManagedObject and creates data that does not yet exist.
      Since:
      3.0
    • replaceCreate

      public static final ImportMode replaceCreate
      Replaces existing data, if there is any data available for import for the current ManagedObject and creates data that does not yet exist.
    • updateCreate

      public static final ImportMode updateCreate
      In contrast to REPLACE_CREATE, only existing data is updated or new data is created. Existing data for a ManagedObject which is not updated through imported data, will not be changed (deleted) during import.
    • update

      public static final ImportMode update
      Only update existing data. No new instances are created and nothing deleted.
    • create

      public static final ImportMode create
      Only create new instances. No updates at all.
  • Field Details

    • RESTORE_CHANGES

      public static final int RESTORE_CHANGES
      Replaces existing data that has a StorageType.nonVolatile. Rows of type StorageType.permanent are updated if a row with the same index exists in the import data for the current ManagedObject and creates data that does not yet exist.
      Since:
      3.0
      See Also:
    • REPLACE_CREATE

      public static final int REPLACE_CREATE
      Replaces existing data, if there is any data available for import for the current ManagedObject and creates data that does not yet exist.
      See Also:
    • UPDATE_CREATE

      public static final int UPDATE_CREATE
      In contrast to REPLACE_CREATE, only existing data is updated or new data is created. Existing data for a ManagedObject which is not updated through imported data, will not be changed (deleted) during import.
      See Also:
    • UPDATE

      public static final int UPDATE
      Only update existing data. No new instances are created and nothing deleted.
      See Also:
    • CREATE

      public static final int CREATE
      Only create new instances. No updates at all.
      See Also:
  • Method Details

    • values

      public static ImportMode[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static ImportMode valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified name
      NullPointerException - if the argument is null