Package com.illumon.iris.controller
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:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enum
The type of server this instance represents -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionPersistentQueryDbServerConfig
(String host, int port, String name, String classPushListResourceName, String serverClass, double maxHeapSizeGB, PersistentQueryDbServerConfig.ServerType serverType, Set<String> consoleGroups) Data object for dispatcher configuration within the Persistent Query Controller. -
Method Summary
Modifier and TypeMethodDescriptioncom.fishlib.base.log.LogOutput
append
(com.fishlib.base.log.LogOutput logOutput) boolean
Get the console groups.getHost()
double
getName()
int
getPort()
int
hashCode()
static PersistentQueryDbServerConfig[]
static PersistentQueryDbServerConfig[]
loadConfigs
(com.fishlib.configuration.PropertyFile prop) static Map<String,
PersistentQueryDbServerConfig> static Map<String,
PersistentQueryDbServerConfig> loadConfigsMap
(com.fishlib.configuration.PropertyFile prop) void
setMaxHeapSizeGB
(double maxHeapSizeGB) void
setServerInfo
(String serverInfo) toString()
-
Field Details
-
DEFAULT_SERVER_CLASS_PROP
-
name
-
host
-
port
protected final int port -
classPushListResourceName
-
-
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 dispatcherport
- the port of the dispatchername
- the friendly name to present in the UI and store in the persistent query configurationclassPushListResourceName
- the resource name of the class push listserverClass
- the class of server (e.g., "QUERY" or "MERGE")maxHeapSizeGB
- max heaps size allowedserverType
- 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
-
getHost
-
getPort
public int getPort() -
getServerType
-
getServerClass
-
getClassPushListResourceName
-
getMaxHeapSizeGB
public double getMaxHeapSizeGB() -
setMaxHeapSizeGB
public void setMaxHeapSizeGB(double maxHeapSizeGB) -
getServerInfo
-
setServerInfo
-
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
-
hashCode
public int hashCode() -
toString
-
append
public com.fishlib.base.log.LogOutput append(com.fishlib.base.log.LogOutput logOutput) - Specified by:
append
in interfacecom.fishlib.base.log.LogOutputAppendable
-
loadConfigs
-
loadConfigs
public static PersistentQueryDbServerConfig[] loadConfigs(com.fishlib.configuration.PropertyFile prop) -
loadConfigsMap
-
loadConfigsMap
public static Map<String,PersistentQueryDbServerConfig> loadConfigsMap(com.fishlib.configuration.PropertyFile prop)
-