Commit Graph

3113 Commits

Author SHA1 Message Date
Rsl1122
edcd7bd53a Made KillsTable static information class:
- Made KillsTable constructor private
- Removed getter in SQLDB
2019-02-16 14:28:50 +02:00
Rsl1122
2d5f9254ed Made WorldTimesTable static information class:
- Made WorldTimesTable constructor private
- Removed getter in SQLDB
2019-02-16 14:28:49 +02:00
Rsl1122
038d0354a0 Removed unused Session Query 2019-02-16 14:28:48 +02:00
Rsl1122
adb2b865e1 Refactored many session fetch methods to queries:
- Sessions of a Server
- Sessions of a Player
- Flat sessions with kills and world data

Removed:
- KillsTable#addKillsToSessions(UUID uuid, Map<Integer, Session>)
- KillsTable#addDeathsToSessions(UUID uuid, Map<Integer, Session>)
- WorldTimesTable#addWorldTimesToSessions(UUID uuid, Map<Integer, Session> sessions)
- SessionsTable#getSessionInformation, #getSessions, #getSessionInfoOfServer
2019-02-16 14:28:47 +02:00
Rsl1122
70417f5359 Fixed test failures, 3 bugs:
- RawDataContainer using getUnsafe in getValue which threw error where
  no error should be thrown
- BaseUserQueries#fetchServerBaseUsers had ambiguous registered column
- WorldTimesQueries#fetchPlayerWorldTimesOnServers had ambiguous
  server_uuid column
2019-02-16 14:28:47 +02:00
Rsl1122
4d951cea20 Optimized ServerPlayerContainersQuery PerServerContainer creation 2019-02-16 14:28:46 +02:00
Rsl1122
7657527e73 Some query optimizations to ServerPlayerContainersQuery:
- Sorted out BaseUser, UserInfo debacle
- GeoInfo query no longer fetches GeoInfo of all servers
- Nickname query no longer fetches Nicknames of all servers
- Ping query no longer fetches Ping of all servers
- Left some comments with what still needs work
2019-02-16 14:28:46 +02:00
Rsl1122
54460bc8e1 Moved Queries around to make it easier to find them.
This is done because I had forgotten where a lot of the queries
resided, meaning that the location of each query was not intuitive.

New ordering attempts to have objects that can be filtered by different
variables (Server UUID, Player UUID for example) near each other.
2019-02-16 14:28:45 +02:00
Rsl1122
faa9af5eb5 Made larger Containers use DynamicDataContainer
This should optimize small object creation for cases where a lot of
raw data is stored, as no extra supplier needs to be created
2019-02-16 14:28:43 +02:00
Rsl1122
01a9bdd457 Created two new implementations of DataContainer
- RawDataContainer, stores all values as the objects instead of
  using any Suppliers
- DynamicDataContainer, stores all values in either RawDataContainer or
  SupplierDataContainer based on which methods are called
