public class SnmpTrapConfig extends Object
| Constructor and Description | 
|---|
SnmpTrapConfig()  | 
| Modifier and Type | Method and Description | 
|---|---|
void | 
addParameter(String parameterName,
            String parameterValue,
            String parameterType)
Adds the parameter. 
 | 
SnmpAgentConfig | 
getAgentConfig()
Gets the SNMP agent configuration. 
 | 
String | 
getCommunity()
Gets the community. 
 | 
InetAddress | 
getDestinationAddress()
Gets the destination address. 
 | 
int | 
getDestinationPort()
Gets the destination port. 
 | 
String | 
getEnterpriseId()
Gets the enterprise id. 
 | 
int | 
getGeneric()
Gets the generic. 
 | 
InetAddress | 
getHostAddress()
Gets the host address. 
 | 
List<Parm> | 
getParameters()
Gets the parameters. 
 | 
String | 
getParameterValue(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(String community)
Sets the community. 
 | 
void | 
setDestinationAddress(InetAddress destinationAddress)
Sets the destination address. 
 | 
void | 
setDestinationPort(int destinationPort)
Sets the destination port. 
 | 
void | 
setEnterpriseId(String enterpriseId)
Sets the enterprise id. 
 | 
void | 
setGeneric(int generic)
Sets the generic. 
 | 
void | 
setHostAddress(InetAddress hostAddress)
Sets the host address. 
 | 
void | 
setParameters(List<Parm> parameters)
Sets the parameters. 
 | 
void | 
setSpecific(int specific)
Sets the specific. 
 | 
void | 
setVersion(SnmpVersion version)
Sets the SNMP version. 
 | 
String | 
toString()  | 
public String getEnterpriseId()
public int getSpecific()
public int getGeneric()
public SnmpVersion getVersion()
public String getCommunity()
public InetAddress getDestinationAddress()
public int getDestinationPort()
public String getParameterValue(String parameterName)
parameterName - the parameter namepublic InetAddress getHostAddress()
public void setEnterpriseId(String enterpriseId)
enterpriseId - the new enterprise idpublic void setSpecific(int specific)
specific - the new specificpublic void setGeneric(int generic)
generic - the new genericpublic void setVersion(SnmpVersion version)
version - the new SNMP versionpublic void setCommunity(String community)
community - the new communitypublic void setDestinationAddress(InetAddress destinationAddress)
destinationAddress - the new destination addresspublic void setDestinationPort(int destinationPort)
destinationPort - the new destination portpublic void setParameters(List<Parm> parameters)
parameters - the new parameterspublic void setHostAddress(InetAddress hostAddress)
hostAddress - the new host addresspublic boolean hasSpecific()
public boolean hasGeneric()
public void addParameter(String parameterName, String parameterValue, String parameterType)
parameterName - the parameter nameparameterValue - the parameter valueparameterType - the parameter typepublic SnmpAgentConfig getAgentConfig()
public boolean isValid()
Copyright © 2020. All rights reserved.