Uploaded image for project: 'Help-Desk'
  1. Help-Desk
  2. HELP-1332

FIWARE.Request.Tech.Data.CEP.Producer of type File

    Details

    • HD-Chapter:
      Data
    • HD-Enabler:
      CEP

      Description

      Hi,

      Responsible
      OneSource
      Description:
      Producer with type File doesn't detect new events added to file.
      Tested GE(s):
      Proton CEP GE
      Environment:
      Local

      Starting Proton CEP configured with a producer of type "File" only events
      already in the file, representing the resource, are processed. Adding new
      lines this file does not trigger new events being added to CEP engine. The
      property poolingInterval of this producer does not seem to trigger the
      detection of the new events. According to Proton Programmer Guide this
      Pooling Interval property is supposed to configure " the interval for two
      consecutive polls of the resource for updates". Is this the expected
      result, only process events already in the file before the Proton startup
      or should it detect new events appended to the file?

      In attachment I send the proton configuration I used for testing as well as
      the input event files. The path for the input files in the definition may
      need to adjusted according to the final path.
      For test I configured the definition file in attachment
      (CEPGE_Testing.json) as the default definition file in Proton.properties.
      Then launched Proton. The logs show the events already in the input files
      to be inserted into Proton, but if I add more lines and save the files,
      these new events are not inserted into Proton. I configured a Polling
      interval of 1000 (1 second).
      Proton was deployed into tomcat 7.0.26 running under Linux. I also tested
      the standalone J2SE version with the same results. The CEP was downloaded
      from Proton's github repo [0].

      Best regards,

      Pedro Alves

      pgalves@onesource.pt

      http://onesource.pt

      [0] https://github.com/ishkin/Proton

      _______________________________________________
      Fiware-tech-help mailing list
      Fiware-tech-help@lists.fi-ware.org
      https://lists.fi-ware.org/listinfo/fiware-tech-help

        Activity

        Hide
        TALI Fabiana Fournier added a comment -

        Thank you.
        The "file" adapter is for static files. The file adapters are intended for testing purposes mainly, so they are not for dynamically changing files.
        If you want to dynamically add events to Proton, you should use the dynamic REST producer.

        Show
        TALI Fabiana Fournier added a comment - Thank you. The "file" adapter is for static files. The file adapters are intended for testing purposes mainly, so they are not for dynamically changing files. If you want to dynamically add events to Proton, you should use the dynamic REST producer.
        Hide
        TALI Fabiana Fournier added a comment -

        This is the intended behavior

        Show
        TALI Fabiana Fournier added a comment - This is the intended behavior
        Hide
        pgalves Pedro Alves added a comment -

        Ok. Thank you.
        Maybe some remark could be added to the user's manual to make it more clear.

        Show
        pgalves Pedro Alves added a comment - Ok. Thank you. Maybe some remark could be added to the user's manual to make it more clear.

          People

          • Assignee:
            TALI Fabiana Fournier
            Reporter:
            pgalves Pedro Alves
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: