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