-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feature: add shutdown notifier #28
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The implementation is pretty good! Approved.
However,
I did a little bit of research, googeling and gpt´ing and jumped into a "how to make the shutdown-hook-manager-hole".
Apache Hadoop has a very similar one to our´s.
So...I created a gist with my version of a ShutdownHookManager. Don´t blame me for doing stuff like that in my freetime, but I think it came out pretty beautiful.
Have a look and tell me what you think about it:
https://gist.github.com/levinkerschberger/962cb4277ec5b85e3a4a8ad7d52fb7e5
...-agent/src/main/java/rocks/inspectit/gepard/agent/internal/shutdown/ShutdownHookManager.java
Outdated
Show resolved
Hide resolved
...-agent/src/main/java/rocks/inspectit/gepard/agent/internal/shutdown/ShutdownHookManager.java
Outdated
Show resolved
Hide resolved
inspectit-gepard-agent/src/main/java/rocks/inspectit/gepard/agent/InspectitAgentExtension.java
Show resolved
Hide resolved
...-agent/src/main/java/rocks/inspectit/gepard/agent/internal/shutdown/ShutdownHookManager.java
Outdated
Show resolved
Hide resolved
...-agent/src/main/java/rocks/inspectit/gepard/agent/internal/shutdown/ShutdownHookManager.java
Outdated
Show resolved
Hide resolved
...agent/src/test/java/rocks/inspectit/gepard/agent/configuration/ConfigurationManagerTest.java
Outdated
Show resolved
Hide resolved
...nt/src/test/java/rocks/inspectit/gepard/agent/internal/shutdown/ShutdownHookManagerTest.java
Show resolved
Hide resolved
...nt/src/test/java/rocks/inspectit/gepard/agent/notification/http/NotificationFactoryTest.java
Show resolved
Hide resolved
I will surely take some inspiration from your and Hadoops's code |
Quality Gate passedIssues Measures |
No description provided.