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

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

Introduction

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

Prototype

public static void validate(CachePoolInfo info) throws IOException 

Source Link

Usage

From source file:com.mellanox.r4h.DistributedFileSystem.java

License:Apache License

/**
 * Add a cache pool./*from w w  w .j a  v  a  2 s .  c o  m*/
 * 
 * @param info
 *            The request to add a cache pool.
 * @throws IOException
 *             If the request could not be completed.
 */
public void addCachePool(CachePoolInfo info) throws IOException {
    CachePoolInfo.validate(info);
    dfs.addCachePool(info);
}

From source file:com.mellanox.r4h.DistributedFileSystem.java

License:Apache License

/**
 * Modify an existing cache pool.//from  w  w w. j a v a  2 s.  c  o  m
 * 
 * @param info
 *            The request to modify a cache pool.
 * @throws IOException
 *             If the request could not be completed.
 */
public void modifyCachePool(CachePoolInfo info) throws IOException {
    CachePoolInfo.validate(info);
    dfs.modifyCachePool(info);
}