Class PersistentQueryDbServerConfig

java.lang.Object
com.illumon.iris.controller.PersistentQueryDbServerConfig
All Implemented Interfaces:
com.fishlib.base.log.LogOutputAppendable, Serializable

public class PersistentQueryDbServerConfig extends Object implements Serializable, com.fishlib.base.log.LogOutputAppendable
Database server configuration, suitable for a Persistent Query script.
See Also:
  • Field Details

    • DEFAULT_SERVER_CLASS_PROP

      public static String DEFAULT_SERVER_CLASS_PROP
    • name

      protected final String name
    • host

      protected final String host
    • port

      protected final int port
    • classPushListResourceName

      protected final String classPushListResourceName
    • DB_SERVER_CONFIG_COMPARATOR

      public static final Comparator<PersistentQueryDbServerConfig> DB_SERVER_CONFIG_COMPARATOR
  • Constructor Details

    • PersistentQueryDbServerConfig

      public PersistentQueryDbServerConfig(@NotNull String host, int port, @NotNull String name, @Nullable String classPushListResourceName, @NotNull String serverClass, double maxHeapSizeGB, @NotNull PersistentQueryDbServerConfig.ServerType serverType, @Nullable Set<String> consoleGroups)
      Data object for dispatcher configuration within the Persistent Query Controller.
      Parameters:
      host - the hostname of the dispatcher
      port - the port of the dispatcher
      name - the friendly name to present in the UI and store in the persistent query configuration
      classPushListResourceName - the resource name of the class push list
      serverClass - the class of server (e.g., "QUERY" or "MERGE")
      maxHeapSizeGB - max heaps size allowed
      serverType - type of server (e.g., "DISPATCHER" or "GROUP")
      consoleGroups - the ACL groups to which a user must belong to be able to create consoles on this server group
  • Method Details

    • getName

      public String getName()
    • getHost

      public String getHost()
    • getPort

      public int getPort()
    • getServerType

    • getServerClass

      public String getServerClass()
    • getClassPushListResourceName

      public String getClassPushListResourceName()
    • getMaxHeapSizeGB

      public double getMaxHeapSizeGB()
    • setMaxHeapSizeGB

      public void setMaxHeapSizeGB(double maxHeapSizeGB)
    • getServerInfo

      public String getServerInfo()
    • setServerInfo

      public void setServerInfo(String serverInfo)
    • getConsoleGroups

      public Set<String> getConsoleGroups()
      Get the console groups. These are the groups to which a user must belong to be able to start an interactive console on this server (the user must belong to at least one of the specified groups). If no console-group restrictions are defined, the universal set will be returned.
      Returns:
      the Set of console groups, or the universal set.
    • equals

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

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

      public String toString()
      Overrides:
      toString in class Object
    • append

      public com.fishlib.base.log.LogOutput append(com.fishlib.base.log.LogOutput logOutput)
      Specified by:
      append in interface com.fishlib.base.log.LogOutputAppendable
    • loadConfigs

      public static PersistentQueryDbServerConfig[] loadConfigs()
    • loadConfigs

      public static PersistentQueryDbServerConfig[] loadConfigs(com.fishlib.configuration.PropertyFile prop)
    • loadConfigsMap

      public static Map<String,PersistentQueryDbServerConfig> loadConfigsMap()
    • loadConfigsMap

      public static Map<String,PersistentQueryDbServerConfig> loadConfigsMap(com.fishlib.configuration.PropertyFile prop)