org.snmp4j.agent.io
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 Summary
 void close()
           
 int getImportMode()
          Returns the update mode, which might be one of the constants defined by ImportModes.
 Context readContext()
           
 IndexedVariables readIndexedVariables()
           
 MOInfo readManagedObject()
           
 Sequence readSequence()
           
 org.snmp4j.smi.Variable readVariable()
           
 void skipContext(Context context)
           
 void skipManagedObject(MOInfo mo)
          Skips to the end of the specified managed object's configuration.
 

Method Detail

getImportMode

int getImportMode()
Returns the update mode, which might be one of the constants defined by ImportModes.

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

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

Copyright 2005-2010 Frank Fock (SNMP4J.org)

Copyright © 2011 SNMP4J.org. All Rights Reserved.