public static void main(String args[]) { System.out.println(availableProcessors()); } }
@Override public long synchronizeData(final Cache<Object, Object> cache) throws CacheException { return synchronizeData(cache, 0, ProcessorInfo.availableProcessors()); }
@Test @Category(Java10.class) public void testCPUCount() { assertTrue(ProcessorInfo.availableProcessors() <= Runtime.getRuntime().availableProcessors()); } }
@Test public void testQueryOnly() throws Exception { nodes.addAll(range(0, getQueryingNodes()).boxed() .map(i -> new TimeBoundQueryNode(1L, TimeUnit.MINUTES, 100L, TimeUnit.MILLISECONDS, getQueryThreadsPerNode(), getQueryType())) .collect(Collectors.toList())); nodes.forEach(Node::addToCluster); waitForClusterToForm(); addDataToCluster(getNumEntries(), ProcessorInfo.availableProcessors() * 2); warmup(); summarizeQueryOnlyTest(runTests()); }