|
|
@@ -2,10 +2,29 @@
|
|
|
spring:
|
|
|
profiles: dailyExtract
|
|
|
datasource:
|
|
|
- driver-class-name: org.postgresql.Driver
|
|
|
- password: crss_metering
|
|
|
+ url: jdbc:postgresql://192.168.233.9:5432/crss?currentSchema=metering
|
|
|
username: crss_metering
|
|
|
- url: jdbc:postgresql://192.168.233.9:5432/crss_metering
|
|
|
+ password: crss_metering
|
|
|
+ driver-class-name: org.postgresql.Driver
|
|
|
+ maxPoolSize: 5
|
|
|
+ test-on-borrow: true
|
|
|
+ validation-query: SELECT 1
|
|
|
+ cloud:
|
|
|
+ stream:
|
|
|
+ bindings:
|
|
|
+ output:
|
|
|
+ content-type: application/json
|
|
|
+jdbc:
|
|
|
+ query: "select * from metering.txn_meter_data_daily where consumed <> TRUE or consumed is null limit 10000;"
|
|
|
+ update: "update metering.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
|
|
|
|
|
|
---
|
|
|
|
|
|
@@ -13,17 +32,55 @@ spring:
|
|
|
spring:
|
|
|
profiles: monthlyExtract
|
|
|
datasource:
|
|
|
- driver-class-name: org.postgresql.Driver
|
|
|
- password: crss_metering
|
|
|
+ url: jdbc:postgresql://192.168.233.9:5432/crss?currentSchema=metering
|
|
|
username: crss_metering
|
|
|
- url: jdbc:postgresql://192.168.233.9:5432/crss_metering
|
|
|
+ password: crss_metering
|
|
|
+ driver-class-name: org.postgresql.Driver
|
|
|
+ maxPoolSize: 5
|
|
|
+ test-on-borrow: true
|
|
|
+ validation-query: SELECT 1
|
|
|
+ cloud:
|
|
|
+ stream:
|
|
|
+ bindings:
|
|
|
+ output:
|
|
|
+ content-type: application/json
|
|
|
+jdbc:
|
|
|
+ query: "select * from metering.txn_meter_data_monthly where consumed <> TRUE or consumed is null limit 10000;"
|
|
|
+ update: "update metering.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
|
|
|
+ url: jdbc:postgresql://192.168.233.9:5432/crss?currentSchema=metering
|
|
|
username: crss_metering
|
|
|
- url: jdbc:postgresql://192.168.233.9:5432/crss_metering
|
|
|
+ password: crss_metering
|
|
|
+ driver-class-name: org.postgresql.Driver
|
|
|
+ maxPoolSize: 5
|
|
|
+ test-on-borrow: true
|
|
|
+ validation-query: SELECT 1
|
|
|
+ cloud:
|
|
|
+ stream:
|
|
|
+ bindings:
|
|
|
+ output:
|
|
|
+ content-type: application/json
|
|
|
+jdbc:
|
|
|
+ query: "select * from metering.txn_meter_data_monthly where consumed <> TRUE or consumed is null limit 10000;"
|
|
|
+ update: "update metering.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
|