Class MibModuleSupplier

java.lang.Object
org.snmp4j.mcp.resource.mib.module.MibModuleSupplier
All Implemented Interfaces:
Supplier<String>

public class MibModuleSupplier extends Object implements Supplier<String>
A Supplier that provides the SMI module definition text for a given MIB module by querying the SmiManager at retrieval time.
Since:
0.1.0
  • Constructor Summary

    Constructors
    Constructor
    Description
    MibModuleSupplier(com.snmp4j.smi.SmiManager smiManager, String moduleName)
    Creates a supplier for the MIB module definition of the specified module.
  • Method Summary

    Modifier and Type
    Method
    Description
    get()
    Returns the SMI module definition text for the module, or an explanatory message if the module is no longer loaded.

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • MibModuleSupplier

      public MibModuleSupplier(com.snmp4j.smi.SmiManager smiManager, String moduleName)
      Creates a supplier for the MIB module definition of the specified module.
      Parameters:
      smiManager - the SmiManager that holds the loaded MIB modules
      moduleName - the MIB module name (e.g. "SNMPv2-MIB")
  • Method Details

    • get

      public String get()
      Returns the SMI module definition text for the module, or an explanatory message if the module is no longer loaded.
      Specified by:
      get in interface Supplier<String>
      Returns:
      the SMI module definition text