Class SFlow

  • All Implemented Interfaces:
    Flow

    public class SFlow
    extends Object
    implements Flow
    • Constructor Detail

      • SFlow

        public SFlow​(SFlow.Header header,
                     org.bson.BsonDocument document,
                     java.time.Instant receivedAt)
    • Method Detail

      • getReceivedAt

        public long getReceivedAt()
        Description copied from interface: Flow
        Time at which the flow was received by listener in milliseconds since epoch UTC.
        Specified by:
        getReceivedAt in interface Flow
      • getTimestamp

        public long getTimestamp()
        Description copied from interface: Flow
        Flow timestamp in milliseconds.
        Specified by:
        getTimestamp in interface Flow
      • getBytes

        public Long getBytes()
        Description copied from interface: Flow
        Number of bytes transferred in the flow.
        Specified by:
        getBytes in interface Flow
      • getDirection

        public Flow.Direction getDirection()
        Description copied from interface: Flow
        Direction of the flow (egress vs ingress)
        Specified by:
        getDirection in interface Flow
      • getDstAddr

        public String getDstAddr()
        Description copied from interface: Flow
        Destination address.
        Specified by:
        getDstAddr in interface Flow
      • getDstAs

        public Long getDstAs()
        Description copied from interface: Flow
        Destination autonomous system (AS).
        Specified by:
        getDstAs in interface Flow
      • getDstMaskLen

        public Integer getDstMaskLen()
        Description copied from interface: Flow
        The number of contiguous bits in the source address subnet mask.
        Specified by:
        getDstMaskLen in interface Flow
      • getDstPort

        public Integer getDstPort()
        Description copied from interface: Flow
        Destination port.
        Specified by:
        getDstPort in interface Flow
      • getEngineId

        public Integer getEngineId()
        Description copied from interface: Flow
        Slot number of the flow-switching engine.
        Specified by:
        getEngineId in interface Flow
      • getEngineType

        public Integer getEngineType()
        Description copied from interface: Flow
        Type of flow-switching engine.
        Specified by:
        getEngineType in interface Flow
      • getFirstSwitched

        public Long getFirstSwitched()
        Description copied from interface: Flow
        Unix timestamp in ms at which the first packet associated with this flow was switched.
        Specified by:
        getFirstSwitched in interface Flow
      • getLastSwitched

        public Long getLastSwitched()
        Description copied from interface: Flow
        Unix timestamp in ms at which the last packet associated with this flow was switched.
        Specified by:
        getLastSwitched in interface Flow
      • getFlowRecords

        public int getFlowRecords()
        Description copied from interface: Flow
        Number of flow records in the associated packet.
        Specified by:
        getFlowRecords in interface Flow
      • getFlowSeqNum

        public long getFlowSeqNum()
        Description copied from interface: Flow
        Flow packet sequence number.
        Specified by:
        getFlowSeqNum in interface Flow
      • getInputSnmp

        public Integer getInputSnmp()
        Description copied from interface: Flow
        SNMP ifIndex
        Specified by:
        getInputSnmp in interface Flow
      • getOutputSnmp

        public Integer getOutputSnmp()
        Description copied from interface: Flow
        SNMP ifIndex
        Specified by:
        getOutputSnmp in interface Flow
      • getNextHop

        public String getNextHop()
        Description copied from interface: Flow
        Next hop
        Specified by:
        getNextHop in interface Flow
      • getPackets

        public Long getPackets()
        Description copied from interface: Flow
        Number of packets in the flow
        Specified by:
        getPackets in interface Flow
      • getProtocol

        public Integer getProtocol()
        Description copied from interface: Flow
        IP protocol number i.e 6 for TCP, 17 for UDP
        Specified by:
        getProtocol in interface Flow
      • getSamplingInterval

        public Double getSamplingInterval()
        Description copied from interface: Flow
        Sampling interval
        Specified by:
        getSamplingInterval in interface Flow
      • getSrcAddr

        public String getSrcAddr()
        Description copied from interface: Flow
        Source address.
        Specified by:
        getSrcAddr in interface Flow
      • getSrcAs

        public Long getSrcAs()
        Description copied from interface: Flow
        Source autonomous system (AS).
        Specified by:
        getSrcAs in interface Flow
      • getSrcMaskLen

        public Integer getSrcMaskLen()
        Description copied from interface: Flow
        The number of contiguous bits in the destination address subnet mask.
        Specified by:
        getSrcMaskLen in interface Flow
      • getSrcPort

        public Integer getSrcPort()
        Description copied from interface: Flow
        Source port.
        Specified by:
        getSrcPort in interface Flow
      • getTcpFlags

        public Integer getTcpFlags()
        Description copied from interface: Flow
        TCP Flags.
        Specified by:
        getTcpFlags in interface Flow
      • getDeltaSwitched

        public Long getDeltaSwitched()
        Description copied from interface: Flow
        Unix timestamp in ms at which the previous exported packet associated with this flow was switched.
        Specified by:
        getDeltaSwitched in interface Flow
      • getTos

        public Integer getTos()
        Description copied from interface: Flow
        TOS.
        Specified by:
        getTos in interface Flow
      • getVlan

        public Integer getVlan()
        Description copied from interface: Flow
        VLAN ID.
        Specified by:
        getVlan in interface Flow
      • getNodeIdentifier

        public String getNodeIdentifier()
        Description copied from interface: Flow
        Method to get node lookup identifier. This field can be used as an alternate means to identify the exporter node when the source address of the packets are altered due to address translation. * @return the identifier
        Specified by:
        getNodeIdentifier in interface Flow