Package org.opennms.web.svclayer.model
Class SnmpInfo
- java.lang.Object
-
- org.opennms.web.svclayer.model.SnmpInfo
-
public class SnmpInfo extends Object
SnmpInfo class.
- Since:
- 1.8.1
- Version:
- $Id: $
- Author:
- ranger
-
-
Constructor Summary
Constructors Constructor Description SnmpInfo()
Constructor for SnmpInfo.SnmpInfo(SnmpAgentConfig config)
Constructor for SnmpInfo.
-
Method Summary
-
-
-
Constructor Detail
-
SnmpInfo
public SnmpInfo()
Constructor for SnmpInfo.
-
SnmpInfo
public SnmpInfo(SnmpAgentConfig config)
Constructor for SnmpInfo.
- Parameters:
config
- aSnmpAgentConfig
object.
-
-
Method Detail
-
getCommunity
@Deprecated public String getCommunity()
Deprecated.usegetReadCommunity()
instead.getCommunity
- Returns:
- the read community string
-
setCommunity
@Deprecated public void setCommunity(String community)
Deprecated.usesetReadCommunity(String)
instead.setCommunity
- Parameters:
community
- the read community string to set
-
getVersion
public String getVersion()
getVersion
- Returns:
- the version
-
setVersion
public void setVersion(String version)
-
getPort
public Integer getPort()
getPort
- Returns:
- the port
-
setPort
public void setPort(Integer port)
setPort
- Parameters:
port
- the port to set
-
getRetries
public Integer getRetries()
getRetries
- Returns:
- the retries
-
setRetries
public void setRetries(Integer retries)
setRetries
- Parameters:
retries
- the retries to set
-
getTimeout
public Integer getTimeout()
getTimeout
- Returns:
- the timeout
-
setTimeout
public void setTimeout(Integer timeout)
setTimeout
- Parameters:
timeout
- the timeout to set
-
getLocation
public String getLocation()
- Returns:
- the m_location
-
setLocation
public void setLocation(String location)
- Parameters:
location
- the m_location to set
-
getSecurityName
public String getSecurityName()
-
setSecurityName
public void setSecurityName(String securityName)
-
hasSecurityLevel
public boolean hasSecurityLevel()
Returns true ifm_securityLevel
is not null.- Returns:
- true if
m_securityLevel
is not null.
-
hasTimeout
public boolean hasTimeout()
-
hasMaxRequestSize
public boolean hasMaxRequestSize()
-
hasMaxRepetitions
public boolean hasMaxRepetitions()
-
hasMaxVarsPerPdu
public boolean hasMaxVarsPerPdu()
-
getSecurityLevel
public Integer getSecurityLevel()
-
setSecurityLevel
public void setSecurityLevel(Integer securityLevel)
-
getAuthPassPhrase
public String getAuthPassPhrase()
-
setAuthPassPhrase
public void setAuthPassPhrase(String authPassPhrase)
-
getAuthProtocol
public String getAuthProtocol()
-
setAuthProtocol
public void setAuthProtocol(String authProtocol)
-
getPrivPassPhrase
public String getPrivPassPhrase()
-
setPrivPassPhrase
public void setPrivPassPhrase(String privPassPhrase)
-
getPrivProtocol
public String getPrivProtocol()
-
setPrivProtocol
public void setPrivProtocol(String privProtocol)
-
getMaxVarsPerPdu
public Integer getMaxVarsPerPdu()
-
setMaxVarsPerPdu
public void setMaxVarsPerPdu(Integer maxVarsPerPdu)
-
getMaxRepetitions
public Integer getMaxRepetitions()
-
setMaxRepetitions
public void setMaxRepetitions(Integer maxRepetitions)
-
getEngineId
public String getEngineId()
-
setEngineId
public void setEngineId(String engineId)
-
setContextEngineId
public void setContextEngineId(String contextEngineId)
-
getContextEngineId
public String getContextEngineId()
-
setContextName
public void setContextName(String contextName)
-
getContextName
public String getContextName()
-
setEnterpriseId
public void setEnterpriseId(String enterpriseId)
-
getEnterpriseId
public String getEnterpriseId()
-
getReadCommunity
public String getReadCommunity()
-
setReadCommunity
public void setReadCommunity(String readCommunity)
-
getWriteCommunity
public String getWriteCommunity()
-
setWriteCommunity
public void setWriteCommunity(String writeCommunity)
-
getMaxRequestSize
public Integer getMaxRequestSize()
-
setMaxRequestSize
public void setMaxRequestSize(Integer maxRequestSize)
-
getProxyHost
public String getProxyHost()
-
setProxyHost
public void setProxyHost(String proxyHost)
-
getTTL
public Long getTTL()
-
setTTL
public void setTTL(Long ttl)
-
createEventInfo
public SnmpEventInfo createEventInfo(String firstIpAddress, String lastIpAddress) throws UnknownHostException
Creates aSnmpEventInfo
object fromthis
.- Parameters:
firstIpAddress
- aString
object which represents the first IP Address of theSnmpEventInfo
. Must not be null.lastIpAddress
- represents the last IP Address of theSnmpEventInfo
. May be null.- Returns:
- a
SnmpEventInfo
object. - Throws:
UnknownHostException
- if any.
-
createEventInfo
public SnmpEventInfo createEventInfo(String ipAddr) throws UnknownHostException
InvokescreateEventInfo(String, String)
with parameters: ipAddr as firstIpAddress and null as lastIpAddress.- Parameters:
ipAddr
-- Returns:
- Throws:
UnknownHostException
- See Also:
createEventInfo(String, String)
-
-