Class CompositeService.CompositeServiceShutdownHook

java.lang.Object
org.apache.hadoop.service.CompositeService.CompositeServiceShutdownHook
All Implemented Interfaces:
Runnable
Enclosing class:
CompositeService

public static class CompositeService.CompositeServiceShutdownHook extends Object implements Runnable
JVM Shutdown hook for CompositeService which will stop the give CompositeService gracefully in case of JVM shutdown.
  • Constructor Details

    • CompositeServiceShutdownHook

      public CompositeServiceShutdownHook(CompositeService compositeService)
  • Method Details

    • run

      public void run()
      Specified by:
      run in interface Runnable