Module org.snmp4j

Class SnmpURI<A extends Address>


  • public class SnmpURI<A extends Address>
    extends java.lang.Object
    The SnmpURI class provides a SNMP service based on the SNMP URI as defined by RFC 4088.
    Since:
    2.1
    Author:
    Frank Fock
    • Constructor Detail

      • SnmpURI

        public SnmpURI​(Session snmp)
                throws java.io.IOException
        Throws:
        java.io.IOException
      • SnmpURI

        public SnmpURI​(Session snmp,
                       Target<A> defaultTarget)
                throws java.io.IOException
        Throws:
        java.io.IOException
    • Method Detail

      • getPduFactory

        public PDUFactory getPduFactory()
      • setPduFactory

        public void setPduFactory​(PDUFactory pduFactory)
      • getTimeout

        public long getTimeout()
      • setTimeout

        public void setTimeout​(long timeout)
      • getRetries

        public int getRetries()
      • setRetries

        public void setRetries​(int retries)
      • getSecurityModel

        public int getSecurityModel()
      • getVersion

        public int getVersion()
      • setVersion

        public void setVersion​(int version)
      • setSecurityModel

        public void setSecurityModel​(int securityModel)
      • setSnmp

        public void setSnmp​(Session snmp)
      • getUsm

        public USM getUsm()
      • setUsm

        public void setUsm​(USM usm)
      • getDefaultUserInfo

        public java.lang.String getDefaultUserInfo()
      • setDefaultUserInfo

        public void setDefaultUserInfo​(java.lang.String defaultUserInfo)
      • browse

        public void browse​(java.net.URI url,
                           SnmpUriCallback callback,
                           java.lang.Object userObject)
                    throws java.net.UnknownHostException
        Throws:
        java.net.UnknownHostException
      • browse

        public SnmpUriResponse browse​(java.net.URI url)
                               throws java.net.UnknownHostException
        Throws:
        java.net.UnknownHostException
      • updateByValue

        public SnmpUriResponse updateByValue​(java.net.URI url,
                                             java.util.List<Variable> values)
                                      throws java.net.UnknownHostException
        Throws:
        java.net.UnknownHostException
      • updateByBinding

        public SnmpUriResponse updateByBinding​(java.net.URI url,
                                               java.util.List<VariableBinding> values)
                                        throws java.net.UnknownHostException
        Throws:
        java.net.UnknownHostException
      • sendByBinding

        public SnmpUriResponse sendByBinding​(java.net.URI url,
                                             java.util.List<VariableBinding> values,
                                             int pduType)
                                      throws java.net.UnknownHostException
        Throws:
        java.net.UnknownHostException