Class PersistentQueryConfiguration

java.lang.Object
com.illumon.dataobjects.generated.DefaultPersistentQueryConfiguration
com.illumon.iris.controller.PersistentQueryConfiguration
All Implemented Interfaces:
com.fishlib.base.Copyable<com.illumon.dataobjects.generated.DefaultPersistentQueryConfiguration>, com.fishlib.base.log.LogOutputAppendable, com.fishlib.base.SafeCloneable<com.illumon.dataobjects.generated.DefaultPersistentQueryConfiguration>, com.fishlib.dataobjects.persistence.WObjectStreamConstants, com.fishlib.dataobjects.WAbstractDataObject, Externalizable, Serializable, Cloneable

public class PersistentQueryConfiguration extends com.illumon.dataobjects.generated.DefaultPersistentQueryConfiguration
PersistentQueryConfiguration contains the persistent state for a query.
See Also:
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static class 
     
    static class 
     
    static class 
     
  • Field Summary

    Fields inherited from class com.illumon.dataobjects.generated.DefaultPersistentQueryConfiguration

    classPathAdditions, columnSet_, columnSetName_, completedStatus, configurationType, dataBufferPoolToHeapSizeRatio, dbServerName, detailedGCLoggingEnabled, enabled, expirationTime, extraEnvironmentVariables, extraJvmArguments, heapSizeInGB, INDEX_OF_CLASSPATHADDITIONS, INDEX_OF_COMPLETEDSTATUS, INDEX_OF_CONFIGURATIONTYPE, INDEX_OF_DATABUFFERPOOLTOHEAPSIZERATIO, INDEX_OF_DBSERVERNAME, INDEX_OF_DETAILEDGCLOGGINGENABLED, INDEX_OF_ENABLED, INDEX_OF_EXPIRATIONTIME, INDEX_OF_EXTRAENVIRONMENTVARIABLES, INDEX_OF_EXTRAJVMARGUMENTS, INDEX_OF_HEAPSIZEINGB, INDEX_OF_JVMPROFILE, INDEX_OF_KUBERNETESCONTROL, INDEX_OF_LASTMODIFIEDBYAUTHENTICATED, INDEX_OF_LASTMODIFIEDBYEFFECTIVE, INDEX_OF_LASTMODIFIEDTIME, INDEX_OF_NAME, INDEX_OF_OMITDEFAULTGCPARAMETERS, INDEX_OF_OWNER, INDEX_OF_RESTARTUSERS, INDEX_OF_SCHEDULING, INDEX_OF_SCRIPTCODE, INDEX_OF_SCRIPTLANGUAGE, INDEX_OF_SCRIPTPATH, INDEX_OF_SERIAL, INDEX_OF_TIMEOUT, INDEX_OF_TYPESPECIFICFIELDS, INDEX_OF_VERSION, INDEX_OF_WEEPSADMINGROUPS, INDEX_OF_WEEPSVIEWERGROUPS, INDEX_OF_WORKERKIND, jVMProfile, kubernetesControl, lastModifiedByAuthenticated, lastModifiedByEffective, lastModifiedTime, name, omitDefaultGCParameters, owner, restartUsers, RESTARTUSERS_ADMIN, RESTARTUSERS_ADMINANDVIEWERS, RESTARTUSERS_VIEWERSWHENDOWN, scheduling, scriptCode, scriptLanguage, scriptPath, serial, timeout, typeSpecificFields, version, weepsAdminGroups, weepsViewerGroups, workerKind

    Fields inherited from interface com.fishlib.dataobjects.persistence.WObjectStreamConstants

    ADD_CLASS, ADD_COLUMN_SET_CLASS, ADD_ENUM, ADD_ENUM_LONG, ADO_ARRAY_TYPE, ARRAY_TYPE, BOOLEAN_TYPE, BYTE_ARRAY_TYPE, BYTE_TYPE, DATE_TYPE, DOUBLE_ARRAY_TYPE, DOUBLE_TYPE, FLOAT_ARRAY_TYPE, FLOAT_TYPE, INT_ARRAY_TYPE, INTEGER_TYPE, KNOWN_ENUM, KNOWN_ENUM_LONG, LINKED_MAP_TYPE, LINKED_SET_TYPE, LONG_ARRAY_TYPE, LONG_STRING_TYPE, LONG_TYPE, MAP_TYPE, NULL_TYPE, OBJECT_TYPE, SET_TYPE, STRING_ARRAY_TYPE, STRING_TYPE, TREE_MAP_TYPE, TREE_SET_TYPE
  • Constructor Summary

    Constructors
  • Method Summary

    Modifier and Type
    Method
    Description
    com.fishlib.base.log.LogOutput
    append(com.fishlib.base.log.LogOutput logOutput)
     
    com.fishlib.base.log.LogOutput
    appendDetailed(com.fishlib.base.log.LogOutput logOutput)
     
    Convert this persistent query into an XML String.
     
    createFromXmlByteArray(byte[] xmlBytes)
    Create a list of PersistentQueryConfiguration instances from a byte array containing XML.
    boolean
    equals(Object other)
     
     
     
     
     
     
     
    int
     
    getJvmArguments(ControllerConfigurationType controllerConfigurationType)
     
    static Set<String>
    getScriptPathSet(String owner, io.deephaven.enterprise.auth.UserContext userContext, IrisGroupProvider irisGroupProvider, PersistentQueryScriptSource persistentQueryScriptSource, long serial)
     
    int
     
    void
     
    void
    setExtraEnvironmentVariablesFromMap(Map<String,String> extraEnvironmentVariablesMap)
     
    void
     
    void
    setExtraJvmArgumentsFromList(List<String> extraJvmArgumentsList)
     
    void
     
    void
     
     
     
    void
     
    static void
    Write XML text resenting a collection of persistent query configurations to the specified Writer.

    Methods inherited from class com.illumon.dataobjects.generated.DefaultPersistentQueryConfiguration

    copyValues, getByte, getByte, getByte, getClassPathAdditions, getColumnSet, getColumnSetName, getColumnSetStatic, getCompletedStatus, getConfigurationType, getDataBufferPoolToHeapSizeRatio, getDate, getDate, getDate, getDbServerName, getDetailedGCLoggingEnabled, getDouble, getDouble, getDouble, getEnabled, getExpirationTime, getExtraEnvironmentVariables, getExtraJvmArguments, getHeapSizeInGB, getInt, getInt, getInt, getJVMProfile, getKubernetesControl, getLastModifiedByAuthenticated, getLastModifiedByEffective, getLastModifiedTime, getLong, getLong, getLong, getName, getOmitDefaultGCParameters, getOwner, getRestartUsers, getScheduling, getScriptCode, getScriptLanguage, getScriptPath, getSerial, getString, getString, getString, getTimeout, getTypeSpecificFields, getValue, getValue, getValue, getVersion, getWeepsAdminGroups, getWeepsViewerGroups, getWorkerKind, readExternal, safeClone, setByte, setByte, setClassPathAdditions, setCompletedStatus, setConfigurationType, setDataBufferPoolToHeapSizeRatio, setDate, setDate, setDbServerName, setDetailedGCLoggingEnabled, setDouble, setDouble, setEnabled, setExpirationTime, setExtraEnvironmentVariables, setExtraJvmArguments, setHeapSizeInGB, setInt, setInt, setJVMProfile, setKubernetesControl, setLastModifiedByAuthenticated, setLastModifiedByEffective, setLastModifiedTime, setLong, setLong, setName, setOmitDefaultGCParameters, setOwner, setRestartUsers, setScheduling, setScriptCode, setScriptLanguage, setScriptPath, setSerial, setString, setString, setTimeout, setTypeSpecificFields, setValue, setValue, setVersion, setWeepsAdminGroups, setWeepsViewerGroups, setWorkerKind, writeExternal

    Methods inherited from class java.lang.Object

    finalize, getClass, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • PersistentQueryConfiguration

      public PersistentQueryConfiguration()
    • PersistentQueryConfiguration

      public PersistentQueryConfiguration(PersistentQueryConfiguration other)
  • Method Details

    • clone

      Specified by:
      clone in interface com.fishlib.dataobjects.WAbstractDataObject
      Overrides:
      clone in class com.illumon.dataobjects.generated.DefaultPersistentQueryConfiguration
    • toDetailedString

      public String toDetailedString()
    • toString

      public String toString()
      Overrides:
      toString in class com.illumon.dataobjects.generated.DefaultPersistentQueryConfiguration
    • getDescription

      public String getDescription()
    • appendDetailed

      public com.fishlib.base.log.LogOutput appendDetailed(com.fishlib.base.log.LogOutput logOutput)
    • append

      public com.fishlib.base.log.LogOutput append(com.fishlib.base.log.LogOutput logOutput)
      Specified by:
      append in interface com.fishlib.base.log.LogOutputAppendable
      Overrides:
      append in class com.illumon.dataobjects.generated.DefaultPersistentQueryConfiguration
    • equals

      public boolean equals(Object other)
      Overrides:
      equals in class com.illumon.dataobjects.generated.DefaultPersistentQueryConfiguration
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class com.illumon.dataobjects.generated.DefaultPersistentQueryConfiguration
    • getScriptPathSet

      public static Set<String> getScriptPathSet(String owner, io.deephaven.enterprise.auth.UserContext userContext, IrisGroupProvider irisGroupProvider, PersistentQueryScriptSource persistentQueryScriptSource, long serial)
    • validate

      Throws:
      PersistentQueryConfiguration.ValidationFailure
    • getHeapSizeInMB

      public int getHeapSizeInMB()
    • getJvmArguments

      public String[] getJvmArguments(ControllerConfigurationType controllerConfigurationType)
    • getExtraJvmArgumentsAsString

      public String getExtraJvmArgumentsAsString()
    • setExtraJvmArgumentsFromString

      public void setExtraJvmArgumentsFromString(String text)
    • getClassPathAdditionsAsString

      public String getClassPathAdditionsAsString()
    • setClassPathAdditionsFromString

      public void setClassPathAdditionsFromString(String text)
    • getExtraJvmArgumentsAsList

      @NotNull public List<String> getExtraJvmArgumentsAsList()
    • setExtraJvmArgumentsFromList

      public void setExtraJvmArgumentsFromList(@NotNull List<String> extraJvmArgumentsList)
    • getExtraEnvironmentVariablesAsString

      public String getExtraEnvironmentVariablesAsString()
    • setExtraEnvironmentVariablesFromString

      public void setExtraEnvironmentVariablesFromString(String text)
    • setKubernetesControl

      public void setKubernetesControl(KubernetesCreationInfo kci)
    • getExtraEnvironmentVariablesAsMap

      @NotNull public Map<String,String> getExtraEnvironmentVariablesAsMap()
    • setExtraEnvironmentVariablesFromMap

      public void setExtraEnvironmentVariablesFromMap(@NotNull Map<String,String> extraEnvironmentVariablesMap)
    • createFromXmlByteArray

      public static List<PersistentQueryConfiguration> createFromXmlByteArray(byte[] xmlBytes) throws IOException, org.jdom2.JDOMException
      Create a list of PersistentQueryConfiguration instances from a byte array containing XML. The XML should have been created by the corresponding createXmlDocumentFromConfigurations(Collection,BiConsumer) method. There are no guarantees on the type, mutability, serializability, or thread-safety of the returned List.
      Parameters:
      xmlBytes - the byte array containing the XML
      Returns:
      a List of PersistentQueryConfiguration instances
      Throws:
      IOException
      org.jdom2.JDOMException
    • asXmlString

      public String asXmlString()
      Convert this persistent query into an XML String.
      Returns:
      this persistent query represented as an XML string.
    • writeXmlFromConfigurations

      public static void writeXmlFromConfigurations(@NotNull Collection<PersistentQueryConfiguration> configurations, Writer outputWriter, BiConsumer<Boolean,PersistentQueryConfiguration> contextCallback)
      Write XML text resenting a collection of persistent query configurations to the specified Writer.
      Parameters:
      configurations - the PersistentQueryConfiguration instances to be written
      outputWriter - the Writer to use for the output
      contextCallback - optional functor that takes a flag and a query configuration, used to annotate informational logging outputs around the processing of each config, true on entry, false on exit, null == no-op.