Class NoAutoTuneService

java.lang.Object
io.ebeaninternal.server.autotune.NoAutoTuneService
All Implemented Interfaces:
AutoTune, AutoTuneService

public final class NoAutoTuneService extends Object implements AutoTuneService
Noop service when AutoTuneService is not available.
  • Constructor Details

    • NoAutoTuneService

      public NoAutoTuneService()
  • Method Details

    • startup

      public void startup()
      Description copied from interface: AutoTuneService
      Load the query tuning information.
      Specified by:
      startup in interface AutoTuneService
    • tuneQuery

      public boolean tuneQuery(SpiQuery<?> query)
      Description copied from interface: AutoTuneService
      Called when a query thinks it should be automatically tuned by AutoTune.

      Returns true if the query was tuned.

      Specified by:
      tuneQuery in interface AutoTuneService
    • collectProfiling

      public void collectProfiling()
      Description copied from interface: AutoTuneService
      Fire a garbage collection (hint to the JVM). Assuming garbage collection fires this will gather the usage profiling information.
      Specified by:
      collectProfiling in interface AutoTune
      Specified by:
      collectProfiling in interface AutoTuneService
    • reportProfiling

      public void reportProfiling()
      Specified by:
      reportProfiling in interface AutoTune
    • shutdown

      public void shutdown()
      Description copied from interface: AutoTuneService
      On shutdown fire garbage collection and collect statistics. Note that usually we add a little delay (100 milliseconds) to give the garbage collector plenty of time to do its thing and collect the profile information.
      Specified by:
      shutdown in interface AutoTuneService