java.lang.Object
org.snmp4j.agent.io.DefaultMOInput
- All Implemented Interfaces:
MOInput
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()intReturns the update mode, which might be one of the constants defined byImportMode.org.snmp4j.smi.VariablevoidsetOverwriteMode(int importMode) voidskipContext(Context context) voidskipManagedObject(MOInfo moInfo) Skips to the end of the specified managed object's configuration.
-
Constructor Details
-
DefaultMOInput
-
-
Method Details
-
getImportMode
public int getImportMode()Description copied from interface:MOInputReturns the update mode, which might be one of the constants defined byImportMode.- Specified by:
getImportModein interfaceMOInput- Returns:
- the constant denoting the update mode that should be used by a
SerializableManagedObjectto import its content from persistent storage.
-
readContext
- Specified by:
readContextin interfaceMOInput- Throws:
IOException
-
readIndexedVariables
- Specified by:
readIndexedVariablesin interfaceMOInput- Throws:
IOException
-
readManagedObject
- Specified by:
readManagedObjectin interfaceMOInput- Throws:
IOException
-
readSequence
- Specified by:
readSequencein interfaceMOInput- Throws:
IOException
-
readVariable
- Specified by:
readVariablein interfaceMOInput- Throws:
IOException
-
skipContext
- Specified by:
skipContextin interfaceMOInput- Throws:
IOException
-
skipManagedObject
Description copied from interface:MOInputSkips to the end of the specified managed object's configuration.- Specified by:
skipManagedObjectin interfaceMOInput- Parameters:
moInfo- a MOInfo instance.- Throws:
IOException- if the input stream cannot be read.
-
setOverwriteMode
public void setOverwriteMode(int importMode) -
close
- Specified by:
closein interfaceMOInput- Throws:
IOException
-