resources/memory/weight_balancing_memory_heuristic.rb
# Creates an instance based on a hash containing memory settings, and the application's memory size in
# $MEMORY_LIMIT.
#
# @param [Hash<String, String>] sizes any sizes specified by the user
# @param [Hash<String, Numeric>] heuristics the memory heuristics specified by the user
# @param [Array<String>] valid_types the valid types of memory
# @param [Hash<String, String>] java_opts a mapping from a memory type to a +JAVA_OPTS+ option
Creates an instance based on a hash containing memory settings, and the application's memory size in
$MEMORY_LIMIT.
Creates an instance based on a hash containing memory settings and the application ' s memory size in $MEMORY_LIMIT .
def create_memory_buckets(sizes, heuristics)
    buckets = {}
    heuristics.each_pair do |type, weighting|
      range         = nil_safe_range sizes[type]
      buckets[type] = create_memory_bucket(type, weighting, range)
    end
    buckets
  end
def create_memory_buckets ( sizes , heuristics ) buckets = { } heuristics . each_pair do | type , weighting | range = nil_safe_range sizes [ type ] buckets [ type ] = create_memory_bucket ( type , weighting , range ) end buckets end
Creates an instance based on a hash containing memory settings, and the application's memory size in
$MEMORY_LIMIT.
Creates an instance based on a hash containing memory settings and the application ' s memory size in $MEMORY_LIMIT .
sizes
heuristics
java_opts a mapping from a memory type to a +JAVA_OPTS+ option
java_opts a mapping from a memory type to a + JAVA_OPTS + option