@Test public void testaddCurrentOrchestrator() throws Exception { final String ORCHESTRATOR = "localhost:1000"; final String WAN_CURRENT_ORCHESTRATOR = "__WAN__CURRENT_ORCHESTRATOR"; wanUtil.addCurrentOrchestrator(CACHE_MANAGER_NAME, CACHE_NAME, ORCHESTRATOR); Assert.assertEquals(cacheConfigMap.get(WAN_CURRENT_ORCHESTRATOR), ORCHESTRATOR); }
public void addCurrentOrchestrator(String cacheManagerName, String cacheName, String orchestrator) { final ConcurrentMap<String, Serializable> cacheConfigMap = getCacheConfigMap(cacheManagerName, cacheName); cacheConfigMap.put(WAN_CURRENT_ORCHESTRATOR, orchestrator); LOGGER.info("Added '{}' as orchestrator for Cache '{}' in CacheManager '{}'", orchestrator, cacheName, cacheManagerName); }
WANUtil { public void addCurrentOrchestrator(String cacheManagerName, String cacheName, String orchestrator) { final ConcurrentMap<String, Serializable> cacheConfigMap = getCacheConfigMap(cacheManagerName, cacheName); cacheConfigMap.put(WAN_CURRENT_ORCHESTRATOR, orchestrator); LOGGER.info("Added '{}' as orchestrator for Cache '{}' in CacheManager '{}'", orchestrator, cacheName, cacheManagerName); } }
WANUtil { public void addCurrentOrchestrator(String cacheManagerName, String cacheName, String orchestrator) { final ConcurrentMap<String, Serializable> cacheConfigMap = getCacheConfigMap(cacheManagerName, cacheName); cacheConfigMap.put(WAN_CURRENT_ORCHESTRATOR, orchestrator); LOGGER.info("Added '{}' as orchestrator for Cache '{}' in CacheManager '{}'", orchestrator, cacheName, cacheManagerName); } WANUtil(ToolkitInstanceFactory factory); }
WANUtil { public void addCurrentOrchestrator(String cacheManagerName, String cacheName, String orchestrator) { final ConcurrentMap<String, Serializable> cacheConfigMap = getCacheConfigMap(cacheManagerName, cacheName); cacheConfigMap.put(WAN_CURRENT_ORCHESTRATOR, orchestrator); LOGGER.info("Added '{}' as orchestrator for Cache '{}' in CacheManager '{}'", orchestrator, cacheName, cacheManagerName); } WANUtil(ToolkitInstanceFactory factory); void markWANReady(String cacheManagerName); void clearWANReady(String cacheManagerName); boolean isWANReady(String cacheManagerName); void waitForOrchestrator(String cacheManagerName); void markCacheWanEnabled(String cacheManagerName, String cacheName); void markCacheAsReplica(String cacheManagerName, String cacheName); void markCacheAsMaster(String cacheManagerName, String cacheName); boolean isCacheReplica(String cacheManagerName, String cacheName); void markCacheAsBidirectional(String cacheManagerName, String cacheName); void markCacheAsUnidirectional(String cacheManagerName, String cacheName); void addCurrentOrchestrator(String cacheManagerName, String cacheName, String orchestrator); boolean isCacheBidirectional(String cacheManagerName, String cacheName); void markCacheWanDisabled(String cacheManagerName, String cacheName); boolean isWanEnabledCache(String cacheManagerName, String cacheName); void cleanUpCacheMetaData(String cacheManagerName, String cacheName); }
WANUtil { public void addCurrentOrchestrator(String cacheManagerName, String cacheName, String orchestrator) { final ConcurrentMap<String, Serializable> cacheConfigMap = getCacheConfigMap(cacheManagerName, cacheName); cacheConfigMap.put(WAN_CURRENT_ORCHESTRATOR, orchestrator); LOGGER.info("Added '{}' as orchestrator for Cache '{}' in CacheManager '{}'", orchestrator, cacheName, cacheManagerName); } WANUtil(ToolkitInstanceFactory factory); void markWANReady(String cacheManagerName); void clearWANReady(String cacheManagerName); boolean isWANReady(String cacheManagerName); void waitForOrchestrator(String cacheManagerName); void markCacheWanEnabled(String cacheManagerName, String cacheName); void markCacheAsReplica(String cacheManagerName, String cacheName); void markCacheAsMaster(String cacheManagerName, String cacheName); boolean isCacheReplica(String cacheManagerName, String cacheName); void markCacheAsBidirectional(String cacheManagerName, String cacheName); void markCacheAsUnidirectional(String cacheManagerName, String cacheName); void addCurrentOrchestrator(String cacheManagerName, String cacheName, String orchestrator); boolean isCacheBidirectional(String cacheManagerName, String cacheName); void markCacheWanDisabled(String cacheManagerName, String cacheName); boolean isWanEnabledCache(String cacheManagerName, String cacheName); void cleanUpCacheMetaData(String cacheManagerName, String cacheName);  }