-
- All Known Implementing Classes:
DefaultMOInput,PropertyMOInput
public interface MOInputTheMOInputmodels the interface for reading ManagedObject data into a SNMP4J-Agent in a generic way.- Version:
- 1.2
- Author:
- Frank Fock
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidclose()intgetImportMode()Returns the update mode, which might be one of the constants defined byImportMode.ContextreadContext()IndexedVariablesreadIndexedVariables()MOInforeadManagedObject()SequencereadSequence()org.snmp4j.smi.VariablereadVariable()voidskipContext(Context context)voidskipManagedObject(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 byImportMode.- Returns:
- the constant denoting the update mode that should be used by a
SerializableManagedObjectto import its content from persistent storage.
-
readContext
Context readContext() throws IOException
- Throws:
IOException
-
skipContext
void skipContext(Context context) throws IOException
- Throws:
IOException
-
readManagedObject
MOInfo readManagedObject() throws IOException
- Throws:
IOException
-
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- Throws:
IOException
-
readSequence
Sequence readSequence() throws IOException
- Throws:
IOException
-
readIndexedVariables
IndexedVariables readIndexedVariables() throws IOException
- Throws:
IOException
-
close
void close() throws IOException- Throws:
IOException
-
-