Class TPSQueries
java.lang.Object
com.djrapitops.plan.storage.database.queries.objects.TPSQueries
Queries for
TPS
objects.-
Method Summary
Modifier and TypeMethodDescriptionaverageChunks
(long after, long before, ServerUUID serverUUID) averageCPU
(long after, long before, ServerUUID serverUUID) averageEntities
(long after, long before, ServerUUID serverUUID) averageFreeDisk
(long after, long before, ServerUUID serverUUID) averageRAM
(long after, long before, ServerUUID serverUUID) averageTPS
(long after, long before, ServerUUID serverUUID) static TPS
extractTPS
(ResultSet set) fetchAllTimePeakPlayerCount
(ServerUUID serverUUID) fetchLastStoredTpsDate
(ServerUUID serverUUID) fetchLatestServerStartTime
(ServerUUID serverUUID, long dataGapThreshold) fetchLatestTPSEntryForServer
(ServerUUID serverUUID) fetchPeakPlayerCount
(ServerUUID serverUUID, long afterDate) fetchPlayersOnlineOfServer
(long after, long before, ServerUUID serverUUID) fetchTPSDataOfAllServersBut
(long after, long before, ServerUUID leaveOut) fetchTPSDataOfServer
(long after, long before, ServerUUID serverUUID) fetchTPSDataOfServerInResolution
(long after, long before, long resolution, ServerUUID serverUUID) fetchTPSDataOfServers
(long after, long before, Collection<ServerUUID> serverUUIDs) fetchViewPreviewGraphData
(ServerUUID serverUUID) maxFreeDisk
(long after, long before, ServerUUID serverUUID) minFreeDisk
(long after, long before, ServerUUID serverUUID)
-
Method Details
-
fetchTPSDataOfServerInResolution
public static Query<List<TPS>> fetchTPSDataOfServerInResolution(long after, long before, long resolution, ServerUUID serverUUID) -
extractTPS
- Throws:
SQLException
-
fetchTPSDataOfServer
-
fetchViewPreviewGraphData
-
fetchPlayersOnlineOfServer
public static Query<List<DateObj<Integer>>> fetchPlayersOnlineOfServer(long after, long before, ServerUUID serverUUID) -
fetchTPSDataOfAllServersBut
-
fetchPeakPlayerCount
public static Query<Optional<DateObj<Integer>>> fetchPeakPlayerCount(ServerUUID serverUUID, long afterDate) -
fetchAllTimePeakPlayerCount
-
fetchLatestTPSEntryForServer
-
averageTPS
-
averageCPU
-
averageRAM
-
averageChunks
-
averageEntities
-
maxFreeDisk
-
minFreeDisk
-
averageFreeDisk
-
fetchLastStoredTpsDate
-
fetchTPSDataOfServers
public static Query<Map<Integer,List<TPS>>> fetchTPSDataOfServers(long after, long before, Collection<ServerUUID> serverUUIDs) -
fetchLatestServerStartTime
public static Query<Optional<Long>> fetchLatestServerStartTime(ServerUUID serverUUID, long dataGapThreshold)
-