Examples of FakeHealthCheck


Examples of com.squareup.rack.examples.dropwizard.health.FakeHealthCheck

  }

  @Override public void run(Configuration config, Environment environment) {
    // Suppress the "THIS SERVICE HAS NO HEALTHCHECKS" warning.
    // A real service would have proper health checks.
    environment.addHealthCheck(new FakeHealthCheck());

    // Suppress the "ResourceConfig instance does not contain any root resource classes" error.
    // A real service would probably provide a Jersey resource or two.
    environment.addResource(EmptyResource.class);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.