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
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 a Long value.

    1-byte encoding for a Long value.

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

    Permalink

    1-byte encoding for an Int value.

    1-byte encoding for an Int value.

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

    Permalink

    1-byte encoding for a Short value.

    1-byte encoding for a Short value.

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

    Permalink

    1-byte encoding for a Byte value.

    1-byte encoding for a Byte value.

    Attributes
    protected
    Definition Classes
    Encoded
  9. 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
  10. final def b2(v: Long): Iterator[Byte]

    Permalink

    2-byte encoding for a Long value.

    2-byte encoding for a Long value.

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

    Permalink

    2-byte encoding for an Int value.

    2-byte encoding for an Int value.

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

    Permalink

    2-byte encoding for a Short value.

    2-byte encoding for a Short value.

    Attributes
    protected
    Definition Classes
    Encoded
  13. 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
  14. final def b4(v: Long): Iterator[Byte]

    Permalink

    4-byte encoding for a Long value.

    4-byte encoding for a Long value.

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

    Permalink

    4-byte encoding for an Int value.

    4-byte encoding for an Int value.

    Attributes
    protected
    Definition Classes
    Encoded
  16. 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
  17. final def b8(v: Long): Iterator[Byte]

    Permalink

    8-byte encoding for a Long value.

    8-byte encoding for a Long value.

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

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  19. 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
  20. 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
  21. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  22. val exportTime: Long

    Permalink
  23. def finalize(): Unit

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

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

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

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

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

    Permalink
    Definition Classes
    AnyRef
  29. val observationDomainId: Long

    Permalink
  30. val sequenceNumber: Long

    Permalink
  31. val sets: Set[Rec]*

    Permalink
  32. def setsBytes: Iterator[Byte]

    Permalink
  33. def setsLength: Int

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

    Permalink
    Definition Classes
    AnyRef
  35. val versionNumber: Int

    Permalink
  36. final def wait(): Unit

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  38. 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