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:
- Serialized Form
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
PersistentQueryDbServerConfig.ServerType
The type of server this instance represents -
Field Summary
Fields Modifier and Type Field Description protected String
classPushListResourceName
static String
DEFAULT_SERVER_CLASS_PROP
protected String
host
protected String
name
protected int
port
-
Constructor Summary
Constructors Constructor Description PersistentQueryDbServerConfig(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 Type Method Description com.fishlib.base.log.LogOutput
append(com.fishlib.base.log.LogOutput logOutput)
boolean
equals(Object o)
String
getClassPushListResourceName()
Set<String>
getConsoleGroups()
Get the console groups.String
getHost()
double
getMaxHeapSizeGB()
String
getName()
int
getPort()
String
getServerClass()
PersistentQueryDbServerConfig.ServerType
getServerType()
int
hashCode()
static PersistentQueryDbServerConfig[]
loadConfigs()
static PersistentQueryDbServerConfig[]
loadConfigs(com.fishlib.configuration.PropertyFile prop)
static Map<String,PersistentQueryDbServerConfig>
loadConfigsMap()
static Map<String,PersistentQueryDbServerConfig>
loadConfigsMap(com.fishlib.configuration.PropertyFile prop)
void
setMaxHeapSizeGB(double maxHeapSizeGB)
String
toString()
-
Field Details
-
DEFAULT_SERVER_CLASS_PROP
-
name
-
host
-
port
protected final int port -
classPushListResourceName
-
-
Constructor Details
-
PersistentQueryDbServerConfig
public PersistentQueryDbServerConfig(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.- 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) -
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)
-