Search in sources :

Example 1 with LocalFileStorage

use of com.accenture.trac.common.storage.local.LocalFileStorage in project tracdap by finos.

the class FileStorageReadWriteTest method setupStorage.

@BeforeEach
void setupStorage() {
    var storageProps = new Properties();
    storageProps.put(IStorageManager.PROP_STORAGE_KEY, "TEST_STORAGE");
    storageProps.put(LocalFileStorage.CONFIG_ROOT_PATH, storageDir.toString());
    storage = new LocalFileStorage(storageProps);
    execContext = new ExecutionContext(new DefaultEventExecutor(new DefaultThreadFactory("t-events")));
}
Also used : DefaultEventExecutor(io.netty.util.concurrent.DefaultEventExecutor) DefaultThreadFactory(io.netty.util.concurrent.DefaultThreadFactory) IExecutionContext(com.accenture.trac.common.concurrent.IExecutionContext) ExecutionContext(com.accenture.trac.common.concurrent.ExecutionContext) LocalFileStorage(com.accenture.trac.common.storage.local.LocalFileStorage) Properties(java.util.Properties)

Example 2 with LocalFileStorage

use of com.accenture.trac.common.storage.local.LocalFileStorage in project tracdap by finos.

the class FileStorageReadWriteStability method setupStorage.

@BeforeAll
static void setupStorage() {
    var storageProps = new Properties();
    storageProps.put(IStorageManager.PROP_STORAGE_KEY, "TEST_STORAGE");
    storageProps.put(LocalFileStorage.CONFIG_ROOT_PATH, storageDir.toString());
    storage = new LocalFileStorage(storageProps);
    execContext = new ExecutionContext(new DefaultEventExecutor(new DefaultThreadFactory("t-events")));
}
Also used : DefaultEventExecutor(io.netty.util.concurrent.DefaultEventExecutor) DefaultThreadFactory(io.netty.util.concurrent.DefaultThreadFactory) IExecutionContext(com.accenture.trac.common.concurrent.IExecutionContext) ExecutionContext(com.accenture.trac.common.concurrent.ExecutionContext) LocalFileStorage(com.accenture.trac.common.storage.local.LocalFileStorage) Properties(java.util.Properties)

Example 3 with LocalFileStorage

use of com.accenture.trac.common.storage.local.LocalFileStorage in project tracdap by finos.

the class FileStorageOperationsTest method setupStorage.

@BeforeEach
void setupStorage() {
    var storageProps = new Properties();
    storageProps.put(IStorageManager.PROP_STORAGE_KEY, "TEST_STORAGE");
    storageProps.put(LocalFileStorage.CONFIG_ROOT_PATH, storageDir.toString());
    storage = new LocalFileStorage(storageProps);
    execContext = new ExecutionContext(new DefaultEventExecutor(new DefaultThreadFactory("t-events")));
}
Also used : DefaultEventExecutor(io.netty.util.concurrent.DefaultEventExecutor) DefaultThreadFactory(io.netty.util.concurrent.DefaultThreadFactory) IExecutionContext(com.accenture.trac.common.concurrent.IExecutionContext) ExecutionContext(com.accenture.trac.common.concurrent.ExecutionContext) LocalFileStorage(com.accenture.trac.common.storage.local.LocalFileStorage) Properties(java.util.Properties) BeforeEach(org.junit.jupiter.api.BeforeEach)

Aggregations

ExecutionContext (com.accenture.trac.common.concurrent.ExecutionContext)3 IExecutionContext (com.accenture.trac.common.concurrent.IExecutionContext)3 LocalFileStorage (com.accenture.trac.common.storage.local.LocalFileStorage)3 DefaultEventExecutor (io.netty.util.concurrent.DefaultEventExecutor)3 DefaultThreadFactory (io.netty.util.concurrent.DefaultThreadFactory)3 Properties (java.util.Properties)3 BeforeEach (org.junit.jupiter.api.BeforeEach)1