org.snmp4j.agent.io
Class DefaultMOInput

java.lang.Object
  extended by org.snmp4j.agent.io.DefaultMOInput
All Implemented Interfaces:
MOInput

public class DefaultMOInput
extends java.lang.Object
implements MOInput


Constructor Summary
DefaultMOInput(java.io.ObjectInputStream ois)
           
 
Method Summary
 void close()
           
 int getImportMode()
          Returns the update mode, which might be one of the constants defined by ImportModes.
 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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultMOInput

public DefaultMOInput(java.io.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 by ImportModes.

Specified by:
getImportMode in interface MOInput
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 java.io.IOException
Specified by:
readContext in interface MOInput
Throws:
java.io.IOException

readIndexedVariables

public IndexedVariables readIndexedVariables()
                                      throws java.io.IOException
Specified by:
readIndexedVariables in interface MOInput
Throws:
java.io.IOException

readManagedObject

public MOInfo readManagedObject()
                         throws java.io.IOException
Specified by:
readManagedObject in interface MOInput
Throws:
java.io.IOException

readSequence

public Sequence readSequence()
                      throws java.io.IOException
Specified by:
readSequence in interface MOInput
Throws:
java.io.IOException

readVariable

public org.snmp4j.smi.Variable readVariable()
                                     throws java.io.IOException
Specified by:
readVariable in interface MOInput
Throws:
java.io.IOException

skipContext

public void skipContext(Context context)
                 throws java.io.IOException
Specified by:
skipContext in interface MOInput
Throws:
java.io.IOException

skipManagedObject

public void skipManagedObject(MOInfo moInfo)
                       throws java.io.IOException
Description copied from interface: MOInput
Skips to the end of the specified managed object's configuration.

Specified by:
skipManagedObject in interface MOInput
Parameters:
moInfo - a MOInfo instance.
Throws:
java.io.IOException

setOverwriteMode

public void setOverwriteMode(int importMode)

close

public void close()
           throws java.io.IOException
Specified by:
close in interface MOInput
Throws:
java.io.IOException

Copyright 2005-2010 Frank Fock (SNMP4J.org)

Copyright © 2011 SNMP4J.org. All Rights Reserved.