2019-02-16 14:28:43 +02:00
Rsl1122
b1a579cd88 Extracted DataContainer into an interface 2019-02-16 14:28:42 +02:00
Rsl1122
9520d20c3e Made DataContainer#putAll(Map<Key, Supplier>) private 2019-02-16 14:28:41 +02:00
Rsl1122
8a34a04f04 DataContainer#getMap now returns Map<Key, Object> instead 2019-02-16 14:28:41 +02:00
Rsl1122
38b33e1051 Made DataContainer#getSupplier(Key) private 2019-02-16 14:28:40 +02:00
Rsl1122
3bbca4e8e8 Some PerServerContainer queries
- Deprecated PerServerKeys.PLAYER_KILLS
- Deprecated PerServerKeys.PLAYER_DEATHS
- Added PerServerKeys.PLAYER_DEATH_COUNT
- Added PerServerKeys.MOB_DEATH_COUNT
2019-02-16 14:28:39 +02:00
Rsl1122
2d07f27449 Made NicknamesTable static information class
- Made constructor private
- Removed getter in SQLDB
2019-02-16 14:28:39 +02:00
Rsl1122
64a3bc3fe0 Refactored NicknamesTable#getNicknameInformation to a query 2019-02-16 14:28:38 +02:00
Rsl1122
71a5592fd1 Refactored NicknamesTable#saveUserName to a transaction:
- Removed NameProcessor
2019-02-16 14:28:37 +02:00
Rsl1122
cce5688f80 Removed usage of ServerTable#getServerNames from AnalysisContainer 2019-02-16 14:28:36 +02:00
Rsl1122
15c414e2ab Removed ServerTable#getServerInfo 2019-02-16 14:28:36 +02:00
Rsl1122
eadc45d7ed Removed ServerTable#getServerUUID 2019-02-16 14:28:35 +02:00
Rsl1122
5776215c1e Removed ServerTable#getServerUUIDs() 2019-02-16 14:28:34 +02:00
Rsl1122
427971267e Removed ServerTable#getServerName(UUID serverUUID) - not used 2019-02-16 14:28:34 +02:00
Rsl1122
9145f6aa28 Removed SessionsTable#getSessionInfoOfServer() - not used 2019-02-16 14:28:33 +02:00
Rsl1122
687d300e87 Removed SessionsTable#getPlaytimeOfServer(UUID serverUUID) - not used 2019-02-16 14:28:32 +02:00
Rsl1122
4e6f6546d9 Removed SessionsTable#getSessionCount(UUID uuid, long afterDate) - not used 2019-02-16 14:28:31 +02:00
Rsl1122
28df900c0a Removed SessionsTable#getSessionCount(UUID uuid) - not used 2019-02-16 14:28:31 +02:00
Rsl1122
b9cf17eaad Removed SessionsTable#getPlaytime(UUID uuid, UUID serverUUID) - not used 2019-02-16 14:28:30 +02:00
Rsl1122
969b305526 Removed SessionsTable#getPlaytime(UUID uuid) - not used 2019-02-16 14:28:29 +02:00
Rsl1122
5ad767c83c Removed SessionsTable#getPlaytime(UUID uuid, long afterDate) - not used 2019-02-16 14:28:29 +02:00
Rsl1122
4ecdc38f0a Fixed PaperTPSCountTimer constructor 2019-02-16 14:28:28 +02:00
Rsl1122
a62b4ae61e Removed NicknamesTable#getNicknames - not used 2019-02-16 14:28:28 +02:00
Rsl1122
af674919e7 Refactored TPSTable#insertTPS to a transaction:
- Removed TPSInsertProcessor
2019-02-16 14:28:27 +02:00
Rsl1122
f9136d390a SecurityTable now static info class
- Made constructor private
- Removed getter from SQLDB
2019-02-16 14:28:26 +02:00
Rsl1122
237168f2eb Refactored SecurityTable#addNewUser to a transaction 2019-02-16 14:28:26 +02:00
Rsl1122
2bfbb60f1e Removed RemoveOperations 2019-02-16 14:28:25 +02:00
Rsl1122
a41fd0dc40 Refactored SecurityTable#removeUser to a transaction 2019-02-16 14:28:24 +02:00
Rsl1122
fa3b92f00e Removed extra annotationProcessor configurations 2019-02-16 14:28:24 +02:00
Rsl1122
9ec7318fac Removed CheckOperations 2019-02-16 14:28:24 +02:00
Rsl1122
ea8a53029c Set up maven-publish plugin 2019-02-16 14:28:23 +02:00
Rsl1122
95d14ed73f Rename DataCache to NicknameCache:
- Some errors were encountered with removal of DataCache,
  turns out if a dependency that has dagger modules that use some
  class, a compile error occurs.
  Thus the DataCache class was left in place until the uses are
  removed from the PluginBridge.
2019-02-16 14:28:23 +02:00
Rsl1122
4f3296b416 Fixed failing PingMedianTest 2019-02-16 14:28:22 +02:00
Rsl1122
48ec77c30e Removed DataCache#getUUIDof - the cache was never updated 2019-02-16 14:28:22 +02:00
Rsl1122
e2507c249b Removed DataCache#getName - not used 2019-02-16 14:28:21 +02:00
Rsl1122
fc07cb0227 Turned PingTable static info class:
- Made PingTable constructor private
- Removed getter from SQLDB
2019-02-16 14:28:20 +02:00
Rsl1122
5b3d687a60 Refactored PingTable#insertPing to a transaction 2019-02-16 14:28:20 +02:00
Rsl1122
b23235b50b Refactored PingTable#getPing to a query 2019-02-16 14:28:19 +02:00
Risto Lahtela
2d05c83b42 Fixed networkGeolocationCounts 2019-02-16 14:28:18 +02:00
Risto Lahtela
fe29f44680 Fixed networkGeolocationCounts for multiple users 2019-02-16 14:28:17 +02:00
Risto Lahtela
26cd95cab8 Fix networkGeolocationCounts for MySQL 2019-02-16 14:28:17 +02:00