-
Notifications
You must be signed in to change notification settings - Fork 10
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
OZ-476: Added ShutdownHandler #33
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.
@VaishSiddharth please update the PR desc. to reflect the latest state of things.
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.
I would get rid of Utils
class, add the logic to ShutdownHandler
. Otherwise this LGTM!
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.
Could you also add some unit tests @VaishSiddharth?
commons/src/test/java/com/ozonehis/eip/utils/ShutdownHandlerTest.java
Outdated
Show resolved
Hide resolved
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.
LGTM!
Thanks @VaishSiddharth
Added
ShutdownHandler
which will be triggered fromgenerate-demo-data-route
after the data is generated. It will shutdown the server.JIRA: https://mekomsolutions.atlassian.net/browse/OZ-476