- java.lang.Object
-
- org.snmp4j.agent.mo.DefaultMOFactory
-
- org.snmp4j.agent.mo.ext.SimMOFactory
-
- All Implemented Interfaces:
LinkedMOFactory,MOFactory,MOTableRowFactory<DefaultMOMutableRow2PC>
public class SimMOFactory extends DefaultMOFactory
ASimMOFactoryobject can be used to create non-default MOAccess instances which support an agent simulation mode which allows the modification of MIB objects at runtime via SNMP that are not writable in normal operation but writable in a special config mode (see AGENTPP-SIMULATION-MIB).By creating the ManagedObject instances for a MIB module based on this factory the injected special MOAccess instances support changing the operation mode for these instances from normal operation to simulation mode. In simulation mode, an agent can be filled with data via SNMP regardless whether the objects are defined as writable or not. Such a simulation agent can be used for testing/developing management applications when real agents are not (physically) available.
- Version:
- 1.0
- Author:
- Frank Fock
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description classSimMOFactory.SimMOAccess
-
Constructor Summary
Constructors Modifier Constructor Description protectedSimMOFactory()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description MOAccesscreateAccess(int moAccess)Creates an MOAccess instance from an access specification constant that is the result of a bitwise OR of any of the constants defined byMOAccess.static MOFactorygetInstance()static booleanisSimulationModeEnabled()static voidsetSimulationModeEnabled(boolean simulationMode)-
Methods inherited from class org.snmp4j.agent.mo.DefaultMOFactory
addSNMPv2TCs, addTextualConvention, createRow, freeRow, getLink, getTextualConvention, getTextualConventions, initLinkMap, removeTextualConvention, setInstance, setLink
-
Methods inherited from interface org.snmp4j.agent.mo.MOFactory
createColumn, createColumn, createColumn, createColumn, createIndex, createIndex, createScalar, createScalar, createSubIndex, createSubIndex, createTable, createTable, createTableModel, createTableRelation, getSysUpTime
-
-
-
-
Method Detail
-
getInstance
public static MOFactory getInstance()
-
setSimulationModeEnabled
public static void setSimulationModeEnabled(boolean simulationMode)
-
isSimulationModeEnabled
public static boolean isSimulationModeEnabled()
-
createAccess
public MOAccess createAccess(int moAccess)
Description copied from interface:MOFactoryCreates an MOAccess instance from an access specification constant that is the result of a bitwise OR of any of the constants defined byMOAccess.- Parameters:
moAccess- any bitwise OR combined constant fromMOAccess.- Returns:
- a MOAccess instance.
-
-