/** * Test file creation. * * @throws Exception In case of exception. */ public void testCreateFile() throws Exception { GridGgfsPath root = new GridGgfsPath("/"); GridGgfsPath path = new GridGgfsPath("/asdf"); long max = 100L * CFG_BLOCK_SIZE / WRITING_THREADS_CNT; for (long size = 0; size <= max; size = size * 15 / 10 + 1) { assertEquals(Collections.<GridGgfsPath>emptyList(), fs.listPaths(root)); testCreateFile(path, size, new Random().nextInt()); } }
/** @return Near keys. */ public List<byte[]> nearKeyBytes() { return nearKeyBytes != null ? nearKeyBytes : Collections.<byte[]>emptyList(); }
/** @return Collection of recovery writes. */ public Collection<GridCacheTxEntry<K, V>> recoveryWrites() { return recoveryWrites == null ? Collections.<GridCacheTxEntry<K, V>>emptyList() : recoveryWrites; }