java.lang.Object
org.codice.alliance.video.stream.mpegts.klv.KlvService
All Implemented Interfaces:
KlvConsumer, KlvStreamService

public class KlvService extends Object implements KlvConsumer, KlvStreamService
  • Constructor Details

    • KlvService

      public KlvService()
  • Method Details

    • postKlvForStream

      public void postKlvForStream(KlvData klvData)
      Description copied from interface: KlvConsumer
      Post video stream klv data
      Specified by:
      postKlvForStream in interface KlvConsumer
      Parameters:
      klvData - The klv data to post
    • getStreamsKlvByParam

      public Collection<KlvData> getStreamsKlvByParam(String key, String value)
      Description copied from interface: KlvStreamService
      Get the current klv data mappings associated with the given parent id.
      Specified by:
      getStreamsKlvByParam in interface KlvStreamService
      Parameters:
      key - the klv properties key
      value - the klv property value to filter on
      Returns:
      The current klv data the streams with matching key/value. Will return an empty collection if no klv has been reported recently for the parameters.
    • getAllStreamsKlvByParent

      public Map<String,KlvData> getAllStreamsKlvByParent()
      Description copied from interface: KlvStreamService
      Get the current klv data mappings organized by parent stream id.
      Specified by:
      getAllStreamsKlvByParent in interface KlvStreamService
      Returns:
      The current klv data map for the stream. Will return an empty map if no klv has been reported recently for any streams.
    • getAllStreamsKlvWithParam

      public Collection<KlvData> getAllStreamsKlvWithParam(String key)
      Description copied from interface: KlvStreamService
      Get the collection of all active streams with klv data that have the given key defined in their properties.
      Specified by:
      getAllStreamsKlvWithParam in interface KlvStreamService
      Returns:
      A map of klv data maps by the passed in key