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 Detail

      • 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 java.io.IOException
        Throws:
        java.io.IOException
      • skipContext

        void skipContext​(Context context)
                  throws java.io.IOException
        Throws:
        java.io.IOException
      • readManagedObject

        MOInfo readManagedObject()
                          throws java.io.IOException
        Throws:
        java.io.IOException
      • skipManagedObject

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

        org.snmp4j.smi.Variable readVariable()
                                      throws java.io.IOException
        Throws:
        java.io.IOException
      • readSequence

        Sequence readSequence()
                       throws java.io.IOException
        Throws:
        java.io.IOException
      • readIndexedVariables

        IndexedVariables readIndexedVariables()
                                       throws java.io.IOException
        Throws:
        java.io.IOException
      • close

        void close()
            throws java.io.IOException
        Throws:
        java.io.IOException