@CacheStarted public void cacheStarted(CacheStartedEvent event) { InfinispanLogger.ROOT_LOGGER.cacheStarted(event.getCacheName(), this.name); }
@CacheStarted public void cacheStarted(CacheStartedEvent event) { log("Started", event.getCacheName(), event.getCacheManager()); }
@CacheStarted public void cacheStarted(CacheStartedEvent event) { if (!event.getCacheManager().getGlobalComponentRegistry().getComponent(InternalCacheRegistry.class).isInternalCache(event.getCacheName())) InfinispanLogger.ROOT_LOGGER.cacheStarted(event.getCacheName(), this.name); }
@CacheStarted public void cacheStarted(CacheStartedEvent event) { if (log.isTraceEnabled()) { log.trace("Cache Started " + event.getCacheName()); } }
@CacheStarted public void logCacheManagerStart(final CacheStartedEvent event) { Logger log = LogManager.getLogger("MAIN"); EmbeddedCacheManager cacheManager = event.getCacheManager(); if (!cacheManager.getCacheManagerConfiguration().isClustered()) { // Local Infinispan (no cluster) log.info("[CM8008] Infinispan clustering: not configured"); } else if (clusterInfoLogged.compareAndSet(false, true)) { // Clustered Infinispan, log cluster conf for the first start cache event only // to prevent duplicate log lines with same cluster info log.info("[CM8007] Infinispan status: {}", cacheManager.getStatus()); log.info("[CM8009] Infinispan cluster name: {}", cacheManager.getCacheManagerConfiguration().transport().clusterName()); log.info("[CM8010] Infinispan cluster local node logical address: {}", cacheManager.getAddress()); log.info("[CM8019] Infinispan cluster local node physical address(es): {}", cacheManager.getCacheManagerConfiguration().transport().transport().getPhysicalAddresses()); log.info("[CM8011] Infinispan cluster coordinator logical address: {}", cacheManager.getCoordinator()); log.info("[CM8016] Infinispan cluster local node is coordinator: {}", cacheManager.isCoordinator()); log.info("[CM8012] Infinispan cluster members: {}", cacheManager.getMembers()); log.info("[CM8013] Infinispan cluster distributed sync timeout: {}", cacheManager.getCacheManagerConfiguration().transport().distributedSyncTimeout()); log.info("[CM8014] Infinispan cluster JGroups configuration file: {}", cacheManager.getCacheManagerConfiguration().transport().properties().getProperty("configurationFile")); } final Date now = new Date(); log.info("[CM8006] Started Infinispan {} cache {} in {} ms", cacheManager.getCacheConfiguration(event.getCacheName()).clustering().cacheModeString(), event.getCacheName(), now.getTime() - initiationTimestamp.getTime()); } }
@Override @CacheStarted public void fire(CacheStartedEvent payload) { if (payload.getCacheName().equals(cacheName)) { super.fire(payload); } } }
@Override @CacheStarted public void fire(CacheStartedEvent payload) { if (payload.getCacheName().equals(cacheName)) { super.fire(payload); } } }
@CacheStarted public void cacheStarted(CacheStartedEvent event) { InfinispanLogger.ROOT_LOGGER.cacheStarted(event.getCacheName(), this.name); }
@CacheStarted public void cacheStarted(CacheStartedEvent event) { log.tracef("Cache started: %s", event.getCacheName()); if (cacheName.equals(event.getCacheName())) { cacheStartBlocked.complete(null); cacheStartResumed.join(); } }
public ObserverAssertion hasProperName(String cacheName) { assertEquals(getNonEmptyListOfEvents(CacheStartedEvent.class).get(0).getCacheName(), cacheName); return this; }
public ObserverAssertion hasProperName(String cacheName) { assertEquals(getNonEmptyListOfEvents(CacheStartedEvent.class).get(0).getCacheName(), cacheName); return this; }
public void testNotifyCacheStarted() { n.notifyCacheStarted("cache"); assert cl.invocationCount == 1; assert ((CacheStartedEvent) cl.getEvent()).getCacheName().equals("cache"); assert cl.getEvent().getType() == Event.Type.CACHE_STARTED; }