Package org.opennms.web.svclayer.model
Class SnmpInfo
- java.lang.Object
-
- org.opennms.web.svclayer.model.SnmpInfo
-
public class SnmpInfo extends java.lang.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
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description SnmpEventInfo
createEventInfo(java.lang.String ipAddr)
InvokescreateEventInfo(String, String)
with parameters: ipAddr as firstIpAddress and null as lastIpAddress.SnmpEventInfo
createEventInfo(java.lang.String firstIpAddress, java.lang.String lastIpAddress)
Creates aSnmpEventInfo
object fromthis
.boolean
equals(java.lang.Object obj)
java.lang.String
getAuthPassPhrase()
java.lang.String
getAuthProtocol()
java.lang.String
getCommunity()
Deprecated.usegetReadCommunity()
instead.java.lang.String
getContextEngineId()
java.lang.String
getContextName()
java.lang.String
getEngineId()
java.lang.String
getEnterpriseId()
java.lang.String
getLocation()
java.lang.Integer
getMaxRepetitions()
java.lang.Integer
getMaxRequestSize()
java.lang.Integer
getMaxVarsPerPdu()
java.lang.Integer
getPort()
getPortjava.lang.String
getPrivPassPhrase()
java.lang.String
getPrivProtocol()
java.lang.String
getProxyHost()
java.lang.String
getReadCommunity()
java.lang.Integer
getRetries()
getRetriesjava.lang.Integer
getSecurityLevel()
java.lang.String
getSecurityName()
java.lang.Integer
getTimeout()
getTimeoutjava.lang.Long
getTTL()
java.lang.String
getVersion()
getVersionjava.lang.String
getWriteCommunity()
int
hashCode()
boolean
hasMaxRepetitions()
boolean
hasMaxRequestSize()
boolean
hasMaxVarsPerPdu()
boolean
hasSecurityLevel()
Returns true ifm_securityLevel
is not null.boolean
hasTimeout()
void
setAuthPassPhrase(java.lang.String authPassPhrase)
void
setAuthProtocol(java.lang.String authProtocol)
void
setCommunity(java.lang.String community)
Deprecated.usesetReadCommunity(String)
instead.void
setContextEngineId(java.lang.String contextEngineId)
void
setContextName(java.lang.String contextName)
void
setEngineId(java.lang.String engineId)
void
setEnterpriseId(java.lang.String enterpriseId)
void
setLocation(java.lang.String location)
void
setMaxRepetitions(java.lang.Integer maxRepetitions)
void
setMaxRequestSize(java.lang.Integer maxRequestSize)
void
setMaxVarsPerPdu(java.lang.Integer maxVarsPerPdu)
void
setPort(java.lang.Integer port)
setPortvoid
setPrivPassPhrase(java.lang.String privPassPhrase)
void
setPrivProtocol(java.lang.String privProtocol)
void
setProxyHost(java.lang.String proxyHost)
void
setReadCommunity(java.lang.String readCommunity)
void
setRetries(java.lang.Integer retries)
setRetriesvoid
setSecurityLevel(java.lang.Integer securityLevel)
void
setSecurityName(java.lang.String securityName)
void
setTimeout(java.lang.Integer timeout)
setTimeoutvoid
setTTL(java.lang.Long ttl)
void
setVersion(java.lang.String version)
void
setWriteCommunity(java.lang.String writeCommunity)
java.lang.String
toString()
-
-
-
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 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_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 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:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
createEventInfo
public SnmpEventInfo createEventInfo(java.lang.String firstIpAddress, java.lang.String lastIpAddress) throws java.net.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:
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)
-
-