Class RowStatusTC<R extends MOTableRow>

  • Type Parameters:
    R - the MOTableRow instance this type of RowStatus is able to manage.
    All Implemented Interfaces:
    TextualConvention<org.snmp4j.smi.Integer32>

    public class RowStatusTC<R extends MOTableRow>
    extends java.lang.Object
    implements TextualConvention<org.snmp4j.smi.Integer32>
    The RowStatusTC implements a Integer32 TextualConvention that implements the SNMPv2-MIB RowStatus textual convention.
    Version:
    3.1
    Author:
    Frank Fock
    • Constructor Summary

      Constructors 
      Constructor Description
      RowStatusTC()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      MOColumn<org.snmp4j.smi.Integer32> createColumn​(int columnID, int syntax, MOAccess access, org.snmp4j.smi.Integer32 defaultValue, boolean mutableInService)
      Creates a MOColumn instance of this TC specified by the column ID, access, default value, and mutable flag.
      org.snmp4j.smi.Integer32 createInitialValue()
      Creates an initial value for an object instance of this textual convention.
      MOScalar<org.snmp4j.smi.Integer32> createScalar​(org.snmp4j.smi.OID oid, MOAccess access, org.snmp4j.smi.Integer32 value)
      Creates a MOScalar instance of this TC specified by OID, access, and optional value.
      java.lang.String getModuleName()
      Returns the MIB module name that defined this textual convention.
      java.lang.String getName()
      Returns the name of the textual convention as defined in the MIB module.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • RowStatusTC

        public RowStatusTC()
    • Method Detail

      • createColumn

        public MOColumn<org.snmp4j.smi.Integer32> createColumn​(int columnID,
                                                               int syntax,
                                                               MOAccess access,
                                                               org.snmp4j.smi.Integer32 defaultValue,
                                                               boolean mutableInService)
        Description copied from interface: TextualConvention
        Creates a MOColumn instance of this TC specified by the column ID, access, default value, and mutable flag.
        Specified by:
        createColumn in interface TextualConvention<R extends MOTableRow>
        Parameters:
        columnID - the column id as defined in the MIB module (typically starting at one).
        syntax - the SMI syntax supported by the column.
        access - the access definition.
        defaultValue - the default value or null if there is no DEFVAL clause for this column.
        mutableInService - true if this column may be modified while row is in service.
        Returns:
        the MOColumn created.
      • createScalar

        public MOScalar<org.snmp4j.smi.Integer32> createScalar​(org.snmp4j.smi.OID oid,
                                                               MOAccess access,
                                                               org.snmp4j.smi.Integer32 value)
        Description copied from interface: TextualConvention
        Creates a MOScalar instance of this TC specified by OID, access, and optional value.
        Specified by:
        createScalar in interface TextualConvention<R extends MOTableRow>
        Parameters:
        oid - the OID of the scalar isntance.
        access - the access definition.
        value - the Variable instance containing the value of the scalar. If value is null, the TC should create an initial value with TextualConvention.createInitialValue().
        Returns:
        a MOScalar instance.
      • getModuleName

        public java.lang.String getModuleName()
        Description copied from interface: TextualConvention
        Returns the MIB module name that defined this textual convention.
        Specified by:
        getModuleName in interface TextualConvention<R extends MOTableRow>
        Returns:
        an unique module name
      • getName

        public java.lang.String getName()
        Description copied from interface: TextualConvention
        Returns the name of the textual convention as defined in the MIB module.
        Specified by:
        getName in interface TextualConvention<R extends MOTableRow>
        Returns:
        the unique name (within the MIB module) of the TC.
      • createInitialValue

        public org.snmp4j.smi.Integer32 createInitialValue()
        Description copied from interface: TextualConvention
        Creates an initial value for an object instance of this textual convention.
        Specified by:
        createInitialValue in interface TextualConvention<R extends MOTableRow>
        Returns:
        a Variable instance with a valid value (according to this TC).