application-top.yml 1.9 KB

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