]
Tomas Sykora reassigned ISPN-5512:
----------------------------------
Assignee: Martin Vrabel (was: Tomas Sykora)
Code in documentation differ with code on github
------------------------------------------------
Key: ISPN-5512
URL:
https://issues.jboss.org/browse/ISPN-5512
Project: Infinispan
Issue Type: Bug
Affects Versions: 7.2.1.Final
Reporter: Martin Vrabel
Assignee: Martin Vrabel
Priority: Trivial
Code in documentation:
EmbeddedCacheManager cm = new DefaultCacheManager("infinispan.xml");
Cache<Object, Object> cache1 = cm.getCache("replSyncCache");
Cache<Object, Object> cache2 = cm.getCache("replAsyncCache");
Cache<Object, Object> cache3 = cm.getCache("invalidationSyncCache");
Code on GitHub
public static void main(String[] args) throws Exception {
boolean useXmlConfig = false;
String cache = "repl";
String nodeName = null;
for (String arg : args) {
switch (arg) {
case "-x":
useXmlConfig = true;
break;
case "-p":
useXmlConfig = false;
break;
case "-d":
cache = "dist";
break;
case "-r":
cache = "repl";
break;
default:
nodeName = arg;
break;
}
}
new Node(useXmlConfig, cache, nodeName).run();
}
...
...
public void run() throws IOException, InterruptedException {
EmbeddedCacheManager cacheManager = createCacheManager();
final Cache<String, String> cache = cacheManager.getCache(cacheName);