[REEF-1654] Implement graceful shutdown of Wake executor services

This is work towards "REEF as a library" project
[REEF-1561](https://issues.apache.org/jira/browse/REEF-1561)

Summary of changes:
  * Catch the `InterruptedException` in `ThreadPoolStage` and make sure its
    `.close()` method never throws
  * Gracefully shutdown threads in `NettyMessagingTransport.close()`
  * Catch errors when closing the acceptor channel in `NettyMessagingTransport`
  * Make shure `NettyMessagingTransport.close()` never throws
  * Improve logging in `.close()` methods of `NettyMessagingTransport` and
    `ThreadPoolStage`
  * Minor refactoring for readability

JIRA:
  [REEF-1654](https://issues.apache.org/jira/browse/REEF-1654)

Pull Request:
  This closes #1174
2 files changed
tree: fc6e867cafdcb2c96a16bbaf2d36e1dd69da684d
  1. bin/
  2. dev/
  3. lang/
  4. website/
  5. .gitattributes
  6. .gitignore
  7. .travis.yml
  8. appveyor.yml
  9. Doxyfile
  10. HEADER
  11. LICENSE
  12. NOTICE
  13. pom.xml
  14. README.md
README.md

Apache REEF™

Apache REEF™ (Retainable Evaluator Execution Framework) is a library for developing portable applications for cluster resource managers such as Apache Hadoop YARN or Apache Mesos. For example, Microsoft Azure Stream Analytics is built on REEF and Hadoop.

Online Documentation

Detailed information on REEF can be found in the following places:

The developer mailing list is the best way to reach REEF‘s developers when the above aren’t sufficient.

Build Status

ComponentOSStatus
REEF JavaUbuntuBuild Status
REEF.NETWindowsBuild status

Building REEF

Java.NET
Build & run unit testsjava\BUILD.mdcs\BUILD.md

Releases

downloads NuGet package

License

Apache 2.0