[infinispan-issues] [JBoss JIRA] (ISPN-5512) Code in documentation differ with code on github

Martin Vrabel (JIRA) issues at jboss.org
Wed May 27 11:07:03 EDT 2015


Martin Vrabel created ISPN-5512:
-----------------------------------

             Summary: 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: Tomas Sykora
            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);



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)


More information about the infinispan-issues mailing list