Class DataMemoryLimitsConfig

    • Method Detail

      • parse

        public static DataMemoryLimitsConfig parse​(java.io.InputStream is,
                                                   boolean strict,
                                                   java.lang.String parentPath)
                                            throws java.io.IOException
        Parses an input stream.
        Parameters:
        is - the input stream
        strict - if true, parses in strict mode
        parentPath - if not null, resolves relative paths against this parentPath
        Returns:
        the parsed graph config
        Throws:
        java.io.IOException - Signals that an I/O exception has occurred.
      • parse

        public static DataMemoryLimitsConfig parse​(java.util.Map<java.lang.String,​java.lang.Object> raw,
                                                   boolean strict,
                                                   java.lang.String parentPath)
        Parses a raw key/value mapping.
        Parameters:
        raw - the raw key/value mapping to parse
        strict - if true, parses in strict mode
        parentPath - if not null, resolves relative paths against this parentPath
        Returns:
        the parsed graph config
      • parse

        public static DataMemoryLimitsConfig parse​(java.util.Properties props,
                                                   boolean strict)
        Parses a properties file.
        Parameters:
        props - the properties to parse
        strict - if true, parses in strict mode
        Returns:
        the parsed graph config
      • isEmpty

        public boolean isEmpty()
        Checks if it's empty.
        Returns:
        true, if the Map 'values' is empty.
      • getValuesWithoutDefaults

        public java.util.Map<DataMemoryLimitsConfig.Field,​java.lang.Object> getValuesWithoutDefaults()
        Gets the values without defaults.
        Returns:
        the values without defaults
      • getLeftoverValues

        public java.util.Map<java.lang.String,​java.lang.Object> getLeftoverValues()
        Gets the values that do not belong to any field.
        Returns:
        the values that do not belong to any field
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • toString

        public java.lang.String toString​(boolean hideSensitiveData)
      • getMaxTotalDataMemorySize

        public java.lang.String getMaxTotalDataMemorySize()
        absolute memory limit across entire PGX engine, default memory unit is byte, can use (k, m, g, t, p) as suffix for (kilobyte, megabyte, gigabyte, terabyte, petabyte) units
        Specified by:
        getMaxTotalDataMemorySize in class AbstractDataMemoryLimitsConfig
      • getMaxTotalPrivateDataMemorySize

        public java.lang.String getMaxTotalPrivateDataMemorySize()
        absolute memory limit of private data (includes non-published graphs and PGQL results), default memory unit is byte, can use (k, m, g, t, p) as suffix for (kilobyte, megabyte, gigabyte, terabyte, petabyte) units
        Specified by:
        getMaxTotalPrivateDataMemorySize in class AbstractDataMemoryLimitsConfig
      • getMaxTotalSharedDataMemorySize

        public java.lang.String getMaxTotalSharedDataMemorySize()
        absolute memory limit of shared data (includes published graphs and pinned non-referenced graphs), default memory unit is byte, can use (k, m, g, t, p) as suffix for (kilobyte, megabyte, gigabyte, terabyte, petabyte) units
        Specified by:
        getMaxTotalSharedDataMemorySize in class AbstractDataMemoryLimitsConfig
      • getMaxTotalSharedDataMemoryRatio

        public java.lang.Double getMaxTotalSharedDataMemoryRatio()
        memory limit of shared data (includes published graphs and pinned non-referenced graphs) relative to total PGX engine memory limit
        Specified by:
        getMaxTotalSharedDataMemoryRatio in class AbstractDataMemoryLimitsConfig
      • getMaxPerUserDataMemorySize

        public java.lang.String getMaxPerUserDataMemorySize()
        absolute memory limit for any one user of the PGX engine, default memory unit is byte, can use (k, m, g, t, p) as suffix for (kilobyte, megabyte, gigabyte, terabyte, petabyte) units
        Specified by:
        getMaxPerUserDataMemorySize in class AbstractDataMemoryLimitsConfig
      • getMaxPerSessionDataMemorySize

        public java.lang.String getMaxPerSessionDataMemorySize()
        absolute memory limit for any one session of the PGX engine, default memory unit is byte, can use (k, m, g, t, p) as suffix for (kilobyte, megabyte, gigabyte, terabyte, petabyte) units
        Specified by:
        getMaxPerSessionDataMemorySize in class AbstractDataMemoryLimitsConfig
      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object