- java.lang.Object
-
- org.snmp4j.agent.io.DefaultMOInput
-
-
Constructor Summary
Constructors Constructor Description DefaultMOInput(java.io.ObjectInputStream ois)
-
Method Summary
All Methods Instance Methods Concrete 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()voidsetOverwriteMode(int importMode)voidskipContext(Context context)voidskipManagedObject(MOInfo moInfo)Skips to the end of the specified managed object's configuration.
-
-
-
Method Detail
-
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
public Context readContext() throws java.io.IOException
- Specified by:
readContextin interfaceMOInput- Throws:
java.io.IOException
-
readIndexedVariables
public IndexedVariables readIndexedVariables() throws java.io.IOException
- Specified by:
readIndexedVariablesin interfaceMOInput- Throws:
java.io.IOException
-
readManagedObject
public MOInfo readManagedObject() throws java.io.IOException
- Specified by:
readManagedObjectin interfaceMOInput- Throws:
java.io.IOException
-
readSequence
public Sequence readSequence() throws java.io.IOException
- Specified by:
readSequencein interfaceMOInput- Throws:
java.io.IOException
-
readVariable
public org.snmp4j.smi.Variable readVariable() throws java.io.IOException- Specified by:
readVariablein interfaceMOInput- Throws:
java.io.IOException
-
skipContext
public void skipContext(Context context) throws java.io.IOException
- Specified by:
skipContextin interfaceMOInput- Throws:
java.io.IOException
-
skipManagedObject
public void skipManagedObject(MOInfo moInfo) throws java.io.IOException
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:
java.io.IOException- if the input stream cannot be read.
-
setOverwriteMode
public void setOverwriteMode(int importMode)
-
-