public synchronized int[] getSSTableCountPerLevel() { if (this.repaired instanceof LeveledCompactionStrategy && this.unrepaired instanceof LeveledCompactionStrategy) { int [] repairedCountPerLevel = ((LeveledCompactionStrategy) repaired).getAllLevelSize(); int [] unrepairedCountPerLevel = ((LeveledCompactionStrategy) unrepaired).getAllLevelSize(); return sumArrays(repairedCountPerLevel, unrepairedCountPerLevel); } return null; }
public int[] getSSTableCountPerLevel() { maybeReloadDiskBoundaries(); readLock.lock(); try { if (repaired.get(0) instanceof LeveledCompactionStrategy && unrepaired.get(0) instanceof LeveledCompactionStrategy) { int[] res = new int[LeveledManifest.MAX_LEVEL_COUNT]; for (AbstractCompactionStrategy strategy : repaired) { int[] repairedCountPerLevel = ((LeveledCompactionStrategy) strategy).getAllLevelSize(); res = sumArrays(res, repairedCountPerLevel); } for (AbstractCompactionStrategy strategy : unrepaired) { int[] unrepairedCountPerLevel = ((LeveledCompactionStrategy) strategy).getAllLevelSize(); res = sumArrays(res, unrepairedCountPerLevel); } return res; } } finally { readLock.unlock(); } return null; }
public int[] getSSTableCountPerLevel() { maybeReloadDiskBoundaries(); readLock.lock(); try { if (repaired.get(0) instanceof LeveledCompactionStrategy && unrepaired.get(0) instanceof LeveledCompactionStrategy) { int[] res = new int[LeveledManifest.MAX_LEVEL_COUNT]; for (AbstractCompactionStrategy strategy : repaired) { int[] repairedCountPerLevel = ((LeveledCompactionStrategy) strategy).getAllLevelSize(); res = sumArrays(res, repairedCountPerLevel); } for (AbstractCompactionStrategy strategy : unrepaired) { int[] unrepairedCountPerLevel = ((LeveledCompactionStrategy) strategy).getAllLevelSize(); res = sumArrays(res, unrepairedCountPerLevel); } return res; } } finally { readLock.unlock(); } return null; }
public int[] getSSTableCountPerLevel() { maybeReloadDiskBoundaries(); readLock.lock(); try { if (repaired.get(0) instanceof LeveledCompactionStrategy && unrepaired.get(0) instanceof LeveledCompactionStrategy) { int[] res = new int[LeveledManifest.MAX_LEVEL_COUNT]; for (AbstractCompactionStrategy strategy : repaired) { int[] repairedCountPerLevel = ((LeveledCompactionStrategy) strategy).getAllLevelSize(); res = sumArrays(res, repairedCountPerLevel); } for (AbstractCompactionStrategy strategy : unrepaired) { int[] unrepairedCountPerLevel = ((LeveledCompactionStrategy) strategy).getAllLevelSize(); res = sumArrays(res, unrepairedCountPerLevel); } return res; } } finally { readLock.unlock(); } return null; }