Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tugas Besar V IF3038 Pemrograman Internet #74

Open
wants to merge 18 commits into
base: master
Choose a base branch
from

Conversation

kennyazrina
Copy link

Timotius Kevin Levandi 13510056
Kania Azrina 13510058
Martha Monica 13510080

Chlorophyne and others added 18 commits May 18, 2013 17:01
Note : change database name, user, and password to fit yours
- Method to connect to database is separated to Database class
- evict JDBC jar from JDBC folder and delete the rest of its content
- Create thread to ask if there's any update every 1 second
…n for further comparison when synchronizing

TODO: write lastUpdate to user upon logout and bad disconnecting...
- Make lastUpdate in server static so every instance of Server that handles different client has the same value of lastUpdate
1. login, bila sukses ke 2
2. ambil semua data dari log yang > lastupdate, kirim
3. bandingkan semua data yang dikirim dg timestamp tugas2 tsb di db
4. bila timestamp log > timestamp db, overwrite db
5. bila sudah, iterasi semua timestamp tugas punya si user
6. ambil timestamp paling besar, update lastupdate si user di db
7. kirim ke client supaya lastupdate nya bisa diubah juga
8. ambil semua task si user sekarang yang sudah uptodate, kirim ke Client (belum di parse)
9. thread.. ini belum
Detail yang udah bisa:
-login, logout
- check, uncheck sudah mengubah lastupdate di kedua pihak --> server dan client yg bersangkutan
- aksi check, uncheck sudah dituliskan ke log.txt
- sinkronisasi otomatis sudah dilakukan jika ada dua client yang share tugas sama dan salah satu klien melakukan update thd status task tsb
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants