Package org.opennms.web.svclayer.model
Class SnmpInfo
- java.lang.Object
-
- org.opennms.web.svclayer.model.SnmpInfo
-
public class SnmpInfo extends java.lang.ObjectSnmpInfo 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
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description SnmpEventInfocreateEventInfo(java.lang.String ipAddr)InvokescreateEventInfo(String, String)with parameters: ipAddr as firstIpAddress and null as lastIpAddress.SnmpEventInfocreateEventInfo(java.lang.String firstIpAddress, java.lang.String lastIpAddress)Creates aSnmpEventInfoobject fromthis.booleanequals(java.lang.Object obj)java.lang.StringgetAuthPassPhrase()java.lang.StringgetAuthProtocol()java.lang.StringgetCommunity()Deprecated.usegetReadCommunity()instead.java.lang.StringgetContextEngineId()java.lang.StringgetContextName()java.lang.StringgetEngineId()java.lang.StringgetEnterpriseId()java.lang.StringgetLocation()java.lang.IntegergetMaxRepetitions()java.lang.IntegergetMaxRequestSize()java.lang.IntegergetMaxVarsPerPdu()java.lang.IntegergetPort()getPortjava.lang.StringgetPrivPassPhrase()java.lang.StringgetPrivProtocol()java.lang.StringgetProxyHost()java.lang.StringgetReadCommunity()java.lang.IntegergetRetries()getRetriesjava.lang.IntegergetSecurityLevel()java.lang.StringgetSecurityName()java.lang.IntegergetTimeout()getTimeoutjava.lang.LonggetTTL()java.lang.StringgetVersion()getVersionjava.lang.StringgetWriteCommunity()inthashCode()booleanhasMaxRepetitions()booleanhasMaxRequestSize()booleanhasMaxVarsPerPdu()booleanhasSecurityLevel()Returns true ifm_securityLevelis not null.booleanhasTimeout()voidsetAuthPassPhrase(java.lang.String authPassPhrase)voidsetAuthProtocol(java.lang.String authProtocol)voidsetCommunity(java.lang.String community)Deprecated.usesetReadCommunity(String)instead.voidsetContextEngineId(java.lang.String contextEngineId)voidsetContextName(java.lang.String contextName)voidsetEngineId(java.lang.String engineId)voidsetEnterpriseId(java.lang.String enterpriseId)voidsetLocation(java.lang.String location)voidsetMaxRepetitions(java.lang.Integer maxRepetitions)voidsetMaxRequestSize(java.lang.Integer maxRequestSize)voidsetMaxVarsPerPdu(java.lang.Integer maxVarsPerPdu)voidsetPort(java.lang.Integer port)setPortvoidsetPrivPassPhrase(java.lang.String privPassPhrase)voidsetPrivProtocol(java.lang.String privProtocol)voidsetProxyHost(java.lang.String proxyHost)voidsetReadCommunity(java.lang.String readCommunity)voidsetRetries(java.lang.Integer retries)setRetriesvoidsetSecurityLevel(java.lang.Integer securityLevel)voidsetSecurityName(java.lang.String securityName)voidsetTimeout(java.lang.Integer timeout)setTimeoutvoidsetTTL(java.lang.Long ttl)voidsetVersion(java.lang.String version)voidsetWriteCommunity(java.lang.String writeCommunity)java.lang.StringtoString()
-
-
-
Constructor Detail
-
SnmpInfo
public SnmpInfo()
Constructor for SnmpInfo.
-
SnmpInfo
public SnmpInfo(SnmpAgentConfig config)
Constructor for SnmpInfo.
- Parameters:
config- aSnmpAgentConfigobject.
-
-
Method Detail
-
getCommunity
@Deprecated public java.lang.String getCommunity()
Deprecated.usegetReadCommunity()instead.getCommunity
- Returns:
- the read community string
-
setCommunity
@Deprecated public void setCommunity(java.lang.String community)
Deprecated.usesetReadCommunity(String)instead.setCommunity
- Parameters:
community- the read community string to set
-
getVersion
public java.lang.String getVersion()
getVersion
- Returns:
- the version
-
setVersion
public void setVersion(java.lang.String version)
-
getPort
public java.lang.Integer getPort()
getPort
- Returns:
- the port
-
setPort
public void setPort(java.lang.Integer port)
setPort
- Parameters:
port- the port to set
-
getRetries
public java.lang.Integer getRetries()
getRetries
- Returns:
- the retries
-
setRetries
public void setRetries(java.lang.Integer retries)
setRetries
- Parameters:
retries- the retries to set
-
getTimeout
public java.lang.Integer getTimeout()
getTimeout
- Returns:
- the timeout
-
setTimeout
public void setTimeout(java.lang.Integer timeout)
setTimeout
- Parameters:
timeout- the timeout to set
-
getLocation
public java.lang.String getLocation()
- Returns:
- the m_location
-
setLocation
public void setLocation(java.lang.String location)
- Parameters:
location- the m_location to set
-
getSecurityName
public java.lang.String getSecurityName()
-
setSecurityName
public void setSecurityName(java.lang.String securityName)
-
hasSecurityLevel
public boolean hasSecurityLevel()
Returns true ifm_securityLevelis not null.- Returns:
- true if
m_securityLevelis not null.
-
hasTimeout
public boolean hasTimeout()
-
hasMaxRequestSize
public boolean hasMaxRequestSize()
-
hasMaxRepetitions
public boolean hasMaxRepetitions()
-
hasMaxVarsPerPdu
public boolean hasMaxVarsPerPdu()
-
getSecurityLevel
public java.lang.Integer getSecurityLevel()
-
setSecurityLevel
public void setSecurityLevel(java.lang.Integer securityLevel)
-
getAuthPassPhrase
public java.lang.String getAuthPassPhrase()
-
setAuthPassPhrase
public void setAuthPassPhrase(java.lang.String authPassPhrase)
-
getAuthProtocol
public java.lang.String getAuthProtocol()
-
setAuthProtocol
public void setAuthProtocol(java.lang.String authProtocol)
-
getPrivPassPhrase
public java.lang.String getPrivPassPhrase()
-
setPrivPassPhrase
public void setPrivPassPhrase(java.lang.String privPassPhrase)
-
getPrivProtocol
public java.lang.String getPrivProtocol()
-
setPrivProtocol
public void setPrivProtocol(java.lang.String privProtocol)
-
getMaxVarsPerPdu
public java.lang.Integer getMaxVarsPerPdu()
-
setMaxVarsPerPdu
public void setMaxVarsPerPdu(java.lang.Integer maxVarsPerPdu)
-
getMaxRepetitions
public java.lang.Integer getMaxRepetitions()
-
setMaxRepetitions
public void setMaxRepetitions(java.lang.Integer maxRepetitions)
-
getEngineId
public java.lang.String getEngineId()
-
setEngineId
public void setEngineId(java.lang.String engineId)
-
setContextEngineId
public void setContextEngineId(java.lang.String contextEngineId)
-
getContextEngineId
public java.lang.String getContextEngineId()
-
setContextName
public void setContextName(java.lang.String contextName)
-
getContextName
public java.lang.String getContextName()
-
setEnterpriseId
public void setEnterpriseId(java.lang.String enterpriseId)
-
getEnterpriseId
public java.lang.String getEnterpriseId()
-
getReadCommunity
public java.lang.String getReadCommunity()
-
setReadCommunity
public void setReadCommunity(java.lang.String readCommunity)
-
getWriteCommunity
public java.lang.String getWriteCommunity()
-
setWriteCommunity
public void setWriteCommunity(java.lang.String writeCommunity)
-
getMaxRequestSize
public java.lang.Integer getMaxRequestSize()
-
setMaxRequestSize
public void setMaxRequestSize(java.lang.Integer maxRequestSize)
-
getProxyHost
public java.lang.String getProxyHost()
-
setProxyHost
public void setProxyHost(java.lang.String proxyHost)
-
getTTL
public java.lang.Long getTTL()
-
setTTL
public void setTTL(java.lang.Long ttl)
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
createEventInfo
public SnmpEventInfo createEventInfo(java.lang.String firstIpAddress, java.lang.String lastIpAddress) throws java.net.UnknownHostException
Creates aSnmpEventInfoobject fromthis.- Parameters:
firstIpAddress- aStringobject 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
SnmpEventInfoobject. - Throws:
java.net.UnknownHostException- if any.
-
createEventInfo
public SnmpEventInfo createEventInfo(java.lang.String ipAddr) throws java.net.UnknownHostException
InvokescreateEventInfo(String, String)with parameters: ipAddr as firstIpAddress and null as lastIpAddress.- Parameters:
ipAddr-- Returns:
- Throws:
java.net.UnknownHostException- See Also:
createEventInfo(String, String)
-
-