Modifier and Type | Class and Description |
---|---|
static class |
SFlow.Header |
Flow.Direction, Flow.NetflowVersion, Flow.SamplingAlgorithm
IPV4_PROTOCOL_VERSION, IPV6_PROTOCOL_VERSION
Constructor and Description |
---|
SFlow(SFlow.Header header,
org.bson.BsonDocument document,
java.time.Instant receivedAt) |
Modifier and Type | Method and Description |
---|---|
Long |
getBytes()
Number of bytes transferred in the flow.
|
Long |
getDeltaSwitched()
Unix timestamp in ms at which the previous exported packet
associated with this flow was switched.
|
Flow.Direction |
getDirection()
Direction of the flow (egress vs ingress)
|
String |
getDstAddr()
Destination address.
|
Optional<String> |
getDstAddrHostname()
Destination address hostname.
|
Long |
getDstAs()
Destination autonomous system (AS).
|
Integer |
getDstMaskLen()
The number of contiguous bits in the source address subnet mask.
|
Integer |
getDstPort()
Destination port.
|
Integer |
getEngineId()
Slot number of the flow-switching engine.
|
Integer |
getEngineType()
Type of flow-switching engine.
|
Long |
getFirstSwitched()
Unix timestamp in ms at which the first packet
associated with this flow was switched.
|
int |
getFlowRecords()
Number of flow records in the associated packet.
|
long |
getFlowSeqNum()
Flow packet sequence number.
|
Integer |
getInputSnmp()
SNMP ifIndex
|
Integer |
getIpProtocolVersion()
IPv4 vs IPv6
|
Long |
getLastSwitched()
Unix timestamp in ms at which the last packet
associated with this flow was switched.
|
Flow.NetflowVersion |
getNetflowVersion()
Netfow version
|
String |
getNextHop()
Next hop
|
Optional<String> |
getNextHopHostname()
Next hop hostname
|
String |
getNodeIdentifier()
Method to get node lookup identifier.
|
Integer |
getOutputSnmp()
SNMP ifIndex
|
Long |
getPackets()
Number of packets in the flow
|
Integer |
getProtocol()
IP protocol number i.e 6 for TCP, 17 for UDP
|
long |
getReceivedAt()
Time at which the flow was received by listener in milliseconds since epoch UTC.
|
Flow.SamplingAlgorithm |
getSamplingAlgorithm()
Sampling algorithm ID
|
Double |
getSamplingInterval()
Sampling interval
|
String |
getSrcAddr()
Source address.
|
Optional<String> |
getSrcAddrHostname()
Source address hostname.
|
Long |
getSrcAs()
Source autonomous system (AS).
|
Integer |
getSrcMaskLen()
The number of contiguous bits in the destination address subnet mask.
|
Integer |
getSrcPort()
Source port.
|
Integer |
getTcpFlags()
TCP Flags.
|
long |
getTimestamp()
Flow timestamp in milliseconds.
|
Integer |
getTos()
TOS.
|
Integer |
getVlan()
VLAN ID.
|
public SFlow(SFlow.Header header, org.bson.BsonDocument document, java.time.Instant receivedAt)
public long getReceivedAt()
Flow
getReceivedAt
in interface Flow
public long getTimestamp()
Flow
getTimestamp
in interface Flow
public Long getBytes()
Flow
public Flow.Direction getDirection()
Flow
getDirection
in interface Flow
public String getDstAddr()
Flow
getDstAddr
in interface Flow
public Optional<String> getDstAddrHostname()
Flow
getDstAddrHostname
in interface Flow
public Long getDstAs()
Flow
public Integer getDstMaskLen()
Flow
getDstMaskLen
in interface Flow
public Integer getDstPort()
Flow
getDstPort
in interface Flow
public Integer getEngineId()
Flow
getEngineId
in interface Flow
public Integer getEngineType()
Flow
getEngineType
in interface Flow
public Long getFirstSwitched()
Flow
getFirstSwitched
in interface Flow
public Long getLastSwitched()
Flow
getLastSwitched
in interface Flow
public int getFlowRecords()
Flow
getFlowRecords
in interface Flow
public long getFlowSeqNum()
Flow
getFlowSeqNum
in interface Flow
public Integer getInputSnmp()
Flow
getInputSnmp
in interface Flow
public Integer getOutputSnmp()
Flow
getOutputSnmp
in interface Flow
public Integer getIpProtocolVersion()
Flow
getIpProtocolVersion
in interface Flow
public String getNextHop()
Flow
getNextHop
in interface Flow
public Optional<String> getNextHopHostname()
Flow
getNextHopHostname
in interface Flow
public Long getPackets()
Flow
getPackets
in interface Flow
public Integer getProtocol()
Flow
getProtocol
in interface Flow
public Flow.SamplingAlgorithm getSamplingAlgorithm()
Flow
getSamplingAlgorithm
in interface Flow
public Double getSamplingInterval()
Flow
getSamplingInterval
in interface Flow
public String getSrcAddr()
Flow
getSrcAddr
in interface Flow
public Optional<String> getSrcAddrHostname()
Flow
getSrcAddrHostname
in interface Flow
public Long getSrcAs()
Flow
public Integer getSrcMaskLen()
Flow
getSrcMaskLen
in interface Flow
public Integer getSrcPort()
Flow
getSrcPort
in interface Flow
public Integer getTcpFlags()
Flow
getTcpFlags
in interface Flow
public Long getDeltaSwitched()
Flow
getDeltaSwitched
in interface Flow
public Flow.NetflowVersion getNetflowVersion()
Flow
getNetflowVersion
in interface Flow
public String getNodeIdentifier()
Flow
getNodeIdentifier
in interface Flow
Copyright © 2021. All rights reserved.