public class SimMOFactory extends DefaultMOFactory
SimMOFactory
object 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.
Modifier and Type | Class and Description |
---|---|
class |
SimMOFactory.SimMOAccess |
Modifier | Constructor and Description |
---|---|
protected |
SimMOFactory() |
Modifier and Type | Method and Description |
---|---|
MOAccess |
createAccess(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 by
MOAccess . |
static MOFactory |
getInstance() |
static boolean |
isSimulationModeEnabled() |
static void |
setSimulationModeEnabled(boolean simulationMode) |
addSNMPv2TCs, addTextualConvention, createColumn, createColumn, createColumn, createColumn, createIndex, createIndex, createRow, createScalar, createScalar, createSubIndex, createSubIndex, createSubIndex, createSubIndex, createTable, createTable, createTableModel, createTableRelation, freeRow, getLink, getSysUpTime, getTextualConvention, getTextualConventions, initLinkMap, removeTextualConvention, setInstance, setLink
public static MOFactory getInstance()
public static void setSimulationModeEnabled(boolean simulationMode)
public static boolean isSimulationModeEnabled()
public MOAccess createAccess(int moAccess)
MOFactory
MOAccess
.createAccess
in interface MOFactory
createAccess
in class DefaultMOFactory
moAccess
- any bitwise OR combined constant from MOAccess
.Copyright © 2017 SNMP4J.org. All rights reserved.