java.lang.Object
org.snmp4j.agent.io.DefaultMOInput
- All Implemented Interfaces:
MOInput
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
int
Returns the update mode, which might be one of the constants defined byImportMode
.org.snmp4j.smi.Variable
void
setOverwriteMode
(int importMode) void
skipContext
(Context context) void
skipManagedObject
(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:MOInput
Returns the update mode, which might be one of the constants defined byImportMode
.- Specified by:
getImportMode
in interfaceMOInput
- Returns:
- the constant denoting the update mode that should be used by a
SerializableManagedObject
to import its content from persistent storage.
-
readContext
- Specified by:
readContext
in interfaceMOInput
- Throws:
IOException
-
readIndexedVariables
- Specified by:
readIndexedVariables
in interfaceMOInput
- Throws:
IOException
-
readManagedObject
- Specified by:
readManagedObject
in interfaceMOInput
- Throws:
IOException
-
readSequence
- Specified by:
readSequence
in interfaceMOInput
- Throws:
IOException
-
readVariable
- Specified by:
readVariable
in interfaceMOInput
- Throws:
IOException
-
skipContext
- Specified by:
skipContext
in interfaceMOInput
- Throws:
IOException
-
skipManagedObject
Description copied from interface:MOInput
Skips to the end of the specified managed object's configuration.- Specified by:
skipManagedObject
in interfaceMOInput
- Parameters:
moInfo
- a MOInfo instance.- Throws:
IOException
- if the input stream cannot be read.
-
setOverwriteMode
public void setOverwriteMode(int importMode) -
close
- Specified by:
close
in interfaceMOInput
- Throws:
IOException
-