-
Notifications
You must be signed in to change notification settings - Fork 87
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
kennyazrina
wants to merge
18
commits into
yudis:master
Choose a base branch
from
TimoOenjoe5:master
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Timotius Kevin Levandi 13510056
Kania Azrina 13510058
Martha Monica 13510080