public class Snmp4JAgentConfig extends Object
Constructor and Description |
---|
Snmp4JAgentConfig(SnmpAgentConfig config) |
Modifier and Type | Method and Description |
---|---|
static org.snmp4j.smi.Address |
convertAddress(InetAddress address,
int port)
This method converts an InetAddress to an implementation of an SNMP4J Address
(UdpAddress or TcpAddress)
TODO: This needs to be updated when the protocol flag is added to the SNMP Config
so that UDP or TCP can be used in v3 operations.
|
org.snmp4j.PDU |
createPdu(int type)
Creates an SNMP4J PDU based on the SNMP4J version constants.
|
org.snmp4j.Snmp |
createSnmpSession() |
org.snmp4j.smi.OctetString |
getAuthPassPhrase() |
org.snmp4j.smi.OID |
getAuthProtocol() |
org.snmp4j.smi.OctetString |
getContextEngineID() |
org.snmp4j.smi.OctetString |
getContextName() |
InetAddress |
getInetAddress() |
int |
getMaxRepetitions() |
int |
getMaxRequestSize() |
int |
getMaxVarsPerPdu() |
int |
getPort() |
org.snmp4j.smi.OctetString |
getPrivPassPhrase() |
org.snmp4j.smi.OID |
getPrivProtocol() |
int |
getRetries() |
int |
getSecurityLevel() |
org.snmp4j.smi.OctetString |
getSecurityName() |
org.snmp4j.Target |
getTarget() |
int |
getTimeout() |
int |
getVersion() |
String |
getVersionString()
Returns a string representation of the SNMP4J version constant
|
String |
getWriteCommunity() |
String |
toString() |
public Snmp4JAgentConfig(SnmpAgentConfig config)
public InetAddress getInetAddress()
public org.snmp4j.smi.OctetString getAuthPassPhrase()
public org.snmp4j.smi.OID getAuthProtocol()
public int getMaxRequestSize()
public int getMaxVarsPerPdu()
public int getMaxRepetitions()
public int getPort()
public int getRetries()
public int getSecurityLevel()
public org.snmp4j.smi.OctetString getSecurityName()
public int getTimeout()
public int getVersion()
public String getVersionString()
public String getWriteCommunity()
public static org.snmp4j.smi.Address convertAddress(InetAddress address, int port)
public org.snmp4j.Target getTarget()
public org.snmp4j.smi.OID getPrivProtocol()
public org.snmp4j.smi.OctetString getPrivPassPhrase()
public org.snmp4j.smi.OctetString getContextName()
public org.snmp4j.smi.OctetString getContextEngineID()
public org.snmp4j.Snmp createSnmpSession() throws IOException
IOException
public org.snmp4j.PDU createPdu(int type)
type
- Copyright © 2021. All rights reserved.