Package org.gridkit.coherence.chtest

Examples of org.gridkit.coherence.chtest.SimpleCohCloud.node()


    final String cacheName = "objects";
   
      SimpleCohCloud cloud = new SimpleCohCloud();
      cloud.all().outOfProcess(true);

      cloud.node("client").localStorage(false);
      cloud.node("storage").localStorage(true);
      JvmProps.at(cloud.node("storage")).addJvmArg(storageVmOptions);
     
        cloud.all().setProp("tangosol.pof.enabled", "true");
        cloud.all().setProp("tangosol.pof.config", "capacity-benchmark-pof-config.xml");
View Full Code Here


   
      SimpleCohCloud cloud = new SimpleCohCloud();
      cloud.all().outOfProcess(true);

      cloud.node("client").localStorage(false);
      cloud.node("storage").localStorage(true);
      JvmProps.at(cloud.node("storage")).addJvmArg(storageVmOptions);
     
        cloud.all().setProp("tangosol.pof.enabled", "true");
        cloud.all().setProp("tangosol.pof.config", "capacity-benchmark-pof-config.xml");
        cloud.all().setProp("tangosol.coherence.cacheconfig", "capacity-benchmark-cache-config.xml");
View Full Code Here

      SimpleCohCloud cloud = new SimpleCohCloud();
      cloud.all().outOfProcess(true);

      cloud.node("client").localStorage(false);
      cloud.node("storage").localStorage(true);
      JvmProps.at(cloud.node("storage")).addJvmArg(storageVmOptions);
     
        cloud.all().setProp("tangosol.pof.enabled", "true");
        cloud.all().setProp("tangosol.pof.config", "capacity-benchmark-pof-config.xml");
        cloud.all().setProp("tangosol.coherence.cacheconfig", "capacity-benchmark-cache-config.xml");
View Full Code Here

        cloud.all().setProp("benchmark-default-scheme", scheme);
       
        cloud.all().getCache(cacheName);
       
        int storagePid = cloud.node("storage").exec(new Callable<Integer>() {
            @Override
            public Integer call() throws Exception {
                String name = ManagementFactory.getRuntimeMXBean().getName();
                name = name.substring(0, name.indexOf("@"));
                return Integer.parseInt(name);
View Full Code Here

        loader.rangeStart = 1000000;       
        loader.rangeFinish = 1000000 + objectCount;
       
       
        System.out.println("Cold loading");
        cloud.node("client").exec(loader);
        HeapHisto loaded1 = histo(storagePid, true);
       
        System.out.println("Storage heap usage delta: " + ((loaded1.totalBytes() - initial.totalBytes()) >> 20) + "MiB");
       
        cloud.node("client").getCache(cacheName).clear();
View Full Code Here

        cloud.node("client").exec(loader);
        HeapHisto loaded1 = histo(storagePid, true);
       
        System.out.println("Storage heap usage delta: " + ((loaded1.totalBytes() - initial.totalBytes()) >> 20) + "MiB");
       
        cloud.node("client").getCache(cacheName).clear();
        cloud.node("client").getCache(cacheName).size();

        HeapHisto empty = histo(storagePid, true);
        System.out.println("Empty heap size: " + (empty.totalBytes() >> 20) + "MiB");
View Full Code Here

        HeapHisto loaded1 = histo(storagePid, true);
       
        System.out.println("Storage heap usage delta: " + ((loaded1.totalBytes() - initial.totalBytes()) >> 20) + "MiB");
       
        cloud.node("client").getCache(cacheName).clear();
        cloud.node("client").getCache(cacheName).size();

        HeapHisto empty = histo(storagePid, true);
        System.out.println("Empty heap size: " + (empty.totalBytes() >> 20) + "MiB");

        System.out.println("Warm loading");
View Full Code Here

        HeapHisto empty = histo(storagePid, true);
        System.out.println("Empty heap size: " + (empty.totalBytes() >> 20) + "MiB");

        System.out.println("Warm loading");
        cloud.node("client").exec(loader);
        HeapHisto loaded2 = histo(storagePid, true);
   
        System.out.println("Storage heap usage delta: " + ((loaded2.totalBytes() - empty.totalBytes()) >> 20) + "MiB");
       
        System.out.println("Storage heap full vs initial summary:");
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.