CompositeService.CompositeServiceShutdownHook (Apache Hadoop Common 3.5.0 API)
Description: declaration: package: org.apache.hadoop.service, class: CompositeService, class: CompositeServiceShutdownHook

Package org.apache.hadoop.service

# 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 Summary

  Constructors
  Constructor
  Description
  `CompositeServiceShutdownHook(CompositeService compositeService)`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `void`
  `run()`

  ### Methods inherited from class java.lang.Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## Constructor Details

  - ### CompositeServiceShutdownHook

    public CompositeServiceShutdownHook(CompositeService compositeService)

- ## Method Details

  - ### run

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