Class SnmpTargetMIB

    • Field Detail

    • Constructor Detail

      • SnmpTargetMIB

        public SnmpTargetMIB​(org.snmp4j.MessageDispatcher messageDispatcher)
    • Method Detail

      • getAddressCacheTimeoutNanos

        public long getAddressCacheTimeoutNanos()
      • setAddressCacheTimeoutNanos

        public void setAddressCacheTimeoutNanos​(long addressCacheTimeoutNanos)
      • setTlsTmMib

        public void setTlsTmMib​(SnmpTlsTmMib tlsTmMib)
      • getLocalEngineID

        public byte[] getLocalEngineID()
        Returns the local SNMPv3 engine ID.
        Returns:
        the SNMP3v local engine ID, if the MPv3 is available or null otherwise.
        Since:
        1.2
      • getTargetAddress

        public org.snmp4j.smi.Address getTargetAddress​(org.snmp4j.smi.OctetString name)
      • getTarget

        public org.snmp4j.Target getTarget​(org.snmp4j.smi.OctetString name,
                                           org.snmp4j.smi.OctetString contextEngineID,
                                           org.snmp4j.smi.OctetString contextName)
      • addDefaultTDomains

        public void addDefaultTDomains()
      • addSupportedTDomain

        public void addSupportedTDomain​(org.snmp4j.smi.OID transportDomain,
                                        TDomainAddressFactory factory)
      • addTargetAddress

        public boolean addTargetAddress​(org.snmp4j.smi.OctetString name,
                                        org.snmp4j.smi.OID transportDomain,
                                        org.snmp4j.smi.OctetString address,
                                        int timeout,
                                        int retries,
                                        org.snmp4j.smi.OctetString tagList,
                                        org.snmp4j.smi.OctetString params,
                                        int storageType)
      • removeTargetAddress

        public MOTableRow removeTargetAddress​(org.snmp4j.smi.OctetString name)
      • removeRowFromTargetAddrTagIndex

        protected void removeRowFromTargetAddrTagIndex​(MOTableRow removedRow)
      • addTargetParams

        public boolean addTargetParams​(org.snmp4j.smi.OctetString name,
                                       int mpModel,
                                       int secModel,
                                       org.snmp4j.smi.OctetString secName,
                                       int secLevel,
                                       int storageType)
      • removeTargetParams

        public MOTableRow removeTargetParams​(org.snmp4j.smi.OctetString name)
      • 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).
      • incrementCounter

        public void incrementCounter​(org.snmp4j.event.CounterEvent event)
        Specified by:
        incrementCounter in interface org.snmp4j.event.CounterListener
      • getTargetParamsRow

        public MOTableRow getTargetParamsRow​(org.snmp4j.smi.OctetString paramsName)
        Returns the SNMP Target Parameters row for the specified name.
        Parameters:
        paramsName - the name of the parameters set to return.
        Returns:
        if the row containing the target parameters if such an entry exists or null if no such entry exists
      • getTargetParamsRow

        public MOTableRow getTargetParamsRow​(org.snmp4j.smi.OctetString paramsName,
                                             boolean activeOnly)
        Returns the SNMP Target Parameters row for the specified name.
        Parameters:
        paramsName - the name of the parameters set to return.
        activeOnly - if true only an active row will be returned.
        Returns:
        if the row containing the target parameters if such an entry exists or null if no such entry exists