Class Snmp4jProxyMib

java.lang.Object
org.snmp4j.agent.mo.snmp4j.Snmp4jProxyMib
All Implemented Interfaces:
EventListener, MOTableRowListener<Snmp4jProxyMib.Snmp4jProxyEntryRow>, RowStatusListener, MOGroup

  • Field Details

    • oidSnmp4jProxyMib

      public static final org.snmp4j.smi.OID oidSnmp4jProxyMib
      OID of this MIB module for usage which can be used for its identification.
    • oidSnmp4jProxyEntry

      public static final org.snmp4j.smi.OID oidSnmp4jProxyEntry
    • oidSnmp4jProxyName

      public static final org.snmp4j.smi.OID oidSnmp4jProxyName
    • tcModuleSnmpFrameworkMib

      public static final String tcModuleSnmpFrameworkMib
      See Also:
    • tcDefSnmpEngineID

      public static final String tcDefSnmpEngineID
      See Also:
    • tcDefSnmpAdminString

      public static final String tcDefSnmpAdminString
      See Also:
    • tcModuleSNMPv2Tc

      public static final String tcModuleSNMPv2Tc
      See Also:
    • tcDefStorageType

      public static final String tcDefStorageType
      See Also:
    • tcDefRowStatus

      public static final String tcDefRowStatus
      See Also:
    • colSnmp4jProxyContextEngineID

      public static final int colSnmp4jProxyContextEngineID
      See Also:
    • colSnmp4jProxyContextName

      public static final int colSnmp4jProxyContextName
      See Also:
    • colSnmp4jProxySubtree

      public static final int colSnmp4jProxySubtree
      See Also:
    • colSnmp4jProxyType

      public static final int colSnmp4jProxyType
      See Also:
    • colSnmp4jProxyTarget

      public static final int colSnmp4jProxyTarget
      See Also:
    • colSnmp4jProxyStorageType

      public static final int colSnmp4jProxyStorageType
      See Also:
    • colSnmp4jProxyRowStatus

      public static final int colSnmp4jProxyRowStatus
      See Also:
    • colSnmp4jProxyTargetSubtree

      public static final int colSnmp4jProxyTargetSubtree
      See Also:
    • idxSnmp4jProxyContextEngineID

      public static final int idxSnmp4jProxyContextEngineID
      See Also:
    • idxSnmp4jProxyContextName

      public static final int idxSnmp4jProxyContextName
      See Also:
    • idxSnmp4jProxySubtree

      public static final int idxSnmp4jProxySubtree
      See Also:
    • idxSnmp4jProxyType

      public static final int idxSnmp4jProxyType
      See Also:
    • idxSnmp4jProxyTarget

      public static final int idxSnmp4jProxyTarget
      See Also:
    • idxSnmp4jProxyStorageType

      public static final int idxSnmp4jProxyStorageType
      See Also:
    • idxSnmp4jProxyRowStatus

      public static final int idxSnmp4jProxyRowStatus
      See Also:
    • idxSnmp4jProxyTargetSubtree

      public static final int idxSnmp4jProxyTargetSubtree
      See Also:
  • Constructor Details

    • Snmp4jProxyMib

      protected Snmp4jProxyMib()
      Constructs a Snmp4jProxyMib instance without actually creating its ManagedObject instances. This has to be done in a sub-class constructor or after construction by calling createMO(MOFactory moFactory).
    • Snmp4jProxyMib

      protected Snmp4jProxyMib(MOFactory moFactory)
      Constructs a Snmp4jProxyMib instance and actually creates its ManagedObject instances using the supplied MOFactory (by calling createMO(MOFactory moFactory)).
      Parameters:
      moFactory - the MOFactory to be used to create the managed objects for this module.
    • Snmp4jProxyMib

      public Snmp4jProxyMib(MOFactory moFactory, org.snmp4j.Session session, MOServer server, SnmpTargetMIB targetMIB)
      Constructs a Snmp4jProxyMib instance and actually creates its ManagedObject instances using the supplied MOFactory (by calling createMO(MOFactory moFactory)).
      Parameters:
      moFactory - the MOFactory to be used to create the managed objects for this module.
      session - the SNMP session to be used for forwarding requests.
      server - the MOServer used to register new subtree proxies.
      targetMIB - the SnmpTargetMIB instance for proxy target configuration.
  • Method Details

    • createMO

      protected void createMO(MOFactory moFactory)
      Create the ManagedObjects defined for this MIB module using the specified MOFactory.
      Parameters:
      moFactory - the MOFactory instance to use for object creation.
    • getSnmp4jProxyEntry

      public MOTable getSnmp4jProxyEntry()
    • registerMOs

      public void registerMOs(MOServer server, org.snmp4j.smi.OctetString context) throws DuplicateRegistrationException
      Description copied from interface: MOGroup
      Registers the managed objects of this group with the server for the supplied context.
      Specified by:
      registerMOs in interface MOGroup
      Parameters:
      server - the MOServer where to register the managed objects.
      context - the context to use (may be null if no specific context is selected).
      Throws:
      DuplicateRegistrationException - if a managed object's scope (i.e. lower bound) is already registered at the server.
    • unregisterMOs

      public void unregisterMOs(MOServer server, org.snmp4j.smi.OctetString context)
      Description copied from interface: MOGroup
      Unregisters the managed objects of this group from the supplied server and from the supplied context.
      Specified by:
      unregisterMOs in interface MOGroup
      Parameters:
      server - the MOServer where to unregister the managed objects.
      context - the context to use (may be null if no specific context is selected).
    • rowStatusChanged

      public void rowStatusChanged(RowStatusEvent event)
      Specified by:
      rowStatusChanged in interface RowStatusListener
    • rowChanged

      public void rowChanged(MOTableRowEvent event)
      Description copied from interface: MOTableRowListener
      A column or a complete row is changed/has been changed.
      Specified by:
      rowChanged in interface MOTableRowListener<Snmp4jProxyMib.Snmp4jProxyEntryRow>
      Parameters:
      event - a MOTableRowEvent describing the event. To veto the event the MOTableRowEvent.setVetoStatus(int) and optionally also the MOTableRowEvent.setVetoColumn(int) can be called.
    • addTCsToFactory

      protected void addTCsToFactory(MOFactory moFactory)
    • addImportedTCsToFactory

      public void addImportedTCsToFactory(MOFactory moFactory)