Class/Object

org.cert.netsa.io.ipfix.testing

Message

Related Docs: object Message | package testing

Permalink

case class Message(sets: Set[Rec]*) extends Encoded with Product with Serializable

An IPFIX standard message. Contains a sequence of IPFIX record sets of various types. Observation Domain ID is always set to 1 for now. Export Time is set to the current time. Sequence Number is allocated in increasing order automatically.

Here's an example message: Message( Set.Template( Rec.Template(0x1001, FieldSpecifier(4, 1), // protocolSpecifier, unsigned8 FieldSpecifier(85, 8) // octetTotalCount, unsigned64 ) ), Set.Data(0x1001, // template described above Rec.Data( 6.toByte, // TCP protocol number (byte) 1234567L // 1,234,567 bytes in TCP (long) ), Rec.Data( 17.toByte, // UDP protocol number (byte) 9876L // 9,876 bytes in UDP (long) ) ) )

This does absolutely minimal checking of what's put into the messages, in order to allow testing of malformed messages, messages discouraged by the standard but still allowed, and the like. It's not meant to be the most convenient thing ever, just convenient enough to quickly describe and generate a variety of IPFIX messages for testing.

Linear Supertypes
Serializable, Serializable, Product, Equals, Encoded, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Message
  2. Serializable
  3. Serializable
  4. Product
  5. Equals
  6. Encoded
  7. AnyRef
  8. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new Message(sets: Set[Rec]*)

    Permalink

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  5. final def b1(v: Long): Iterator[Byte]

    Permalink

    1-byte encoding for an integral value.

    1-byte encoding for an integral value.

    Attributes
    protected
    Definition Classes
    Encoded
  6. final def b1(v: Boolean): Iterator[Byte]

    Permalink

    1-byte encoding for a Boolean value.

    1-byte encoding for a Boolean value. Yes, 1 = true, 2 = false.

    Attributes
    protected
    Definition Classes
    Encoded
  7. final def b2(v: Long): Iterator[Byte]

    Permalink

    2-byte encoding for an itegral value.

    2-byte encoding for an itegral value.

    Attributes
    protected
    Definition Classes
    Encoded
  8. final def b4(v: Float): Iterator[Byte]

    Permalink

    4-byte encoding for a floating-point value.

    4-byte encoding for a floating-point value.

    Attributes
    protected
    Definition Classes
    Encoded
  9. final def b4(v: Long): Iterator[Byte]

    Permalink

    4-byte encoding for an integral value.

    4-byte encoding for an integral value.

    Attributes
    protected
    Definition Classes
    Encoded
  10. final def b8(v: Double): Iterator[Byte]

    Permalink

    8-byte encoding for a floating-point value.

    8-byte encoding for a floating-point value.

    Attributes
    protected
    Definition Classes
    Encoded
  11. final def b8(v: Long): Iterator[Byte]

    Permalink

    8-byte encoding for an integral value.

    8-byte encoding for an integral value.

    Attributes
    protected
    Definition Classes
    Encoded
  12. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  13. def encodedBytes: Iterator[Byte]

    Permalink

    The bytes in the encoded form of the value.

    The bytes in the encoded form of the value.

    Definition Classes
    MessageEncoded
  14. def encodedLength: Int

    Permalink

    The length in bytes of the encoded form of the value.

    The length in bytes of the encoded form of the value.

    Definition Classes
    MessageEncoded
  15. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  16. val exportTime: Long

    Permalink
  17. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  18. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  19. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  20. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  21. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  22. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  23. val observationDomainId: Long

    Permalink
  24. val sequenceNumber: Long

    Permalink
  25. val sets: Set[Rec]*

    Permalink
  26. def setsBytes: Iterator[Byte]

    Permalink
  27. def setsLength: Int

    Permalink
  28. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  29. val versionNumber: Int

    Permalink
  30. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  31. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  32. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from Serializable

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from Encoded

Inherited from AnyRef

Inherited from Any

Ungrouped