-
- All Known Implementing Classes:
DefaultMOInput
,PropertyMOInput
public interface MOInput
TheMOInput
models 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 void
close()
int
getImportMode()
Returns the update mode, which might be one of the constants defined byImportMode
.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 byImportMode
.- 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
- 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
-
-