Class ServerAggregateQueries


  • public class ServerAggregateQueries
    extends java.lang.Object
    Static method class for queries that count how many entries of particular kinds there are for a server.
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static Query<java.lang.Integer> baseUserCount()
      Count how many users are in the Plan database.
      static Query<java.lang.Integer> serverUserCount​(ServerUUID serverUUID)
      Count how many users are on a server in the network.
      static Query<java.util.Map<ServerUUID,​java.lang.Integer>> serverUserCounts()
      Count how many users are on each server in the network.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • baseUserCount

        public static Query<java.lang.Integer> baseUserCount()
        Count how many users are in the Plan database.
        Returns:
        Count of base users, all users in a network after Plan installation.
      • serverUserCount

        public static Query<java.lang.Integer> serverUserCount​(ServerUUID serverUUID)
        Count how many users are on a server in the network.
        Parameters:
        serverUUID - Server UUID of the Plan server.
        Returns:
        Count of users registered to that server after Plan installation.
      • serverUserCounts

        public static Query<java.util.Map<ServerUUID,​java.lang.Integer>> serverUserCounts()
        Count how many users are on each server in the network.

        Please note that counts can overlap as one user can join multiple servers. Use baseUserCount() if you want to count total number of users.

        Returns:
        Map: Server UUID - Count of users registered to that server