public void updateMemoryStatistics(MallInfo mallInfo) {
   getTotalAllocated().setEntity(mallInfo.getArena());
   getFreeBlocks().setEntity(mallInfo.getOrdblks());
   getFreeFastbin().setEntity(mallInfo.getSmblks());
   getMmappedBlocks().setEntity(mallInfo.getHblks());
   getSpaceAllocatedMmapped().setEntity(mallInfo.getHblkhd());
   getMaxTotalAllocated().setEntity(mallInfo.getUsmblks());
   getSpaceFreedFastbin().setEntity(mallInfo.getFsmblks());
   getTotalAllocatedSpace().setEntity(mallInfo.getUordblks());
   getTotalFreeSpace().setEntity(mallInfo.getFordblks());
   getReleasableFreeSpace().setEntity(mallInfo.getKeepcost());
 }
 @Override
 public List<Statistic> getStatistics(GlusterBrickEntity entity) {
   BrickDetails brickDetails = entity.getBrickDetails();
   MallInfo mallInfo = brickDetails.getMemoryStatus().getMallInfo();
   return asList(
       setDatum(clone(MEM_TOTAL_SIZE), brickDetails.getBrickProperties().getTotalSize() * Mb),
       setDatum(clone(MEM_FREE_SIZE), brickDetails.getBrickProperties().getFreeSize() * Mb),
       setDatum(clone(MEM_BLOCK_SIZE), brickDetails.getBrickProperties().getBlockSize() * Mb),
       setDatum(clone(MEM_MALL_ARENA), mallInfo.getArena()),
       setDatum(clone(MEM_MALL_ORDBLKS), mallInfo.getOrdblks()),
       setDatum(clone(MEM_MALL_SMBLKS), mallInfo.getSmblks()),
       setDatum(clone(MEM_MALL_HBLKS), mallInfo.getHblks()),
       setDatum(clone(MEM_MALL_HBLKSHD), mallInfo.getHblkhd()),
       setDatum(clone(MEM_MALL_USMBLKS), mallInfo.getUsmblks()),
       setDatum(clone(MEM_MALL_FSMBLKS), mallInfo.getFsmblks()),
       setDatum(clone(MEM_MALL_UORDBLKS), mallInfo.getUordblks()),
       setDatum(clone(MEM_MALL_FORDBLKS), mallInfo.getFordblks()),
       setDatum(clone(MEM_MALL_KEEPCOST), mallInfo.getKeepcost()));
 }