Skip to content
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

How totally stop/disable health service on my server? #773

Open
alexhumanbean opened this issue Jan 2, 2017 · 3 comments
Open

How totally stop/disable health service on my server? #773

alexhumanbean opened this issue Jan 2, 2017 · 3 comments

Comments

@alexhumanbean
Copy link

How totally stop/disable health service on my server?
There are lots of annoying messages in the log HealthService::checkInOk() many times...
I tried many ways,but it's still alive:

ManagedServiceBuilder......setEnableLocalHealth(false).setHealthService(null);
.....
managedServiceBuilder.....setEnableHealthEndpoint(false)
.....
HealthServiceImpl healthService.....
healthService.stop();

@alexhumanbean
Copy link
Author

alexhumanbean commented Jan 2, 2017

I assume the health service is already stopped.
BUT how to disable these HEALTH CHECKS ??? (I don't want to recompile QBit nor to use reflection)

@alexhumanbean
Copy link
Author

The only way I have found:

public class EndpointServerBuilderNoHealth extends EndpointServerBuilder {
public HealthServiceAsync getHealthService() {
return null;
}
}

@manysc
Copy link

manysc commented Nov 1, 2017

You could also create a class that implements HealthServiceAsync and then set EndpointServerBuilder's health service:

serverBuilder.setHealthService(new HealthServiceAsyncImpl());

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants