crss-meterprocess-stream-source-daily-raw.yml 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. #daily extract
  2. spring:
  3. profiles: dailyExtract
  4. datasource:
  5. driver-class-name: com.edb.Driver
  6. connectionTimeout: 150000
  7. maximumPoolSize: 3
  8. test-on-borrow: true
  9. validation-query: SELECT 1
  10. cloud:
  11. stream:
  12. bindings:
  13. output:
  14. content-type: application/json
  15. jdbc:
  16. query: "select * from metering.txn_meter_data_daily where consumed <> TRUE or consumed is null limit 10000;"
  17. update: "update metering.txn_meter_data_daily set consumed = TRUE where meter_data_id in (:meter_data_id);"
  18. trigger:
  19. fixed-delay: 5
  20. time-unit: SECONDS
  21. logging:
  22. level:
  23. com.pemc: DEBUG
  24. ---
  25. #Monthly extract
  26. spring:
  27. profiles: monthlyExtract
  28. datasource:
  29. driver-class-name: com.edb.Driver
  30. maximumPoolSize: 2
  31. test-on-borrow: true
  32. validation-query: SELECT 1
  33. cloud:
  34. stream:
  35. bindings:
  36. output:
  37. content-type: application/json
  38. jdbc:
  39. query: "select * from metering.txn_meter_data_monthly where consumed <> TRUE or consumed is null limit 10000;"
  40. update: "update metering.txn_meter_data_monthly set consumed = TRUE where meter_data_id in (:meter_data_id);"
  41. trigger:
  42. fixed-delay: 5
  43. time-unit: SECONDS
  44. logging:
  45. level:
  46. com.pemc: DEBUG
  47. ---
  48. # default
  49. spring:
  50. datasource:
  51. driver-class-name: com.edb.Driver
  52. maximumPoolSize: 2
  53. test-on-borrow: true
  54. validation-query: SELECT 1
  55. cloud:
  56. stream:
  57. bindings:
  58. output:
  59. content-type: application/json
  60. jdbc:
  61. query: "select * from metering.txn_meter_data_monthly where consumed <> TRUE or consumed is null limit 10000;"
  62. update: "update metering.txn_meter_data_monthly set consumed = TRUE where meter_data_id in (:meter_data_id);"
  63. trigger:
  64. fixed-delay: 5
  65. time-unit: SECONDS
  66. logging:
  67. level:
  68. com.pemc: DEBUG