Class AbstractPgxConfig

  • Direct Known Subclasses:
    PgxConfig

    public abstract class AbstractPgxConfig
    extends AbstractEngineConfig
    In-memory representation of a PGX config.
    • Field Detail

      • FILE_PATH_PROPERTY

        public static final java.lang.String FILE_PATH_PROPERTY
        See Also:
        Constant Field Values
      • DEFAULT_FILE_NAME

        public static final java.lang.String DEFAULT_FILE_NAME
        See Also:
        Constant Field Values
    • Constructor Detail

      • AbstractPgxConfig

        public AbstractPgxConfig()
    • Method Detail

      • getFilePath

        public static java.lang.String getFilePath()
                                            throws java.io.IOException
        Returns:
        a file path of the pgxConfig
        Throws:
        java.io.IOException
        Since:
        24.1.0
      • getInstance

        public static PgxConfig getInstance()
        Returns:
        a pgxConfig initialized with the default values
        Since:
        2.4.0
      • getInstance

        public static PgxConfig getInstance​(java.lang.String path)
        creates a server config from a file path specified by parameter. If any configuration entry is missing, the default as specified in PgxConfig.Field will be used
        Parameters:
        path -
        Throws:
        java.io.IOException
        Since:
        24.1.0
      • getInstance

        public static PgxConfig getInstance​(java.io.InputStream is,
                                            java.lang.String parent)
                                     throws java.io.IOException
        creates a server config from an input stream specified by parameter. If any configuration entry is missing, the default as specified in PgxConfig.Field will be used
        Parameters:
        is -
        Throws:
        java.io.IOException
        Since:
        2.4.0
      • configFromJson

        public static PgxConfig configFromJson​(java.lang.String json)
                                        throws java.io.IOException
        Throws:
        java.io.IOException
      • configFromMap

        public static PgxConfig configFromMap​(java.util.Map<PgxConfig.Field,​java.lang.Object> configValues)
                                       throws java.io.IOException
        Throws:
        java.io.IOException
      • getRuntimeConfig

        public RuntimeConfig getRuntimeConfig()
        Returns:
        the runtime config part of the Pgx config
        Since:
        2.4.0
      • getUdfConfigDirectory

        public abstract java.lang.String getUdfConfigDirectory()
      • getPreloadGraphs

        public abstract java.util.List<PreloadGraphConfig> getPreloadGraphs()
      • isDistConfig

        public boolean isDistConfig()
      • isSmConfig

        public boolean isSmConfig()
      • isClusterLeader

        public boolean isClusterLeader()