Răsfoiți Sursa

Add crss-meterprocess-stream-source-daily-raw configurations

Monte Cillo Co 8 ani în urmă
părinte
comite
627e0c58bd

+ 86 - 0
crss-meterprocess-stream-source-daily-raw/application-dev.yml

@@ -0,0 +1,86 @@
+#daily extract
+spring:
+  profiles: dailyExtract
+  datasource:
+    driver-class-name: org.postgresql.Driver
+    password: password
+    username: admin
+    url: jdbc:postgresql://192.168.236.2:5432/crss_metering
+    maxPoolSize: 5
+    test-on-borrow: true
+    validation-query: SELECT 1
+  cloud:
+    stream:
+      bindings:
+        output:
+          content-type: application/json
+jdbc:
+  query: "select * from txn_meter_data_daily where consumed <> TRUE or consumed is null limit 10000;"
+  update: "update txn_meter_data_daily set consumed = TRUE where meter_data_id in (:meter_data_id);"
+
+trigger:
+  fixed-delay: 5
+  time-unit: SECONDS
+
+logging:
+  level:
+    com.pemc: DEBUG
+
+---
+
+#Monthly extract
+spring:
+  profiles: monthlyExtract
+  datasource:
+    driver-class-name: org.postgresql.Driver
+    password: password
+    username: admin
+    url: jdbc:postgresql://192.168.236.2:5432/crss_metering
+    maxPoolSize: 5
+    test-on-borrow: true
+    validation-query: SELECT 1
+  cloud:
+    stream:
+      bindings:
+        output:
+          content-type: application/json
+jdbc:
+  query: "select * from txn_meter_data_monthly where consumed <> TRUE or consumed is null limit 10000;"
+  update: "update txn_meter_data_monthly set consumed = TRUE where meter_data_id in (:meter_data_id);"
+
+trigger:
+  fixed-delay: 5
+  time-unit: SECONDS
+
+logging:
+  level:
+    com.pemc: DEBUG
+
+---
+
+# default
+spring:
+  datasource:
+    driver-class-name: org.postgresql.Driver
+    password: password
+    username: admin
+    url: jdbc:postgresql://192.168.236.2:5432/crss_metering
+    maxPoolSize: 5
+    test-on-borrow: true
+    validation-query: SELECT 1
+  cloud:
+    stream:
+      bindings:
+        output:
+          content-type: application/json
+jdbc:
+  query: "select * from txn_meter_data_monthly where consumed <> TRUE or consumed is null limit 10000;"
+  update: "update txn_meter_data_monthly set consumed = TRUE where meter_data_id in (:meter_data_id);"
+
+trigger:
+  fixed-delay: 5
+  time-unit: SECONDS
+
+logging:
+  level:
+    com.pemc: DEBUG

+ 86 - 0
crss-meterprocess-stream-source-daily-raw/application-dev2.yml

@@ -0,0 +1,86 @@
+#daily extract
+spring:
+  profiles: dailyExtract
+  datasource:
+    driver-class-name: org.postgresql.Driver
+    password: crss_metering
+    username: crss_metering
+    url: jdbc:postgresql://192.168.233.9:5432/crss_metering
+    maxPoolSize: 5
+    test-on-borrow: true
+    validation-query: SELECT 1
+  cloud:
+    stream:
+      bindings:
+        output:
+          content-type: application/json
+jdbc:
+  query: "select * from txn_meter_data_daily where consumed <> TRUE or consumed is null limit 10000;"
+  update: "update txn_meter_data_daily set consumed = TRUE where meter_data_id in (:meter_data_id);"
+
+trigger:
+  fixed-delay: 5
+  time-unit: SECONDS
+
+logging:
+  level:
+    com.pemc: DEBUG
+
+---
+
+#Monthly extract
+spring:
+  profiles: monthlyExtract
+  datasource:
+    driver-class-name: org.postgresql.Driver
+    password: crss_metering
+    username: crss_metering
+    url: jdbc:postgresql://192.168.233.9:5432/crss_metering
+    maxPoolSize: 5
+    test-on-borrow: true
+    validation-query: SELECT 1
+  cloud:
+    stream:
+      bindings:
+        output:
+          content-type: application/json
+jdbc:
+  query: "select * from txn_meter_data_monthly where consumed <> TRUE or consumed is null limit 10000;"
+  update: "update txn_meter_data_monthly set consumed = TRUE where meter_data_id in (:meter_data_id);"
+
+trigger:
+  fixed-delay: 5
+  time-unit: SECONDS
+
+logging:
+  level:
+    com.pemc: DEBUG
+
+---
+
+# default
+spring:
+  datasource:
+    driver-class-name: org.postgresql.Driver
+    password: crss_metering
+    username: crss_metering
+    url: jdbc:postgresql://192.168.233.9:5432/crss_metering
+    maxPoolSize: 5
+    test-on-borrow: true
+    validation-query: SELECT 1
+  cloud:
+    stream:
+      bindings:
+        output:
+          content-type: application/json
+jdbc:
+  query: "select * from txn_meter_data_monthly where consumed <> TRUE or consumed is null limit 10000;"
+  update: "update txn_meter_data_monthly set consumed = TRUE where meter_data_id in (:meter_data_id);"
+
+trigger:
+  fixed-delay: 5
+  time-unit: SECONDS
+
+logging:
+  level:
+    com.pemc: DEBUG

+ 88 - 0
crss-meterprocess-stream-source-daily-raw/application-devoracle.yml

@@ -0,0 +1,88 @@
+#daily extract
+spring:
+  profiles: dailyExtract
+  datasource:
+    driver-class-name: oracle.jdbc.driver.OracleDriver
+    password: crss
+    username: crss_meterprocess_metering
+    url: jdbc:oracle:thin:@192.168.235.6:1521:ORCL
+  cloud:
+    stream:
+      bindings:
+        output:
+          content-type: application/json
+jdbc:
+  max-rows-per-poll: 1
+  query: "select * from txn_meter_data_daily where consumed <> 'Y' or consumed is null or consumed = ''"
+  split: true
+  update: "update txn_meter_data_daily set consumed = 'Y' where meter_data_id in (:meter_data_id)"
+
+trigger:
+#  cron: '0/1 * * * * ?'
+#  date-format: 'MM/dd/yyyy'
+  fixed-delay: 100
+  initial-delay: 100
+  max-messages: 1
+  time-unit: MILLISECONDS
+
+
+logging:
+  level:
+    org.springframework: DEBUG
+
+---
+
+#Monthly extract
+spring:
+  profiles: monthlyExtract
+  datasource:
+    driver-class-name: oracle.jdbc.driver.OracleDriver
+    password: crss
+    username: crss_meterprocess_metering
+    url: jdbc:oracle:thin:@192.168.235.6:1521:ORCL
+  cloud:
+    stream:
+      bindings:
+        output:
+          content-type: application/json
+jdbc:
+  max-rows-per-poll: 1
+  query: "select * from txn_meter_data_monthly where consumed <> 'Y' or consumed is null or consumed = ''"
+  split: true
+  update: "update txn_meter_data_monthly set consumed = 'Y' where meter_data_id in (:meter_data_id)"
+
+trigger:
+#  cron: '0/1 * * * * ?'
+#  date-format: 'MM/dd/yyyy'
+  fixed-delay: 100
+  initial-delay: 100
+  max-messages: 1
+  time-unit: MILLISECONDS
+
+---
+
+# default
+spring:
+  datasource:
+    driver-class-name: oracle.jdbc.driver.OracleDriver
+    password: crss
+    username: crss_meterprocess_metering
+    url: jdbc:oracle:thin:@192.168.235.6:1521:ORCL
+  cloud:
+    stream:
+      bindings:
+        output:
+          content-type: application/json
+jdbc:
+  max-rows-per-poll: 1
+  query: "select * from txn_meter_data_monthly where consumed <> 'Y' or consumed is null or consumed = ''"
+  split: true
+  update: "update txn_meter_data_monthly set consumed = 'Y' where meter_data_id in (:meter_data_id)"
+
+trigger:
+#  cron: '0/1 * * * * ?'
+#  date-format: 'MM/dd/yyyy'
+  fixed-delay: 100
+  initial-delay: 100
+  max-messages: 1
+  time-unit: MILLISECONDS

