Package com.illumon.iris.controller
Class IServerSelectionProvider.ServerGroup
java.lang.Object
com.illumon.iris.controller.IServerSelectionProvider.ServerGroup
- Enclosing interface:
- IServerSelectionProvider
Information about a server group. Each implementation must provide details on each server group to be provided
as a server-selection option.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanGet the set of all ACL groups that can create a console in this server group.Get the server class name.Get the server group name.intGet the max heap per worker for the server group.Return the server information string for this server group.inthashCode()
-
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 queriesgroupClass- 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 serverconsoleGroups- the ACL groups to which a user must belong to be able to create consoles on this server groupserverInfo- the server info to return
-
-
Method Details
-
equals
-
hashCode
public int hashCode() -
getServerInfo
Return the server information string for this server group.- Returns:
- a JSON encoded string following
DispatcherJsonConstants
-
getGroupName
Get the server group name.- Returns:
- The group name as a 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
Get the set of all ACL groups that can create a console in this server group.- Returns:
- The groups as a Set of Strings
-