Class IServerSelectionProvider.ServerGroup

java.lang.Object
com.illumon.iris.controller.IServerSelectionProvider.ServerGroup
Enclosing interface:
IServerSelectionProvider

public static class IServerSelectionProvider.ServerGroup extends Object
Information about a server group. Each implementation must provide details on each server group to be provided as a server-selection option.
  • Constructor Details

    • ServerGroup

      public ServerGroup(@NotNull String groupName, @NotNull String groupClass, int maxHeapPerWorkerMB, @Nullable Set<String> consoleGroups, @NotNull String serverInfo)
      Parameters:
      groupName - the server group name, as it will be displayed to users and stored as the db server name in persistent queries
      groupClass - the server class, used to determine what types of queries and users will be allowed to use it (typically Query or Merge)
      maxHeapPerWorkerMB - the maximum query heap that a PQ or console will be allowed to request from the server
      consoleGroups - the ACL groups to which a user must belong to be able to create consoles on this server group
      serverInfo - the server info to return
  • Method Details

    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • getServerInfo

      public String getServerInfo()
      Return the server information string for this server group.
      Returns:
      a JSON encoded string following DispatcherJsonConstants
    • getGroupName

      public String getGroupName()
      Get the server group name.
      Returns:
      The group name as a String
    • getGroupClass

      public String getGroupClass()
      Get the server class name.
      Returns:
      The group class as a String
    • getMaxHeapPerWorkerMB

      public int getMaxHeapPerWorkerMB()
      Get the max heap per worker for the server group.
      Returns:
      The max heap per worker as an int in MB
    • getConsoleGroups

      public Set<String> getConsoleGroups()
      Get the set of all ACL groups that can create a console in this server group.
      Returns:
      The groups as a Set of Strings