You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@plc4x.apache.org by cd...@apache.org on 2019/03/17 10:41:26 UTC

[incubator-plc4x] branch develop updated (b04fb86 -> 70258eb)

This is an automated email from the ASF dual-hosted git repository.

cdutz pushed a change to branch develop
in repository https://gitbox.apache.org/repos/asf/incubator-plc4x.git.


    from b04fb86  Site fix for PLC4X-98 (thanks to Sebb for reporting).
     add 11d2b20  Necessary changes to make the (new) plc scraper driver agnostic: * The PlcField interface has a (default) method to return the expected java type (to know this upfront) * The PlcConnection interface has a new "parse()" method which allows to explicitly create a Field instance for a given type. * Integration of java-type into TriggeredScraper * Tested and added a TriggeredScraper for Modbus
     add 22d573e  Merge pull request #47 from apache/extend-Field-with-type-information
     new 70258eb  Merged GitHub and GitBox

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


Summary of changes:
 .../triggerhandler/TriggerConfiguration.java              | 15 ++++++---------
 1 file changed, 6 insertions(+), 9 deletions(-)


[incubator-plc4x] 01/01: Merged GitHub and GitBox

Posted by cd...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

cdutz pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/incubator-plc4x.git

commit 70258ebce081ef65fe6bcc95f21ea2857116d85c
Merge: b04fb86 22d573e
Author: Christofer Dutz <ch...@c-ware.de>
AuthorDate: Sun Mar 17 11:41:20 2019 +0100

    Merged GitHub and GitBox

 .../triggerhandler/TriggerConfiguration.java              | 15 ++++++---------
 1 file changed, 6 insertions(+), 9 deletions(-)

diff --cc plc4j/utils/scraper/src/main/java/org/apache/plc4x/java/scraper/triggeredscraper/triggerhandler/TriggerConfiguration.java
index a5cd508,9d89b6c..d373bbc
--- a/plc4j/utils/scraper/src/main/java/org/apache/plc4x/java/scraper/triggeredscraper/triggerhandler/TriggerConfiguration.java
+++ b/plc4j/utils/scraper/src/main/java/org/apache/plc4x/java/scraper/triggeredscraper/triggerhandler/TriggerConfiguration.java
@@@ -56,8 -53,8 +55,6 @@@ public class TriggerConfiguration
      private final Object compareValue;
      private final PlcField plcField;
  
--
--
      /**
       * default constructor when an S7Field should be used for triggering
       * @param triggerType type of trigger from enum
@@@ -78,9 -75,9 +75,10 @@@
          if(this.triggerType.equals(TriggerType.S7_TRIGGER_VAR)) {
              //test for valid field-connection string, on exception quit job and return message to user
              try {
++                // TODO: PLC4X-106 - Make the Scraper not depend on S7 directly
                  this.plcField = S7Field.of(triggerVariable);
              } catch (PlcInvalidFieldException e) {
-                 LOGGER.debug(e.getMessage(), e);
+                 logger.debug(e.getMessage(), e);
                  String exceptionMessage = String.format("Invalid trigger Field for Job %s: %s", triggeredScrapeJobImpl.getJobName(), triggerVariable);
                  throw new ScraperException(exceptionMessage);
              }
@@@ -112,7 -109,7 +110,6 @@@
          this.compareValue = null;
          this.plcField = null;
          this.comparatorType = null;
--
      }
  
      /**
@@@ -287,7 -284,6 +284,7 @@@
                  return Double.parseDouble(compareValue);
              }
              catch (Exception e){
-                 LOGGER.debug(e.getMessage(), e);
++                logger.debug(e.getMessage(), e);
                  String exceptionMessage = String.format("No valid compare Value at DataType Numeric for trigger for Job %s: %s",triggeredScrapeJobImpl.getJobName(),compareValue);
                  throw new ScraperException(exceptionMessage);
              }