Package org.infinispan.quickstart

Source Code of org.infinispan.quickstart.Quickstart

package org.infinispan.quickstart;

import java.io.IOException;

import org.infinispan.Cache;
import org.infinispan.manager.DefaultCacheManager;

public class Quickstart {

  public static void main(String[] args) throws IOException {
   
//    Cache<Object, Object> c = new DefaultCacheManager("infinispan-distribution.xml").getCache();
//    System.out.println(c.getVersion());
//    c.stop();
   
//    Cache<Object, Object> c = new DefaultCacheManager("infinispan-replication.xml").getCache();
//    System.out.println(c.getVersion());
//    c.stop();
   
    Cache<Object, Object> c = new DefaultCacheManager("infinispan-invalidation.xml").getCache();
    System.out.println(c.getVersion());
    c.stop();
  }

}
TOP

Related Classes of org.infinispan.quickstart.Quickstart

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.