Package org.jboss.cache

Examples of org.jboss.cache.TreeCacheMBean.printDetails()


      props.setProperty("java.naming.provider.url", "jnp://localhost:1099");
      props.setProperty("java.naming.factory.url.pkgs", "org.jboss.naming");
      InitialContext ctx=new InitialContext(props);
      cache=(TreeCacheMBean)ctx.lookup(jndi_name);
      cache.put("a/b/c", null);
      System.out.println("Cache: " + cache.printDetails());
      System.out.println("cache mode: " + cache.getCacheMode());
      int numLocks, numNodes, numAttrs;

      numLocks=cache.getNumberOfLocksHeld();
      numNodes=cache.getNumberOfNodes();
View Full Code Here

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.