ASTERIXDB-1058: ensure memory availablity before allocation

This change includes the following:
- IResourceMemeoryManager responsible for resources memory budget calculation.
- ResourceHeapBufferAllocator which checks with IResourceManager before allocation.

Change-Id: I846ff45402410835f5ed0afd2f701509abc95222
Reviewed-on: https://asterix-gerrit.ics.uci.edu/480
Tested-by: Jenkins <jenkins@fulliautomatix.ics.uci.edu>
Reviewed-by: Ian Maxon <imaxon@apache.org>
8 files changed
tree: 7a17c339edad9f96947b4cc511f1ebce20ae7c7e
  1. algebricks/
  2. hyracks/
  3. src/
  4. .gitignore
  5. DISCLAIMER
  6. LICENSE
  7. NOTICE
  8. pom.xml