Interface RegistrationCallback

All Known Implementing Classes:
TestSubagent

public interface RegistrationCallback
The RegistrationCallback informs about the state of a AgentX registration or index allocation request.
Version:
3.0.0
Author:
Frank Fock
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    registrationEvent(org.snmp4j.smi.OctetString context, org.snmp4j.agent.ManagedObject<?> mo, int status)
    The registration attempt of a ManagedObject succeeded or failed.
    <R extends org.snmp4j.agent.mo.MOTableRow, C extends org.snmp4j.agent.mo.MOColumn<?>, M extends org.snmp4j.agent.mo.MOTableModel<R>>
    boolean
    tableRegistrationEvent(org.snmp4j.smi.OctetString context, AgentXSharedMOTable<R,C,M> mo, R row, boolean indexAllocation, int status, int retryCount)
    The registration attempt of a ManagedObject succeeded or failed.
    <R extends org.snmp4j.agent.mo.MOTableRow, C extends org.snmp4j.agent.mo.MOColumn<?>, M extends org.snmp4j.agent.mo.MOTableModel<R>>
    void
    tableUnregistrationEvent(org.snmp4j.smi.OctetString context, AgentXSharedMOTable<R,C,M> mo, R row, boolean indexAllocation, int status)
    The unregistration attempt of a ManagedObject succeeded or failed.
    void
    unregistrationEvent(org.snmp4j.smi.OctetString context, org.snmp4j.agent.ManagedObject<?> mo, int status)
    The unregistration attempt of a ManagedObject succeeded or failed.
  • Method Details

    • registrationEvent

      void registrationEvent(org.snmp4j.smi.OctetString context, org.snmp4j.agent.ManagedObject<?> mo, int status)
      The registration attempt of a ManagedObject succeeded or failed.
      Parameters:
      context - the registration context.
      mo - the ManagedObject that was subject to the registration process.
      status - the AgentX status of the registration response.
    • tableRegistrationEvent

      <R extends org.snmp4j.agent.mo.MOTableRow, C extends org.snmp4j.agent.mo.MOColumn<?>, M extends org.snmp4j.agent.mo.MOTableModel<R>> boolean tableRegistrationEvent(org.snmp4j.smi.OctetString context, AgentXSharedMOTable<R,C,M> mo, R row, boolean indexAllocation, int status, int retryCount)
      The registration attempt of a ManagedObject succeeded or failed.
      Type Parameters:
      R - the MOTableRow type to support.
      C - the column (base) type of the table.
      M - the table model type managing the table rows.
      Parameters:
      context - the registration context.
      mo - the MOTable that was subject to the registration process.
      row - the row whose index or region was subject to the allocation/registration.
      indexAllocation - true if this event relates to an index allocation request and false if it relates to a row region registration.
      status - the AgentX status of the registration response.
      retryCount - the number of retries already processed. This value can be used to avoid endless loops.
      Returns:
      true if the caller should retry the registration operation, false otherwise.
    • unregistrationEvent

      void unregistrationEvent(org.snmp4j.smi.OctetString context, org.snmp4j.agent.ManagedObject<?> mo, int status)
      The unregistration attempt of a ManagedObject succeeded or failed.
      Parameters:
      context - the registration context.
      mo - the ManagedObject that was subject to the registration process.
      status - the AgentX status of the registration response.
    • tableUnregistrationEvent

      <R extends org.snmp4j.agent.mo.MOTableRow, C extends org.snmp4j.agent.mo.MOColumn<?>, M extends org.snmp4j.agent.mo.MOTableModel<R>> void tableUnregistrationEvent(org.snmp4j.smi.OctetString context, AgentXSharedMOTable<R,C,M> mo, R row, boolean indexAllocation, int status)
      The unregistration attempt of a ManagedObject succeeded or failed.
      Type Parameters:
      R - the MOTableRow type to support.
      C - the column (base) type of the table.
      M - the table model type managing the table rows.
      Parameters:
      context - the registration context.
      mo - the MOTable that was subject to the registration process.
      row - the row whose index or region was subject to the allocation/registration.
      indexAllocation - true if this event relates to an index allocation request and false if it relates to a row region registration.
      status - the AgentX status of the registration response.