Class StorageType

java.lang.Object
org.snmp4j.agent.mo.MOColumn<V>
org.snmp4j.agent.mo.MOMutableColumn<org.snmp4j.smi.Integer32>
org.snmp4j.agent.mo.snmp.StorageType
All Implemented Interfaces:
Comparable

public class StorageType extends MOMutableColumn<org.snmp4j.smi.Integer32>
  • Field Details

  • Constructor Details

    • StorageType

      public StorageType(int columnID, MOAccess access, org.snmp4j.smi.Integer32 defaultValue, boolean mutableInService)
    • StorageType

      public StorageType(int columnID, MOAccess access, org.snmp4j.smi.Integer32 defaultValue)
  • Method Details

    • getStorageType

      public static org.snmp4j.smi.Integer32 getStorageType(MOTableRow<?> row, MOTable<?,?,?> table)
      Gets the value of the StorageType column (if it exists) in the specified row and table. It starts searching for the StorageType column from the last column and then proceeds down to the first until it finds it. If no StorageType column can be found, null is returned.
      Parameters:
      row - a row with a StorageType column (otherwise null is returned).
      table - the table of the given row.
      Returns:
      the Integer32 value of the StorageType column in the given row or null if the table has no StorageType column.
      Since:
      2.7.3
    • validate

      public int validate(org.snmp4j.smi.Variable newValue, org.snmp4j.smi.Variable oldValue)
      Overrides:
      validate in class MOMutableColumn<org.snmp4j.smi.Integer32>
    • isVolatile

      public boolean isVolatile(MOTableRow<org.snmp4j.smi.Integer32> row, int column)
      Description copied from class: MOColumn
      Tests if the supplied row is volatile or persistent. If volatile then the row will not be saved when the table is saved to persistent storage.
      Overrides:
      isVolatile in class MOColumn<org.snmp4j.smi.Integer32>
      Parameters:
      row - a row of the table where this column is part of.
      column - the column index of this column in row.
      Returns:
      true if row should not be