public class SnmpInfo extends Object
SnmpInfo class.
Constructor and Description |
---|
SnmpInfo()
Constructor for SnmpInfo.
|
SnmpInfo(SnmpAgentConfig config)
Constructor for SnmpInfo.
|
public SnmpInfo()
Constructor for SnmpInfo.
public SnmpInfo(SnmpAgentConfig config)
Constructor for SnmpInfo.
config
- a SnmpAgentConfig
object.@Deprecated public String getCommunity()
getReadCommunity()
instead.getCommunity
@Deprecated public void setCommunity(String community)
setReadCommunity(String)
instead.setCommunity
community
- the read community string to setpublic String getVersion()
getVersion
public void setVersion(String version)
public Integer getPort()
getPort
public void setPort(Integer port)
setPort
port
- the port to setpublic Integer getRetries()
getRetries
public void setRetries(Integer retries)
setRetries
retries
- the retries to setpublic Integer getTimeout()
getTimeout
public void setTimeout(Integer timeout)
setTimeout
timeout
- the timeout to setpublic String getLocation()
public void setLocation(String location)
location
- the m_location to setpublic String getSecurityName()
public void setSecurityName(String securityName)
public boolean hasSecurityLevel()
m_securityLevel
is not null.m_securityLevel
is not null.public boolean hasTimeout()
public boolean hasMaxRequestSize()
public boolean hasMaxRepetitions()
public boolean hasMaxVarsPerPdu()
public Integer getSecurityLevel()
public void setSecurityLevel(Integer securityLevel)
public String getAuthPassPhrase()
public void setAuthPassPhrase(String authPassPhrase)
public String getAuthProtocol()
public void setAuthProtocol(String authProtocol)
public String getPrivPassPhrase()
public void setPrivPassPhrase(String privPassPhrase)
public String getPrivProtocol()
public void setPrivProtocol(String privProtocol)
public Integer getMaxVarsPerPdu()
public void setMaxVarsPerPdu(Integer maxVarsPerPdu)
public Integer getMaxRepetitions()
public void setMaxRepetitions(Integer maxRepetitions)
public String getEngineId()
public void setEngineId(String engineId)
public void setContextEngineId(String contextEngineId)
public String getContextEngineId()
public void setContextName(String contextName)
public String getContextName()
public void setEnterpriseId(String enterpriseId)
public String getEnterpriseId()
public String getReadCommunity()
public void setReadCommunity(String readCommunity)
public String getWriteCommunity()
public void setWriteCommunity(String writeCommunity)
public Integer getMaxRequestSize()
public void setMaxRequestSize(Integer maxRequestSize)
public String getProxyHost()
public void setProxyHost(String proxyHost)
public Long getTTL()
public void setTTL(Long ttl)
public SnmpEventInfo createEventInfo(String firstIpAddress, String lastIpAddress) throws UnknownHostException
SnmpEventInfo
object from this
.firstIpAddress
- a String
object which represents the first IP Address of the SnmpEventInfo
. Must not be null.lastIpAddress
- represents the last IP Address of the SnmpEventInfo
. May be null.SnmpEventInfo
object.UnknownHostException
- if any.public SnmpEventInfo createEventInfo(String ipAddr) throws UnknownHostException
createEventInfo(String, String)
with parameters: ipAddr
as firstIpAddress and null as lastIpAddress.ipAddr
- UnknownHostException
createEventInfo(String, String)
Copyright © 2021. All rights reserved.