+ 86 - 0
crss-meterprocess-stream-source-daily-raw/application-qa.yml

@@ -0,0 +1,86 @@
+#daily extract
+spring:
+  profiles: dailyExtract
+  datasource:
+    driver-class-name: org.postgresql.Driver
+    password: password
+    username: admin
+    url: jdbc:postgresql://postgresql.marathon.l4lb.thisdcos.directory:5432/crss_metering
+    maxPoolSize: 5
+    test-on-borrow: true
+    validation-query: SELECT 1
+  cloud:
+    stream:
+      bindings:
+        output:
+          content-type: application/json
+jdbc:
+  query: "select * from txn_meter_data_daily where consumed <> TRUE or consumed is null limit 10000;"
+  update: "update txn_meter_data_daily set consumed = TRUE where meter_data_id in (:meter_data_id);"
+
+trigger:
+  fixed-delay: 5
+  time-unit: SECONDS
+
+logging:
+  level:
+    com.pemc: DEBUG
+
+---
+
+#Monthly extract
+spring:
+  profiles: monthlyExtract
+  datasource:
+    driver-class-name: org.postgresql.Driver
+    password: password
+    username: admin
+    url: jdbc:postgresql://postgresql.marathon.l4lb.thisdcos.directory:5432/crss_metering
+    maxPoolSize: 5
+    test-on-borrow: true
+    validation-query: SELECT 1
+  cloud:
+    stream:
+      bindings:
+        output:
+          content-type: application/json
+jdbc:
+  query: "select * from txn_meter_data_monthly where consumed <> TRUE or consumed is null limit 10000;"
+  update: "update txn_meter_data_monthly set consumed = TRUE where meter_data_id in (:meter_data_id);"
+
+trigger:
+  fixed-delay: 5
+  time-unit: SECONDS
+
+logging:
+  level:
+    com.pemc: DEBUG
+
+---
+
+# default
+spring:
+  datasource:
+    driver-class-name: org.postgresql.Driver
+    password: password
+    username: admin
+    url: jdbc:postgresql://postgresql.marathon.l4lb.thisdcos.directory:5432/crss_metering
+    maxPoolSize: 5
+    test-on-borrow: true
+    validation-query: SELECT 1
+  cloud:
+    stream:
+      bindings:
+        output:
+          content-type: application/json
+jdbc:
+  query: "select * from txn_meter_data_monthly where consumed <> TRUE or consumed is null limit 10000;"
+  update: "update txn_meter_data_monthly set consumed = TRUE where meter_data_id in (:meter_data_id);"
+
+trigger:
+  fixed-delay: 5
+  time-unit: SECONDS
+
+logging:
+  level:
+    com.pemc: DEBUG

+ 61 - 0
crss-meterprocess-stream-source-daily-raw/application-qaoracle.yml

