Search in sources :

Example 1 with ElideStandaloneAsyncSettings

use of com.yahoo.elide.standalone.config.ElideStandaloneAsyncSettings in project elide by yahoo.

the class ElideStandaloneExportTest method init.

@BeforeAll
public void init() throws Exception {
    elide = new ElideStandalone(new ElideStandaloneTestSettings() {

        @Override
        public ElideStandaloneAsyncSettings getAsyncProperties() {
            ElideStandaloneAsyncSettings asyncProperties = new ElideStandaloneAsyncSettings() {

                @Override
                public boolean enabled() {
                    return true;
                }

                @Override
                public boolean enableCleanup() {
                    return true;
                }

                @Override
                public Integer getThreadSize() {
                    return 5;
                }

                @Override
                public Integer getMaxRunTimeSeconds() {
                    return 1800;
                }

                @Override
                public Integer getQueryCleanupDays() {
                    return 3;
                }

                @Override
                public boolean enableExport() {
                    return true;
                }
            };
            return asyncProperties;
        }

        @Override
        public ElideStandaloneAnalyticSettings getAnalyticProperties() {
            ElideStandaloneAnalyticSettings analyticProperties = new ElideStandaloneAnalyticSettings() {

                @Override
                public boolean enableDynamicModelConfig() {
                    return true;
                }

                @Override
                public boolean enableAggregationDataStore() {
                    return true;
                }

                @Override
                public boolean enableMetaDataStore() {
                    return true;
                }

                @Override
                public String getDefaultDialect() {
                    return SQLDialectFactory.getDefaultDialect().getDialectType();
                }

                @Override
                public String getDynamicConfigPath() {
                    return "src/test/resources/configs/";
                }
            };
            return analyticProperties;
        }
    });
    elide.start(false);
}
Also used : ElideStandaloneAsyncSettings(com.yahoo.elide.standalone.config.ElideStandaloneAsyncSettings) ElideStandalone(com.yahoo.elide.standalone.ElideStandalone) ElideStandaloneAnalyticSettings(com.yahoo.elide.standalone.config.ElideStandaloneAnalyticSettings) BeforeAll(org.junit.jupiter.api.BeforeAll)

Aggregations

ElideStandalone (com.yahoo.elide.standalone.ElideStandalone)1 ElideStandaloneAnalyticSettings (com.yahoo.elide.standalone.config.ElideStandaloneAnalyticSettings)1 ElideStandaloneAsyncSettings (com.yahoo.elide.standalone.config.ElideStandaloneAsyncSettings)1 BeforeAll (org.junit.jupiter.api.BeforeAll)1