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 boolean
equals(java.lang.Object obj)
java.net.InetAddress
getAgentAddress()
java.lang.String
getCommunity()
long
getCreationTime()
int
getPduLength()
byte[]
getRawMessage()
java.util.List<SnmpResult>
getResults()
long
getTimestamp()
TrapIdentityDTO
getTrapIdentity()
java.lang.String
getVersion()
int
hashCode()
void
setAgentAddress(java.net.InetAddress agentAddress)
void
setCommunity(java.lang.String community)
void
setCreationTime(long creationTime)
void
setPduLength(int pduLength)
void
setRawMessage(byte[] rawMessage)
void
setTimestamp(long timestamp)
void
setTrapIdentity(TrapIdentityDTO trapIdentity)
void
setVersion(java.lang.String version)
java.lang.String
toString()
-
-
-
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:
hashCode
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-