Class AbstractNetworkProtocolRequestEvent
- java.lang.Object
-
- software.amazon.disco.agent.event.AbstractEvent
-
- software.amazon.disco.agent.event.AbstractProtocolEvent
-
- software.amazon.disco.agent.event.AbstractProtocolRequestEvent
-
- software.amazon.disco.agent.event.AbstractNetworkProtocolRequestEvent
-
- All Implemented Interfaces:
Event,NetworkProtocolEvent,NetworkProtocolRequestEvent,ProtocolEvent,ProtocolRequestEvent
- Direct Known Subclasses:
HttpServletNetworkRequestEvent
public abstract class AbstractNetworkProtocolRequestEvent extends AbstractProtocolRequestEvent implements NetworkProtocolRequestEvent
An abstract event that defines network-based request occurrences. In a network context, this can mean that a client is requesting a stream connection with a server, or a packet was received at a certain port.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface software.amazon.disco.agent.event.NetworkProtocolEvent
NetworkProtocolEvent.NetworkType
-
Nested classes/interfaces inherited from interface software.amazon.disco.agent.event.ProtocolEvent
ProtocolEvent.Type
-
-
Field Summary
-
Fields inherited from class software.amazon.disco.agent.event.AbstractEvent
data, origin
-
-
Constructor Summary
Constructors Constructor Description AbstractNetworkProtocolRequestEvent(java.lang.String origin, int srcPort, int dstPort, java.lang.String srcIP, java.lang.String dstIP)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetDestinationIP()Get the destination IP address.intgetDestinationPort()Get the socket-level destination port; the port that the receiving end is using to retrieve data;.java.lang.StringgetSourceIP()Get the source IP address.intgetSourcePort()Get the socket-level source port; the port that the caller used to send data.ProtocolEvent.TypegetType()Get the type of this ProtocolRequestEvent-
Methods inherited from class software.amazon.disco.agent.event.AbstractProtocolRequestEvent
getDestinationAddress, getRequest, getSourceAddress, withRequest
-
Methods inherited from class software.amazon.disco.agent.event.AbstractProtocolEvent
getHeaderData, getHeaderMap, withHeaderData, withHeaderMap
-
Methods inherited from class software.amazon.disco.agent.event.AbstractEvent
getData, getOrigin, withData
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface software.amazon.disco.agent.event.NetworkProtocolEvent
getNetworkType
-
Methods inherited from interface software.amazon.disco.agent.event.ProtocolEvent
getHeaderData
-
Methods inherited from interface software.amazon.disco.agent.event.ProtocolRequestEvent
getDestinationAddress, getRequest, getSourceAddress
-
-
-
-
Method Detail
-
getSourcePort
public int getSourcePort()
Get the socket-level source port; the port that the caller used to send data.- Specified by:
getSourcePortin interfaceNetworkProtocolRequestEvent- Returns:
- The source port for this network request
-
getDestinationPort
public int getDestinationPort()
Get the socket-level destination port; the port that the receiving end is using to retrieve data;.- Specified by:
getDestinationPortin interfaceNetworkProtocolRequestEvent- Returns:
- The destination port for this network request.
-
getSourceIP
public java.lang.String getSourceIP()
Get the source IP address.- Specified by:
getSourceIPin interfaceNetworkProtocolRequestEvent- Returns:
- The source IP address
-
getDestinationIP
public java.lang.String getDestinationIP()
Get the destination IP address.- Specified by:
getDestinationIPin interfaceNetworkProtocolRequestEvent- Returns:
- The destination IP address
-
getType
public ProtocolEvent.Type getType()
Get the type of this ProtocolRequestEvent- Specified by:
getTypein interfaceProtocolEvent- Returns:
- NETWORK for now
-
-