Packages

c

org.cert.netsa.io.ipfix

SessionGroup

final case class SessionGroup(infoModel: InfoModel, transport: AnyRef, streamSessions: Boolean = true) extends Product with Serializable

A SessionGroup maintains a set of Sessions for a single transport session. Put more carefully, it maintains a group of sessions that can be distinguished solely by an observation domain identifier.

A SessionGroup is created to create either StreamSessions or DatagramSessions. A StreamSession is used when reading data from files or over TCP; it supports template withdrawal and re-use of a template ID raises an exception. A DatagramSession is used when reading data over UDP; it does not support template withdrawal and re-use of template IDs is permitted.

transport is an object may be used to describe the transport, such as an InetSocketAddress for network transports or a Path for a file transport. It may be null. The SessionGroup does not use this parameter, and the caller may use it however it chooses.

Creates a session group. Each new session in the group will be created using the given session factory.

infoModel

the information model

transport

an object that describes the transport of the transport session. It will be an InetSocketAddress for network transports, or a Path for a file transport. May be null.

streamSessions

true when the group is used to read data from a file or over TCP (creates a StreamSession), and false for reading data over UDP (creates a DatagramSession).

Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. SessionGroup
  2. Serializable
  3. Product
  4. Equals
  5. AnyRef
  6. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new SessionGroup(infoModel: InfoModel, transport: AnyRef, streamSessions: Boolean = true)

    infoModel

    the information model

    transport

    an object that describes the transport of the transport session. It will be an InetSocketAddress for network transports, or a Path for a file transport. May be null.

    streamSessions

    true when the group is used to read data from a file or over TCP (creates a StreamSession), and false for reading data over UDP (creates a DatagramSession).

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. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native()
  6. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  7. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable])
  8. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  9. def getOrCreateSession(domain: Int): Session

    Retrieves a session from the group.

    Retrieves a session from the group. If a session with the given domain is not found, creates it, adds it, and returns the new session.

    domain

    an observation domain identifier

    returns

    the session associated with the domain

  10. def getSession(domain: Int): Option[Session]

    Retrieves a session from the group as an Option.

    Retrieves a session from the group as an Option.

    domain

    an observation domain identifier

    returns

    the session associated with the domain, or None if there is no such session

  11. def hasSession(domain: Int): Boolean

    Determines whether group is maintaining a session matching the given domain.

    Determines whether group is maintaining a session matching the given domain.

    domain

    an observation domain identifier

    returns

    true if this group has a session for the domain

  12. val infoModel: InfoModel
  13. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  14. def iterator: Iterator[Session]

    Returns an iterator over the Sessions in the SessionGroup.

  15. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  16. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  17. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  18. def productElementNames: Iterator[String]
    Definition Classes
    Product
  19. def register(callback: TemplateCallback): Unit

    Registers a new template callback.

    Registers a new template callback.

    A session group may have any number of callbacks registered to it. Each registered callback is added to new sessions created by this session group.

    callback

    the template callback

  20. def retireSession(domain: Int): Boolean

    Removes a session from the group.

    Removes a session from the group.

    domain

    an observation domain identifier

    returns

    true if the group previously contained a session for the domain

  21. val streamSessions: Boolean
  22. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  23. val transport: AnyRef
  24. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  25. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  26. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from AnyRef

Inherited from Any

Ungrouped