Interface MOInput

All Known Implementing Classes:
DefaultMOInput, PropertyMOInput

public interface MOInput
The MOInput models the interface for reading ManagedObject data into a SNMP4J-Agent in a generic way.
Version:
1.2
Author:
Frank Fock
  • Method Details

    • getImportMode

      int getImportMode()
      Returns the update mode, which might be one of the constants defined by ImportMode.
      Returns:
      the constant denoting the update mode that should be used by a SerializableManagedObject to import its content from persistent storage.
    • readContext

      Context readContext() throws IOException
      Reads and returns a Context from the input source.
      Returns:
      a Context instance representing the context information extracted from the input source.
      Throws:
      IOException - if an error occurs while reading the Context.
    • skipContext

      void skipContext(Context context) throws IOException
      Skips the specified Context during the reading process. This method is used to bypass a context in the input stream without processing it.
      Parameters:
      context - the Context instance to be skipped. This represents specific context information that is available in the input.
      Throws:
      IOException - if an I/O error occurs while attempting to skip the context in the input stream.
    • readManagedObject

      MOInfo readManagedObject() throws IOException
      Reads and returns a MOInfo object from the input source. A MOInfo instance encapsulates information about a managed object, including its unique identifier (OID) and version details.
      Returns:
      a MOInfo instance representing the managed object information read from the input source.
      Throws:
      IOException - if an I/O error occurs while reading the managed object.
    • skipManagedObject

      void skipManagedObject(MOInfo mo) throws IOException
      Skips to the end of the specified managed object's configuration.
      Parameters:
      mo - a MOInfo instance.
      Throws:
      IOException - if the input stream cannot be read.
    • readVariable

      org.snmp4j.smi.Variable readVariable() throws IOException
      Reads a Variable from the input source.
      Returns:
      a Variable object representing the data read from the input source.
      Throws:
      IOException - if an I/O error occurs while reading the Variable.
    • readSequence

      Sequence readSequence() throws IOException
      Reads and returns a Sequence from the input source.
      Returns:
      a Sequence object representing the data read from the input source.
      Throws:
      IOException - if an I/O error occurs while reading the Sequence.
    • readIndexedVariables

      IndexedVariables readIndexedVariables() throws IOException
      Reads and returns an IndexedVariables instance from the input source. An IndexedVariables object encapsulates an index and an array of variables, providing a structured representation of indexed row data.
      Returns:
      an IndexedVariables instance representing the indexed row data read from the input.
      Throws:
      IOException - if an I/O error occurs while reading the input source.
    • close

      void close() throws IOException
      Throws:
      IOException