Package org.opennms.netmgt.trapd
Class TrapDTO
- java.lang.Object
-
- org.opennms.netmgt.trapd.TrapDTO
-
-
Field Summary
-
Fields inherited from interface org.opennms.core.ipc.sink.api.Message
SINK_METRIC_CONSUMER_DOMAIN, SINK_METRIC_PRODUCER_DOMAIN
-
-
Constructor Summary
Constructors Constructor Description TrapDTO()TrapDTO(TrapInformation trapInfo)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object obj)java.net.InetAddressgetAgentAddress()java.lang.StringgetCommunity()longgetCreationTime()intgetPduLength()byte[]getRawMessage()java.util.List<SnmpResult>getResults()longgetTimestamp()TrapIdentityDTOgetTrapIdentity()java.lang.StringgetVersion()inthashCode()voidsetAgentAddress(java.net.InetAddress agentAddress)voidsetCommunity(java.lang.String community)voidsetCreationTime(long creationTime)voidsetPduLength(int pduLength)voidsetRawMessage(byte[] rawMessage)voidsetTimestamp(long timestamp)voidsetTrapIdentity(TrapIdentityDTO trapIdentity)voidsetVersion(java.lang.String version)java.lang.StringtoString()
-
-
-
Constructor Detail
-
TrapDTO
public TrapDTO()
-
TrapDTO
public TrapDTO(TrapInformation trapInfo)
-
-
Method Detail
-
setAgentAddress
public void setAgentAddress(java.net.InetAddress agentAddress)
-
getAgentAddress
public java.net.InetAddress getAgentAddress()
-
setCommunity
public void setCommunity(java.lang.String community)
-
getCommunity
public java.lang.String getCommunity()
-
setVersion
public void setVersion(java.lang.String version)
-
getVersion
public java.lang.String getVersion()
-
setTimestamp
public void setTimestamp(long timestamp)
-
getTimestamp
public long getTimestamp()
-
setPduLength
public void setPduLength(int pduLength)
-
getPduLength
public int getPduLength()
-
setCreationTime
public void setCreationTime(long creationTime)
-
getCreationTime
public long getCreationTime()
-
setTrapIdentity
public void setTrapIdentity(TrapIdentityDTO trapIdentity)
-
getTrapIdentity
public TrapIdentityDTO getTrapIdentity()
-
getResults
public java.util.List<SnmpResult> getResults()
-
getRawMessage
public byte[] getRawMessage()
-
setRawMessage
public void setRawMessage(byte[] rawMessage)
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-