List of usage examples for org.apache.hadoop.hdfs.protocol CachePoolInfo validateName
public static void validateName(String poolName) throws IOException
From source file:com.mellanox.r4h.DistributedFileSystem.java
License:Apache License
/** * Remove a cache pool./* w w w. java 2s. c o m*/ * * @param poolName * Name of the cache pool to remove. * @throws IOException * if the cache pool did not exist, or could not be removed. */ public void removeCachePool(String poolName) throws IOException { CachePoolInfo.validateName(poolName); dfs.removeCachePool(poolName); }