Search in sources :

Example 1 with LegacyGlobalState

use of com.yelp.nrtsearch.server.luceneserver.state.LegacyGlobalState in project nrtsearch by Yelp.

the class GlobalStateTest method testCreateLegacyGlobalState.

@Test
public void testCreateLegacyGlobalState() throws IOException {
    String configFile = String.join("\n", "stateConfig:", "  backendType: LEGACY");
    LuceneServerConfiguration configuration = getConfig(configFile);
    GlobalState globalState = GlobalState.createState(configuration);
    assertTrue(globalState instanceof LegacyGlobalState);
}
Also used : LegacyGlobalState(com.yelp.nrtsearch.server.luceneserver.state.LegacyGlobalState) LuceneServerConfiguration(com.yelp.nrtsearch.server.config.LuceneServerConfiguration) BackendGlobalState(com.yelp.nrtsearch.server.luceneserver.state.BackendGlobalState) LegacyGlobalState(com.yelp.nrtsearch.server.luceneserver.state.LegacyGlobalState) Test(org.junit.Test)

Aggregations

LuceneServerConfiguration (com.yelp.nrtsearch.server.config.LuceneServerConfiguration)1 BackendGlobalState (com.yelp.nrtsearch.server.luceneserver.state.BackendGlobalState)1 LegacyGlobalState (com.yelp.nrtsearch.server.luceneserver.state.LegacyGlobalState)1 Test (org.junit.Test)1