-
- 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 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
-
-