Graham
98dcbedeaf
Sort install() calls in ArchiveModule
...
Signed-off-by: Graham <gpe@openrs2.org>
3 years ago
Graham
4fa67c37fc
Improve code for merging an old and new master index together
...
Signed-off-by: Graham <gpe@openrs2.org>
3 years ago
Graham
a19a69b21e
Add name and description to the master_indexes table
...
Signed-off-by: Graham <gpe@openrs2.org>
3 years ago
Graham
47127113f4
Add initial archiving service web interface
...
Signed-off-by: Graham <gpe@openrs2.org>
3 years ago
Graham
6e9ba80d0c
Rename dev.openrs2.net to org.openrs2.net
...
Signed-off-by: Graham <gpe@openrs2.org>
3 years ago
Graham
a3593e9326
Rename master_index_entries to master_index_archives
...
This naming is a bit more consistent with the index_groups and
index_files tables.
Signed-off-by: Graham <gpe@openrs2.org>
3 years ago
Graham
4ba78e26b9
Create .idx files for empty indexes
...
Signed-off-by: Graham <gpe@openrs2.org>
3 years ago
Graham
273f7eddf8
Use a CTE to reduce duplication in CacheExporter
...
Signed-off-by: Graham <gpe@openrs2.org>
3 years ago
Graham
9834dccfdd
Add indexes to the groups table
...
This will reduce the impact of checksum/version collisions, as a
collision would have to happen between two indexes of the same archive
rather than any two indexes.
Signed-off-by: Graham <gpe@openrs2.org>
3 years ago
Graham
723bd42a8e
Simplify encrypted flag in the Container class
...
Signed-off-by: Graham <gpe@openrs2.org>
3 years ago
Graham
6a87159f30
Add lengths and uncompressed checksum to index_groups
...
Signed-off-by: Graham <gpe@openrs2.org>
3 years ago
Graham
77e227c93d
Store game, build and timestamp in the master index table
...
Signed-off-by: Graham <gpe@openrs2.org>
3 years ago
Graham
f3ea8e71fe
Rename version to build
...
Signed-off-by: Graham <gpe@openrs2.org>
3 years ago
Graham
689c315bf3
Track current build number automatically
...
Signed-off-by: Graham <gpe@openrs2.org>
3 years ago
Graham
fdd0f118f2
Add logging to Js5ChannelHandler
...
Signed-off-by: Graham <gpe@openrs2.org>
3 years ago
Graham
d67a5e690f
Add request() method
...
Signed-off-by: Graham <gpe@openrs2.org>
3 years ago
Graham
80a8889106
Call read() if there is any existing in-flight request
...
This fixes the downloader getting stuck if there's a particularly large
file, such that we've read all the current inbound data but haven't sent
a new request yet as we still have 200 in-flight.
Signed-off-by: Graham <gpe@openrs2.org>
3 years ago
Graham
435a8b4eff
Validate checksums in the JS5 client
...
Signed-off-by: Graham <gpe@openrs2.org>
3 years ago
Graham
0f939935cd
Skip flush/read calls if no writes are made
...
Signed-off-by: Graham <gpe@openrs2.org>
3 years ago
Graham
e0a9bc3ca6
Rename suspend to awaitSuspend
...
Ideally I'd like to just call this await, but it conflicts with an
existing method.
Signed-off-by: Graham <gpe@openrs2.org>
3 years ago
Graham
29ac56fe1e
Replace flushRequests() with channelReadComplete()
...
Signed-off-by: Graham <gpe@openrs2.org>
3 years ago
Graham
f87d89fe7c
Add initial command for downloading the cache from a JS5 server
...
Signed-off-by: Graham <gpe@openrs2.org>
3 years ago
Graham
95108126f1
Skip addMasterIndex/addIndex if the index already exists
...
Signed-off-by: Graham <gpe@openrs2.org>
3 years ago
Graham
fff63285fe
Re-combine CacheImporter and ContainerImporter
...
Signed-off-by: Graham <gpe@openrs2.org>
3 years ago
Graham
4e90bd76b5
Remove the cache and cache_index tables
...
These effectively duplicate the master index tables, but in a less
flexible manner - as they don't support importing a master index where
some of the indexes are missing.
This commit also combines MasterIndexImporter with CacheImporter, to
make it easier to re-use code.
Signed-off-by: Graham <gpe@openrs2.org>
3 years ago
Graham
30b605d719
Store master indexes in the database
...
I have a small collection of these from when I ran a service that polled
the JS5 server for the master index back in 2009. We'll probably be able
to find some in old Rune-Server threads too.
They'll be useful for verifying caches with an unclear provenance.
Signed-off-by: Graham <gpe@openrs2.org>
3 years ago
Graham
f2400117fd
Fix typo (are -> area)
...
Signed-off-by: Graham <gpe@openrs2.org>
4 years ago
Graham
fc1af29bdf
Make BATCH_SIZE const
...
Signed-off-by: Graham <gpe@openrs2.org>
4 years ago
Graham
f143eef142
Move Kotlin files from src/{main,test}/java to src/{main,test}/kotlin
...
Signed-off-by: Graham <gpe@openrs2.org>
4 years ago