-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add
NoneHealthResponder
to replace default responder
- Loading branch information
1 parent
a74438d
commit 5f6fe4d
Showing
1 changed file
with
26 additions
and
0 deletions.
There are no files selected for viewing
26 changes: 26 additions & 0 deletions
26
...src/main/java/org/whispersystems/textsecuregcm/dropwizard/health/NoneHealthResponder.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
/* | ||
* Copyright 2023 Signal Messenger, LLC | ||
* SPDX-License-Identifier: AGPL-3.0-only | ||
*/ | ||
|
||
package org.whispersystems.textsecuregcm.dropwizard.health; | ||
|
||
import com.fasterxml.jackson.annotation.JsonTypeName; | ||
import com.fasterxml.jackson.databind.ObjectMapper; | ||
import io.dropwizard.health.HealthEnvironment; | ||
import io.dropwizard.health.response.HealthResponderFactory; | ||
import io.dropwizard.health.response.HealthResponseProvider; | ||
import io.dropwizard.jersey.setup.JerseyEnvironment; | ||
import io.dropwizard.jetty.setup.ServletEnvironment; | ||
import java.util.Collection; | ||
|
||
@JsonTypeName("none") | ||
public class NoneHealthResponder implements HealthResponderFactory { | ||
|
||
@Override | ||
public void configure(final String name, final Collection<String> healthCheckUrlPaths, | ||
final HealthResponseProvider healthResponseProvider, final HealthEnvironment health, | ||
final JerseyEnvironment jersey, final ServletEnvironment servlets, final ObjectMapper mapper) { | ||
// do nothing | ||
} | ||
} |