Class SnmpAdminString

java.lang.Object
org.snmp4j.agent.mo.MOColumn<org.snmp4j.smi.OctetString>
org.snmp4j.agent.mo.MOMutableColumn<org.snmp4j.smi.OctetString>
org.snmp4j.agent.mo.snmp.SnmpAdminString
All Implemented Interfaces:
Comparable<MOColumn<org.snmp4j.smi.OctetString>>

public class SnmpAdminString extends MOMutableColumn<org.snmp4j.smi.OctetString>
  • Constructor Details

    • SnmpAdminString

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

      public SnmpAdminString(int columnID, MOAccess access, org.snmp4j.smi.OctetString defaultValue, boolean mutableInService, int minLength, int maxLength)
  • Method Details

    • getMaxLength

      public int getMaxLength()
    • getMinLength

      public int getMinLength()
    • setMaxLength

      public void setMaxLength(int maxLength)
    • setMinLength

      public void setMinLength(int minLength)
    • validate

      public int validate(org.snmp4j.smi.OctetString newValue, org.snmp4j.smi.OctetString oldValue, org.snmp4j.smi.OID instanceOID)
      Description copied from class: MOMutableColumn
      Validate the new value for a mutable column based on old value and (new in v3.7.0) the instance OID.
      Overrides:
      validate in class MOMutableColumn<org.snmp4j.smi.OctetString>
      Parameters:
      newValue - the new value to be set.
      oldValue - the existing value.
      instanceOID - the instance OID of the table cell to be modified.
      Returns:
      SnmpConstants.SNMP_ERROR_SUCCESS if the change is OK, otherwise a SNMP error status.