List of usage examples for org.apache.hadoop.hdfs.protocol CachePoolInfo validate
public static void validate(CachePoolInfo info) throws IOException
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); }