Example usage for org.apache.hadoop.hdfs.protocol CachePoolInfo validateName

List of usage examples for org.apache.hadoop.hdfs.protocol CachePoolInfo validateName

Introduction

In this page you can find the example usage for org.apache.hadoop.hdfs.protocol CachePoolInfo validateName.

Prototype

public static void validateName(String poolName) throws IOException 

Source Link

Usage

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);
}