Packages

final class Template extends AnyRef

An IPFIX template that describes the data in a Record.

A template is composed of a sequence of information elements with associated lengths. (The IEFieldSpecifier class bundles the InfoElement and length into a single object.) An element's length in the template may be different than the "natural" length (reduced length encoding), and an element that supports variable-length values may have a fixed size.

If a template has a non-zero scope, the template is an Options Template.

When a Template is added to a Session it is given a unique ID within that Session. A Template may be added to multiple Sessions; there is not necessarily a relationship among the IDs given to a Template in the different Sessions.

Since

1.3.1 The description is set and fixed at Template creation.

Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Template
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. def apply(idx: Int): InfoElement

    Returns the InfoElement at position idx.

  5. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  6. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native()
  7. def contains(infoElement: InfoElement): Boolean

    Returns true if this Template contains the given InfoElement.

    Returns true if this Template contains the given InfoElement.

    Since

    1.3.1

  8. def contains(spec: FieldSpec): Boolean

    Returns true if this Template contains an element that matches the given field specifier.

    Returns true if this Template contains an element that matches the given field specifier.

    Since

    1.3.1

  9. def containsAny(ieIterable: Iterable[InfoElement]): Boolean

    Returns true if this Template contains *any* of the InfoElements in ieIterable.

    Returns true if this Template contains *any* of the InfoElements in ieIterable.

    Since

    1.3.1

  10. lazy val containsList: Boolean

    Indicates whether the template contains at least one structured data element (that is, a BasicList, SubTemplateList, or SubTemplateMultiList).

  11. lazy val containsVarlen: Boolean

    Indicates whether the template contains at least one variable-length element.

  12. val description: Option[String]
  13. def elementLength(idx: Int): Int

    Returns the length of the element at position idx as specified by the IEFieldSpecifier.

  14. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  15. def equals(other: Any): Boolean

    Determines whether two templates are equal.

    Determines whether two templates are equal. To be equal, two templates must have the same scope, the same set of elements, the same element order, and all elements must have the same length.

    Definition Classes
    Template → AnyRef → Any
  16. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable])
  17. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  18. def hasSameElements(that: Template): Boolean

    Determines if two templates have the same set of elements in the same order with the same lengths.

    Determines if two templates have the same set of elements in the same order with the same lengths. This method is similar to equals() but it does not consider the scope.

  19. def hashCode(): Int
    Definition Classes
    Template → AnyRef → Any
  20. def indexOf(infoElement: InfoElement): Int

    Returns the position of the first occurrence of the given information element in this Template or returns -1 if the element is not found.

  21. def indexOf(infoElement: InfoElement, from: Int): Int

    Returns the position of the given information element in this template occurring at or after from or returns -1 if the element is not found.

  22. def indexOf(spec: FieldSpec): Int

    Returns the position of the InfoElement in this Template that matches the given field specifier or returns -1 if the element is not found.

  23. lazy val isInfoElementMetadataTemplate: Boolean

    Returns true if this Template is an information element meta-data template.

    Returns true if this Template is an information element meta-data template.

    An information element meta-data template is used to by records to provide the name, ID, data-type, units, semantics, and range of an information element that is not part of the standard information model. Specifically, the method tests whether the elements informationElementId and informationElementName are present.

  24. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  25. lazy val isMetadataTemplate: Boolean

    Returns true if this Template is a meta-data template.

    Returns true if this Template is a meta-data template.

    A meta-data template is used to by records that describe an information element or a template.

  26. lazy val isOptionsTemplate: Boolean

    Returns true if this Template is an options template.

    Returns true if this Template is an options template.

    An options template is one whose scope is non-zero.

  27. lazy val isTemplateMetadataTemplate: Boolean

    Returns true if this Template is a template meta-data template.

    Returns true if this Template is a template meta-data template.

    A template meta-data template is used to by records to provide a name and an optional description to a template. Specifically, the method tests whether the elements templateId and templateName are present.

  28. lazy val isWithdrawalTemplate: Boolean

    Returns true if this Template is a withdrawal template.

    Returns true if this Template is a withdrawal template.

    A withdrawal template is one that contains no elements.

  29. def iterator: Iterator[(InfoElement, Int)]

    Returns an iterator over the elements in the Template.

    Returns an iterator over the elements in the Template. Each iteration returns a Tuple2 containing an InfoElement and its length in this Template.

  30. val minimumLength: Int

    Gives the number of octets required to hold the shortest record described by this Template.

  31. val name: Option[String]
  32. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  33. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  34. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  35. def octetLength: Int

    Returns the number of octets required to write this template definition to an IPFIX stream.

    Returns the number of octets required to write this template definition to an IPFIX stream.

    See also

    minimumLength for the mininum length of a record that uses this template.

  36. val scope: Int
  37. val size: Int

    Returns the number of elements in this Template.

  38. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  39. def toBuffer(outbuf: ByteBuffer, session: Session): ByteBuffer

    Appends the Template to a buffer for writing to an IPFIX stream.

    Appends the Template to a buffer for writing to an IPFIX stream. Adds the Template to the Session if necessary.

    Exceptions thrown

    java.nio.BufferOverflowException if there is not enough room in the buffer for the Template. Because the method makes multiple writes to the buffer, the buffer's position is unknown if an error is thrown.

  40. def toString(expandIEs: Boolean): String

    Returns a String describing this Template.

    Returns a String describing this Template. If expandIEs is false, includes only the name and element length for each IE in the Template (like toString()). If expandIEs is true, includes a complete description of each IE (including its type, ID, etc).

  41. def toString(): String
    Definition Classes
    Template → AnyRef → Any
  42. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  43. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  44. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()

Inherited from AnyRef

Inherited from Any

Ungrouped