| java.lang.Object org.snmp4j.agent.mo.DefaultMOFactory
All known Subclasses: org.snmp4j.agent.mo.jmx.JMXDefaultMOFactory, org.snmp4j.agent.mo.ext.SimMOFactory,
DefaultMOFactory | public class DefaultMOFactory implements MOFactory(Code) | | The DefaultMOFactory is the default factory for creating
ManagedObjects. The default factory creates columnar and scalar objects
based on SNMPv2-TC textual conventions with appropriate constraints.
Other textual conventions can be added too.
author: Frank Fock version: 1.1 |
Method Summary | |
public static void | addSNMPv2TCs(MOFactory factory) Adds support for SNMPv2TC textual conventions to the supplied ManagedObject
factory. | public synchronized void | addTextualConvention(TextualConvention tc) Adds a textual convention to this factory which can then be used by the
factory to create appropriate value constraints for columnar and scalar
managed objects. | public MOAccess | createAccess(int moAccess) | public MOColumn | createColumn(int columnID, int syntax, MOAccess access) | public MOColumn | createColumn(int columnID, int syntax, MOAccess access, Variable defaultValue, boolean mutableInService) | public MOColumn | createColumn(int columnID, int syntax, MOAccess access, String tcModuleName, String textualConvention) | public MOColumn | createColumn(int columnID, int syntax, MOAccess access, Variable defaultValue, boolean mutableInService, String tcModuleName, String textualConvention) | public MOTableIndex | createIndex(MOTableSubIndex[] subIndexes, boolean impliedLength) | public MOTableIndex | createIndex(MOTableSubIndex[] subIndexes, boolean impliedLength, MOTableIndexValidator validator) | public MOTableRow | createRow(OID index, Variable[] values) | public MOScalar | createScalar(OID id, MOAccess access, Variable value) | public MOScalar | createScalar(OID id, MOAccess access, Variable value, String tcModuleName, String textualConvention) | public MOTableSubIndex | createSubIndex(int smiSyntax) | public MOTableSubIndex | createSubIndex(OID oid, int smiSyntax) | public MOTableSubIndex | createSubIndex(int smiSyntax, int minLength, int maxLength) | public MOTableSubIndex | createSubIndex(OID oid, int smiSyntax, int minLength, int maxLength) | public MOTable | createTable(OID oid, MOTableIndex indexDef, MOColumn[] columns) | public MOTable | createTable(OID oid, MOTableIndex indexDef, MOColumn[] columns, MOTableModel model) | public MOTableModel | createTableModel(OID tableOID, MOTableIndex indexDef, MOColumn[] columns) | public MOTableRelation | createTableRelation(MOTable baseTable, MOTable dependentTable) | public void | freeRow(MOTableRow row) | public static MOFactory | getInstance() Returns the factory singleton with default support for SNMPv2-TC textual
conventions. | public synchronized TextualConvention | getTextualConvention(String moduleName, String name) | protected Map | getTextualConventions() | public synchronized void | removeTextualConvention(TextualConvention tc) | public static void | setInstance(MOFactory factory) Sets the singleton factory. |
DefaultMOFactory | protected DefaultMOFactory()(Code) | | |
addSNMPv2TCs | public static void addSNMPv2TCs(MOFactory factory)(Code) | | Adds support for SNMPv2TC textual conventions to the supplied ManagedObject
factory.
Parameters: factory - a MOFactory instance. |
addTextualConvention | public synchronized void addTextualConvention(TextualConvention tc)(Code) | | Adds a textual convention to this factory which can then be used by the
factory to create appropriate value constraints for columnar and scalar
managed objects.
Parameters: tc - a TextualConvention instance. |
getInstance | public static MOFactory getInstance()(Code) | | Returns the factory singleton with default support for SNMPv2-TC textual
conventions.
a MOFactory instance. |
getTextualConventions | protected Map getTextualConventions()(Code) | | |
setInstance | public static void setInstance(MOFactory factory)(Code) | | Sets the singleton factory.
Parameters: factory - a MOFactory instance. |
|
|