| org.snmp4j.agent.mo.snmp.tc.TextualConvention
All known Subclasses: org.snmp4j.agent.mo.snmp.tc.AutonomousTypeTC, org.snmp4j.agent.mo.snmp.tc.TestAndIncrTC, org.snmp4j.agent.mo.snmp.tc.DateAndTimeTC, org.snmp4j.agent.mo.snmp.tc.TruthValueTC, org.snmp4j.agent.mo.snmp.tc.StorageTypeTC, org.snmp4j.agent.mo.snmp.tc.DisplayStringTC, org.snmp4j.agent.mo.snmp.tc.TimeStampTC, org.snmp4j.agent.mo.snmp.tc.RowStatusTC,
TextualConvention | public interface TextualConvention (Code) | | The TextualConvention interface defines the common properties
of SMI textual conventions needed to use them across different MIB modules
within an agent implementation.
A textual convention is characterized by its name and the MIB module name
where it has been defined. With these attributes a TC registry is able to
lookup TC implementations by name.
A MOFactory can then use a TC name to lookup its implementation
and then use one of the two factory methods of each TC to create either
a scalar or columnar ManagedObject instance.
If you need to use your own TC implementations (either replacing/extending
already provided ones or adding new ones) then register them to the
MOFactory you are using.
author: Frank Fock version: 1.0 |
Method Summary | |
MOColumn | createColumn(int columnID, int syntax, MOAccess access, Variable defaultValue, boolean mutableInService) Creates a MOColumn instance of this TC specified by the column ID,
access, default value, and mutable flag. | MOScalar | createScalar(OID oid, MOAccess access, Variable value) Creates a MOScalar instance of this TC specified by OID, access, and value. | String | getModuleName() Returns the MIB module name that defined this textual convention. | String | getName() Returns the name of the textual convention as defined in the MIB module. |
createColumn | MOColumn createColumn(int columnID, int syntax, MOAccess access, Variable defaultValue, boolean mutableInService)(Code) | | Creates a MOColumn instance of this TC specified by the column ID,
access, default value, and mutable flag.
Parameters: columnID - the column id as defined in the MIB module (typically starting at one). Parameters: access - the access definition. Parameters: defaultValue - the default value or null if there is no DEFVAL clause forthis column. Parameters: mutableInService - true if this column may be modified while row is inservice.the MOColumn created. |
createScalar | MOScalar createScalar(OID oid, MOAccess access, Variable value)(Code) | | Creates a MOScalar instance of this TC specified by OID, access, and value.
Parameters: oid - the OID of the scalar isntance. Parameters: access - the access definition. Parameters: value - the Variable instance containing the value of thescalar.a MOScalar instance. |
getModuleName | String getModuleName()(Code) | | Returns the MIB module name that defined this textual convention.
an unique module name |
getName | String getName()(Code) | | Returns the name of the textual convention as defined in the MIB module.
the unique name (within the MIB module) of the TC. |
|
|