Uses of Package
com.snmp4j.smi
Package
Description
Provides classes and interfaces for parsing, compiling, loading,
and using Management Information Base (MIB) specifications written in Structure of
Management Information (SMI) version 1 and 2 with SNMP4J to format and parse SNMP data.
The
com.snmp4j.smi.util
package contains utility classes to be used
in conjunction with the SmiManager
class of the com.snmp4j.smi
package.-
ClassDescriptionThe
CompilationMonitor
interface is implemented by classes that are supposed to monitor the progress of a multi MIB file compilation operation of theSmiManager
.TheCompilationResult
class holds the MIB module names successfully parsed for each MIB file or the parsing errors that were detected during compilation.The NamedInputStream class represents an input stream with a name to identify the stream.A supported ZIP file formatThe RepositoryDriver adapts between theSmiManager
and the (persistent) storage that holds the compiled MIB modules.The RepositoryIO class is used to return theInputStream
orOutputStream
instances provided by aRepositoryDriver
instance to read or store a compiled MIB module from/into persistent storage.The SmiMaxAccess enumerates the ACCESS values of SMIv2 for MODULE-COMPLIANCE and AGENT-CAPABILITIES statements, including the deprecatedSmiAccess.writeOnly
for backward-compatibility.The SmiCompiler provides a simple yet complete interface to check, compile, store, and load MIB files content (i.e., MIB modules).The OverwriteMode defines whether existing MIB modules should be overwritten or not.The Strictness defines the number of syntax checks done on the sources.The TargetMode defines the target for the compiled MIB modules.TheSmiGroupCompliance
interface represents the GROUP or OBJECT clause of a MODULE-COMPLIANCE statement in SMIv2.TheSmiComplianceModule
interface defines the attributes for the "Module" element of the SMIv2 MODULE-COMPLIANCE macro.TheSmiComplianceType
distinguishes between GROUP and OBJECT compliance definitions in MODULE-COMPLIANCE statements.TheSmiError
class represents a syntax or semantic error in a SMI specification file.TheSmiErrorInfo
interface represents a syntax or semantic error in a SMI specification file.The SmiGroup represents a SMI OBJECT-GROUP or NOTIFICATION-GROUP object.The enumeration SmiGroupType distinguishes the type of a SMI group.The SmiImport represents an element within the IMPORTS construct of a SMIv1 or SMv2 MIB module.The SmiIndexInfo interface represents the meta information of a SMI INDEX clause element which are relevant for converting an OID index value to an INDEX object and vice versa.Defines the format for non-printable strings in formatted object identifiers (OIDs).The default formats to be applied for displayingOctetString
s.The OIDFormat defines the formatting ofOID
values.The SmiModule represents a SMIv1 or SMIv2 MIB MODULE-DEFINITION.The SmiObject interface represents the SMI information of a MIB object.TheSmiObjectVariation
interface defines the attributes that are included in MODULE-COMPLIANCE module parts (SmiComplianceModule
) OBJECT clause and is also used in the AGENT-CAPABILITIES module section.The SmiObjectFilter can be used to filterSmiObject
s according to self defined criteria.The SmiObjectType interface extends theSmiObject
by attributes specific to the SMI OBJECT-TYPE construct, i.e.The SmiObjectTypeIndex represents an OBJECT-TYPE definition that is used as an INDEX element for a table.TheSmiObjectVariation
interface defines the attributes for the object variation part of an AGENT-CAPABILITIES statement.TheSmiParseException
provides information about violations of the Structure of Management Information (SMI) v1 or v2 standards.The SmiRevision represents the REVISION clause of a SMIv2 MODULE-IDENTITY construct.The SmiStatus enumerates the values of the SMIv1 and v2 STATUS clause.TheSmiSupportedModule
interface represents a SMIv2 MODULE clause of the AGENT-CAPABILITIES statement.The SmiSyntax represents the SYNTAX clause of OBJECT-TYPE or TEXTUAL-CONVENTION SMI constructs.The SmiSyntaxElement represents a enumerated value or a range restriction.The type of enumerated value.The SmiSyntaxType identifies one of four SYNTAX clause types of OBJECT-TYPE or TEXTUAL-CONVENTION SMI constructs.The SmiType defines the SMI construct (for exampleOBJECT-TYPE
) that defined the SMI object.Ths SmiValueType interface abstracts the common element of the OBJECT-TYPE and the TEXTUAL-CONVENTION SMI constructs. -
ClassDescriptionThe RepositoryDriver adapts between the
SmiManager
and the (persistent) storage that holds the compiled MIB modules.The RepositoryIO class is used to return theInputStream
orOutputStream
instances provided by aRepositoryDriver
instance to read or store a compiled MIB module from/into persistent storage.