public ScaleIOStoragePool queryStoragePool(String poolId) throws Exception {
  ClientResponse response=get(URI.create(ScaleIOConstants.getStoragePoolStatsURI(poolId)));
  ScaleIOStoragePool pool=getResponseObject(ScaleIOStoragePool.class,response);
  ScaleIOStoragePool poolStats=getStoragePoolStats(poolId);
  pool.setCapacityAvailableForVolumeAllocationInKb(poolStats.getCapacityAvailableForVolumeAllocationInKb());
  pool.setMaxCapacityInKb(poolStats.getMaxCapacityInKb());
  return pool;
}

public ScaleIOStoragePool queryStoragePool ( String poolId ) throws Exception { ClientResponse response = get ( URI . create ( ScaleIOConstants . getStoragePoolStatsURI ( poolId ) ) ) ; ScaleIOStoragePool pool = getResponseObject ( ScaleIOStoragePool . class , response ) ; ScaleIOStoragePool poolStats = getStoragePoolStats ( poolId ) ; pool . setCapacityAvailableForVolumeAllocationInKb ( poolStats . getCapacityAvailableForVolumeAllocationInKb ( ) ) ; pool . setMaxCapacityInKb ( poolStats . getMaxCapacityInKb ( ) ) ; return pool ; }
get the detail information for a pool
