public abstract class TrapInformation extends Object
Modifier | Constructor and Description |
---|---|
protected |
TrapInformation(InetAddress agent,
String community) |
Modifier and Type | Method and Description |
---|---|
InetAddress |
getAgentAddress()
Returns the sending agent's internet address
|
String |
getCommunity()
Returns the SNMP community string from the received packet.
|
long |
getCreationTime() |
String |
getLocation() |
abstract int |
getPduLength() |
protected abstract Integer |
getRequestId() |
abstract SnmpVarBindDTO |
getSnmpVarBindDTO(int i) |
String |
getSystemId() |
abstract long |
getTimeStamp()
Get the SNMP TimeTicks value for the sysUpTime of the agent that
generated the trap.
|
abstract InetAddress |
getTrapAddress() |
abstract TrapIdentity |
getTrapIdentity() |
abstract String |
getVersion() |
void |
setCreationTime(long creationTime) |
void |
setLocation(String location) |
void |
setSystemId(String systemId) |
void |
validate()
Validate the trap.
|
protected TrapInformation(InetAddress agent, String community)
public abstract InetAddress getTrapAddress()
getAgentAddress()
but for SNMPv1
traps, the value can be different if the trap has been forwarded. It then
represents the true source IP address of the trap event.public final String getSystemId()
public final void setSystemId(String systemId)
public final String getLocation()
public final void setLocation(String location)
public final String getCommunity()
public void validate() throws SnmpException
SnmpException
- on validation error.public final InetAddress getAgentAddress()
public final long getCreationTime()
public final void setCreationTime(long creationTime)
public abstract String getVersion()
public abstract int getPduLength()
public abstract long getTimeStamp()
public abstract TrapIdentity getTrapIdentity()
protected abstract Integer getRequestId()
public abstract SnmpVarBindDTO getSnmpVarBindDTO(int i)
Copyright © 2021. All rights reserved.