Advertisement
Guest User

Untitled

a guest
Jan 11th, 2016
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.60 KB | None | 0 0
  1. I would like to make sure that we are on the same page.
  2.  
  3. 1. It should be a desktop application that is constantly running in the background on different OS (Windows, Linux, MacOS) and starts automatically when the computer restarts.
  4.  
  5. 2. The application analyzes a configuration file in runtime.
  6.  
  7. 3. The configuration file should look like:
  8. [remoteDB]
  9. db_host = 52.32.152.34
  10. db_port = 8080
  11. db_user = root
  12. db_password = root
  13. db_name = mydatabase
  14. db_table = mytable
  15. db_type = oracle
  16.  
  17. [localDB]
  18. db_host = 127.0.0.1
  19. db_port = 80
  20. db_user = root
  21. db_password = root
  22. db_name = mylocaldatabase
  23. db_table = mylocaltable
  24. db_type = mysql
  25. db_table_columns = column1, column2, column3 //column names, that should be synchronized with remote database
  26.  
  27. 4. Check every 1 minute for new records in the local database, if there are new records it will synchronized to the remote database.
  28.  
  29.  
  30.  
  31. Database structures:
  32.  
  33. remote database:
  34. [mytable]
  35. -id [1,2,3]
  36. -column1 = [1,2,3]
  37. -column2 = [4,5,6]
  38. -column3 = [7,8,9]
  39. -column4 = [10,11,12]
  40.  
  41. local database:
  42. [mylocaltable]
  43. -id [1,2,3]
  44. -column1 = [1,2,3, 99]
  45. -column2 = [4,5,6, 98, 97]
  46. -column3 = [7,8,9, 96]
  47. -column4 = [10,11,12, 95, 94]
  48. -column5 = [13,14,15]
  49. -column6 = [16,17,18]
  50.  
  51.  
  52. According the configuration file we should get this result:
  53. [mytable]
  54. -id [1,2,3]
  55. -column1 = [1,2,3, 99]
  56. -column2 = [4,5,6, 98, 97]
  57. -column3 = [7,8,9, 96]
  58. -column4 = [10,11,12]
  59.  
  60. local database:
  61. [mylocaltable]
  62. -id [1,2,3]
  63. -column1 = [1,2,3, 99]
  64. -column2 = [4,5,6, 98, 97]
  65. -column3 = [7,8,9, 96]
  66. -column4 = [10,11,12, 95, 94]
  67. -column5 = [13,14,15]
  68. -column6 = [16,17,18]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement