Class: GCTuner::Heuristic::Base

Inherits:
Object
  • Object
show all
Defined in:
lib/gc_tuner/heuristic/base.rb

Direct Known Subclasses

SizePoolWarmup

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.disable!Object



11
12
13
# File 'lib/gc_tuner/heuristic/base.rb', line 11

def disable!
  @disabled = true
end

.enabled?Boolean

Returns:

  • (Boolean)


7
8
9
# File 'lib/gc_tuner/heuristic/base.rb', line 7

def enabled?
  supported? && !@disabled
end

Instance Method Details

#call(request_time, before_gc_context, after_gc_context) ⇒ Object

Raises:

  • (NotImplementedError)


22
23
24
# File 'lib/gc_tuner/heuristic/base.rb', line 22

def call(request_time, before_gc_context, after_gc_context)
  raise NotImplementedError
end

#debug_messageObject

Raises:

  • (NotImplementedError)


30
31
32
# File 'lib/gc_tuner/heuristic/base.rb', line 30

def debug_message
  raise NotImplementedError
end

#tuning_messageObject

Raises:

  • (NotImplementedError)


26
27
28
# File 'lib/gc_tuner/heuristic/base.rb', line 26

def tuning_message
  raise NotImplementedError
end