HdfsVariables { public static CountersQueue.Counter incrementBlockIdCounter( final long increment) throws IOException { return (CountersQueue.Counter) new LightWeightRequestHandler( HDFSOperationType.UPDATE_BLOCK_ID_COUNTER) { @Override public Object performTask() throws IOException { return incrementCounter(Variable.Finder.BlockID, increment); } }.handle(); }  static CountersQueue.Counter incrementBlockIdCounter(
      final long increment); static CountersQueue.Counter incrementINodeIdCounter(
      final long increment); static CountersQueue.Counter incrementQuotaUpdateIdCounter(
      final long increment); static CountersQueue.Counter incrementCacheDirectiveIdCounter(
      final int increment); static void resetMisReplicatedIndex(); static Long incrementMisReplicatedIndex(final int increment); static void setSafeModeInfo(final FSNamesystem.SafeModeInfo safeModeInfo, final long reached); static void exitSafeMode(); static void setSafeModeReached(final long reached); static long getSafeModeReached(); static List<Object> getSafeModeFromDB(); static void setMaxConcurrentBrs(final long value, Configuration conf); static long getMaxConcurrentBrs(); static void setReplicationIndex(List<Integer> indeces); static List<Integer> getReplicationIndex(); static void setStorageInfo(StorageInfo storageInfo); static StorageInfo getStorageInfo(); static void setRollingUpgradeInfo(RollingUpgradeInfo rollingUpgradeInfo); static RollingUpgradeInfo getRollingUpgradeInfo(); static void updateBlockTokenKeys(BlockKey curr, BlockKey next); static void updateBlockTokenKeys(BlockKey curr, BlockKey next, BlockKey simple); static Map<Integer, BlockKey> getAllBlockTokenKeysByID(); static Map<Integer, BlockKey> getAllBlockTokenKeysByType(); static Map<Integer, BlockKey> getAllBlockTokenKeysByIDLW(); static Map<Integer, BlockKey> getAllBlockTokenKeysByTypeLW(); static int getSIdCounter(); static void setSIdCounter(int sid); static boolean getNeedRescan(); static void setNeedRescan(); static void setCompletedAndCurScanCount(); static void setCurScanCount(); static int getCurScanCount(); static void setBlockTotal(final int value); static void setBlockTotal(final int blockTotal, final int blockThreshold,
      final int blockReplicationQueueThreshold); static void updateBlockTotal(final int deltaBlockTotal, final double threshold,
      final double replicationQueueThreshold); static int getBlockTotal(); static int getBlockThreshold(); static long getRetryCacheCleanerEpoch(); static void setRetryCacheCleanerEpoch(final long epoch); static int getBlockReplicationQueueThreshold(); static void registerDefaultValues(Configuration conf);  }
@Test public void testIncrementBlockIdCounter() throws Exception { testIncrementCounter(CounterType.BlockId, 100); }