Examples of memory()


Examples of com.spotify.docker.client.messages.ContainerConfig.memory()

    try (final DockerClient docker = getNewDockerClient()) {

      final ContainerConfig containerConfig =
          docker.inspectContainer(taskStatus.getContainerId()).config();

      assertEquals(MEMORY, containerConfig.memory());
      assertEquals(MEMORY_SWAP, containerConfig.memorySwap());
      assertEquals(CPU_SHARES, containerConfig.cpuShares());
      assertEquals(CPUSET, containerConfig.cpuset());
    }
  }
View Full Code Here

Examples of com.tinkerpop.gremlin.process.computer.ComputerResult.memory()

            else if (name.equals("peter"))
                assertTrue(pageRank > 0.14 && pageRank < 0.16);
            else
                throw new IllegalStateException("The following vertex should not exist in the graph: " + name);
        });
        assertEquals(result.memory().getIteration(), 30);
        assertEquals(result.memory().asMap().size(), 0);
    }

}
View Full Code Here

Examples of com.tinkerpop.gremlin.process.computer.ComputerResult.memory()

                assertTrue(pageRank > 0.14 && pageRank < 0.16);
            else
                throw new IllegalStateException("The following vertex should not exist in the graph: " + name);
        });
        assertEquals(result.memory().getIteration(), 30);
        assertEquals(result.memory().asMap().size(), 0);
    }

}
View Full Code Here

Examples of com.tinkerpop.gremlin.process.computer.ComputerResult.memory()

                setup(memory -> {
                }).
                execute((vertex, messenger, memory) -> {
                }).
                terminate(memory -> memory.getIteration() > 2).create()).submit().get();
        assertEquals(result.memory().getIteration(), -1);
    }
}
View Full Code Here

Examples of org.jclouds.docker.compute.options.DockerTemplateOptions.memory()

            if (minRam != null) {
                double ratio = (double) minRam / (double) hostRam;
                LOG.info("Memory: host {}, min {}, ratio {}", new Object[] { hostRam, minRam, ratio });
            }
        }
        if (memory != null) options.memory(memory);

        // Volumes
        Map<String, String> volumes = MutableMap.copyOf(getDockerHost().getAttribute(DockerHost.DOCKER_HOST_VOLUME_MAPPING));
        Map<String, String> mapping = entity.getConfig(DockerHost.DOCKER_HOST_VOLUME_MAPPING);
        if (mapping != null) {
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.