Search in sources :

Example 1 with DummyTaskEngine

use of org.infinispan.tasks.DummyTaskEngine in project infinispan by infinispan.

the class TasksResourceTest method defineCaches.

@Override
protected void defineCaches(EmbeddedCacheManager cm) {
    cm.defineConfiguration("default", getDefaultCacheBuilder().build());
    GlobalComponentRegistry gcr = cm.getGlobalComponentRegistry();
    TaskManager taskManager = gcr.getComponent(TaskManager.class);
    TaskEngine taskEngine = new DummyTaskEngine();
    taskManager.registerTaskEngine(taskEngine);
}
Also used : DummyTaskEngine(org.infinispan.tasks.DummyTaskEngine) TaskEngine(org.infinispan.tasks.spi.TaskEngine) TaskManager(org.infinispan.tasks.TaskManager) GlobalComponentRegistry(org.infinispan.factories.GlobalComponentRegistry) DummyTaskEngine(org.infinispan.tasks.DummyTaskEngine)

Aggregations

GlobalComponentRegistry (org.infinispan.factories.GlobalComponentRegistry)1 DummyTaskEngine (org.infinispan.tasks.DummyTaskEngine)1 TaskManager (org.infinispan.tasks.TaskManager)1 TaskEngine (org.infinispan.tasks.spi.TaskEngine)1