Search in sources :

Example 26 with GlobalComponentRegistry

use of org.infinispan.factories.GlobalComponentRegistry in project infinispan by infinispan.

the class TaskManagerTest method setup.

@Override
protected void setup() throws Exception {
    super.setup();
    GlobalComponentRegistry gcr = cacheManager.getGlobalComponentRegistry();
    taskManager = (TaskManagerImpl) gcr.getComponent(TaskManager.class);
    taskEngine = new DummyTaskEngine();
    taskManager.registerTaskEngine(taskEngine);
    memoryLogger = new MemoryEventLogger(cacheManager, gcr.getTimeService());
    gcr.getComponent(EventLogManager.class).replaceEventLogger(memoryLogger);
}
Also used : EventLogManager(org.infinispan.util.logging.events.EventLogManager) GlobalComponentRegistry(org.infinispan.factories.GlobalComponentRegistry)

Aggregations

GlobalComponentRegistry (org.infinispan.factories.GlobalComponentRegistry)26 GlobalConfiguration (org.infinispan.configuration.global.GlobalConfiguration)7 ComponentRegistry (org.infinispan.factories.ComponentRegistry)7 BasicComponentRegistry (org.infinispan.factories.impl.BasicComponentRegistry)7 EmbeddedCacheManager (org.infinispan.manager.EmbeddedCacheManager)7 ConfigurationManager (org.infinispan.configuration.ConfigurationManager)5 Cache (org.infinispan.Cache)4 CacheException (org.infinispan.commons.CacheException)4 ConfigurationBuilder (org.infinispan.configuration.cache.ConfigurationBuilder)4 Transport (org.infinispan.remoting.transport.Transport)4 CacheMode (org.infinispan.configuration.cache.CacheMode)3 Configuration (org.infinispan.configuration.cache.Configuration)3 GlobalConfigurationBuilder (org.infinispan.configuration.global.GlobalConfigurationBuilder)3 ModuleLifecycle (org.infinispan.lifecycle.ModuleLifecycle)3 JGroupsTransport (org.infinispan.remoting.transport.jgroups.JGroupsTransport)3 Path (java.nio.file.Path)2 HashMap (java.util.HashMap)2 LinkedList (java.util.LinkedList)2 Properties (java.util.Properties)2 AdvancedCache (org.infinispan.AdvancedCache)2