Class SnmpTrapConfig
- java.lang.Object
-
- org.opennms.netmgt.alarmd.northbounder.snmptrap.SnmpTrapConfig
-
public class SnmpTrapConfig extends java.lang.Object
The Class SnmpTrapConfig.- Author:
- Alejandro Galue
-
-
Constructor Summary
Constructors Constructor Description SnmpTrapConfig()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addParameter(java.lang.String parameterName, java.lang.String parameterValue, java.lang.String parameterType)
Adds the parameter.SnmpAgentConfig
getAgentConfig()
Gets the SNMP agent configuration.java.lang.String
getCommunity()
Gets the community.java.net.InetAddress
getDestinationAddress()
Gets the destination address.int
getDestinationPort()
Gets the destination port.java.lang.String
getEnterpriseId()
Gets the enterprise id.int
getGeneric()
Gets the generic.java.net.InetAddress
getHostAddress()
Gets the host address.java.util.List<Parm>
getParameters()
Gets the parameters.java.lang.String
getParameterValue(java.lang.String parameterName)
Gets the parameter value.int
getSpecific()
Gets the specific.SnmpVersion
getVersion()
Gets the SNMP version.boolean
hasGeneric()
Checks for generic.boolean
hasSpecific()
Checks for specific.boolean
isValid()
Checks if is valid.void
setCommunity(java.lang.String community)
Sets the community.void
setDestinationAddress(java.net.InetAddress destinationAddress)
Sets the destination address.void
setDestinationPort(int destinationPort)
Sets the destination port.void
setEnterpriseId(java.lang.String enterpriseId)
Sets the enterprise id.void
setGeneric(int generic)
Sets the generic.void
setHostAddress(java.net.InetAddress hostAddress)
Sets the host address.void
setParameters(java.util.List<Parm> parameters)
Sets the parameters.void
setSpecific(int specific)
Sets the specific.void
setVersion(SnmpVersion version)
Sets the SNMP version.java.lang.String
toString()
-
-
-
Method Detail
-
getEnterpriseId
public java.lang.String getEnterpriseId()
Gets the enterprise id.- Returns:
- the enterprise id
-
getSpecific
public int getSpecific()
Gets the specific.- Returns:
- the specific
-
getGeneric
public int getGeneric()
Gets the generic.- Returns:
- the generic
-
getVersion
public SnmpVersion getVersion()
Gets the SNMP version.- Returns:
- the SNMP version
-
getCommunity
public java.lang.String getCommunity()
Gets the community.- Returns:
- the community
-
getDestinationAddress
public java.net.InetAddress getDestinationAddress()
Gets the destination address.- Returns:
- the destination address
-
getDestinationPort
public int getDestinationPort()
Gets the destination port.- Returns:
- the destination port
-
getParameters
public java.util.List<Parm> getParameters()
Gets the parameters.- Returns:
- the parameters
-
getParameterValue
public java.lang.String getParameterValue(java.lang.String parameterName)
Gets the parameter value.- Parameters:
parameterName
- the parameter name- Returns:
- the parameter value
-
getHostAddress
public java.net.InetAddress getHostAddress()
Gets the host address.- Returns:
- the host address
-
setEnterpriseId
public void setEnterpriseId(java.lang.String enterpriseId)
Sets the enterprise id.- Parameters:
enterpriseId
- the new enterprise id
-
setSpecific
public void setSpecific(int specific)
Sets the specific.- Parameters:
specific
- the new specific
-
setGeneric
public void setGeneric(int generic)
Sets the generic.- Parameters:
generic
- the new generic
-
setVersion
public void setVersion(SnmpVersion version)
Sets the SNMP version.- Parameters:
version
- the new SNMP version
-
setCommunity
public void setCommunity(java.lang.String community)
Sets the community.- Parameters:
community
- the new community
-
setDestinationAddress
public void setDestinationAddress(java.net.InetAddress destinationAddress)
Sets the destination address.- Parameters:
destinationAddress
- the new destination address
-
setDestinationPort
public void setDestinationPort(int destinationPort)
Sets the destination port.- Parameters:
destinationPort
- the new destination port
-
setParameters
public void setParameters(java.util.List<Parm> parameters)
Sets the parameters.- Parameters:
parameters
- the new parameters
-
setHostAddress
public void setHostAddress(java.net.InetAddress hostAddress)
Sets the host address.- Parameters:
hostAddress
- the new host address
-
hasSpecific
public boolean hasSpecific()
Checks for specific.- Returns:
- true, if successful
-
hasGeneric
public boolean hasGeneric()
Checks for generic.- Returns:
- true, if successful
-
addParameter
public void addParameter(java.lang.String parameterName, java.lang.String parameterValue, java.lang.String parameterType)
Adds the parameter.- Parameters:
parameterName
- the parameter nameparameterValue
- the parameter valueparameterType
- the parameter type
-
getAgentConfig
public SnmpAgentConfig getAgentConfig()
Gets the SNMP agent configuration.- Returns:
- the SNMP agent configuration
-
isValid
public boolean isValid()
Checks if is valid.- Returns:
- true, if is valid
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-