@@ -0,0 +1,61 @@
+#daily extract
+spring:
+  profiles: dailyExtract
+  datasource:
+    driver-class-name: oracle.jdbc.driver.OracleDriver
+    password: crss_metering
+    username: crss_metering
+    url: jdbc:oracle:thin:@10.64.0.4:1521:XE
+  cloud:
+    stream:
+      bindings:
+        output:
+          content-type: application/json
+jdbc:
+  max-rows-per-poll: 1
+  query: "select * from txn_meter_data_daily where consumed <> 'Y' or consumed is null or consumed = ''"
+  split: true
+  update: "update txn_meter_data_daily set consumed = 'Y' where meter_data_id in (:meter_data_id)"
+
+trigger:
+#  cron: '0/1 * * * * ?'
+#  date-format: 'MM/dd/yyyy'
+  fixed-delay: 100
+  initial-delay: 100
+  max-messages: 1
+  time-unit: MILLISECONDS
+
+
+logging:
+  level:
+    org.springframework: DEBUG
+
+---
+
+#Monthly extract
+spring:
+  profiles: monthlyExtract
+  datasource:
+    driver-class-name: oracle.jdbc.driver.OracleDriver
+    password: crss_metering
+    username: crss_metering
+    url: jdbc:oracle:thin:@10.64.0.4:1521:XE
+  cloud:
+    stream:
+      bindings:
+        output:
+          content-type: application/json
+jdbc:
+  max-rows-per-poll: 1
+  query: "select * from txn_meter_data_monthly where consumed <> 'Y' or consumed is null or consumed = ''"
+  split: true
+  update: "update txn_meter_data_monthly set consumed = 'Y' where meter_data_id in (:meter_data_id)"
+
+trigger:
+#  cron: '0/1 * * * * ?'
+#  date-format: 'MM/dd/yyyy'
+  fixed-delay: 100
+  initial-delay: 100
+  max-messages: 1
+  time-unit: MILLISECONDS
+

+ 86 - 0
crss-meterprocess-stream-source-daily-raw/application.yml

@@ -0,0 +1,86 @@
+#daily extract
+spring:
+  profiles: dailyExtract
+  datasource:
+    driver-class-name: org.postgresql.Driver
+    password: postgres
+    username: postgres
+    url: jdbc:postgresql://localhost:5432/crss_metering
+    maxPoolSize: 5
+    test-on-borrow: true
+    validation-query: SELECT 1
+  cloud:
+    stream:
+      bindings:
+        output:
+          content-type: application/json
+jdbc:
+  query: "select * from txn_meter_data_daily where consumed <> TRUE or consumed is null limit 10000;"
+  update: "update txn_meter_data_daily set consumed = TRUE where meter_data_id in (:meter_data_id);"
+
+trigger:
+  fixed-delay: 5
+  time-unit: SECONDS
+
+logging:
+  level:
+    com.pemc: DEBUG
+
+---
+
+#Monthly extract
+spring:
+  profiles: monthlyExtract
+  datasource:
+    driver-class-name: org.postgresql.Driver
+    password: postgres
+    username: postgres
+    url: jdbc:postgresql://localhost:5432/crss_metering
+    maxPoolSize: 5
+    test-on-borrow: true
+    validation-query: SELECT 1
+  cloud:
+    stream:
+      bindings:
+        output:
+          content-type: application/json
+jdbc:
+  query: "select * from txn_meter_data_monthly where consumed <> TRUE or consumed is null limit 10000;"
+  update: "update txn_meter_data_monthly set consumed = TRUE where meter_data_id in (:meter_data_id);"
+
+trigger:
+  fixed-delay: 5
+  time-unit: SECONDS
+
+logging:
+  level:
+    com.pemc: DEBUG
+
+---
+
+# default
+spring:
+  datasource:
+    driver-class-name: org.postgresql.Driver
+    password: postgres
+    username: postgres
+    url: jdbc:postgresql://localhost:5432/crss_metering
+    maxPoolSize: 5
+    test-on-borrow: true
+    validation-query: SELECT 1
+  cloud:
+    stream:
+      bindings:
+        output:
+          content-type: application/json
+jdbc:
+  query: "select * from txn_meter_data_monthly where consumed <> TRUE or consumed is null limit 10000;"
+  update: "update txn_meter_data_monthly set consumed = TRUE where meter_data_id in (:meter_data_id);"
+
+trigger:
+  fixed-delay: 5
+  time-unit: SECONDS
+
+logging:
+  level:
+    com.pemc: DEBUG