public class ServerAggregateQueries
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static Query<java.lang.Integer> |
baseUserCount()
Count how many users are in the Plan database.
|
static Query<java.util.Map<java.lang.String,java.lang.Integer>> |
commandUsageCounts(java.util.UUID serverUUID)
Count how many times commands have been used on a server.
|
static Query<java.util.Map<java.lang.String,java.lang.Integer>> |
networkGeolocationCounts() |
static Query<java.lang.Integer> |
serverUserCount(java.util.UUID serverUUID)
Count how many users are on a server in the network.
|
static Query<java.util.Map<java.util.UUID,java.lang.Integer>> |
serverUserCounts()
Count how many users are on each server in the network.
|
public static Query<java.lang.Integer> baseUserCount()
public static Query<java.lang.Integer> serverUserCount(java.util.UUID serverUUID)
serverUUID
- ServerUUID of the Plan server.public static Query<java.util.Map<java.util.UUID,java.lang.Integer>> serverUserCounts()
Please note that counts can overlap as one user can join multiple servers.
Use baseUserCount()
if you want to count total number of users.
public static Query<java.util.Map<java.lang.String,java.lang.Integer>> commandUsageCounts(java.util.UUID serverUUID)
serverUUID
- Server UUID of the Plan server.public static Query<java.util.Map<java.lang.String,java.lang.Integer>> networkGeolocationCounts()