-
Notifications
You must be signed in to change notification settings - Fork 90
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Always optimize generate features on dependency change and update fai…
…ling dev mode IT Signed-off-by: Kathryn Kodama <kathryn.s.kodama@gmail.com>
- Loading branch information
1 parent
26976de
commit 4839d81
Showing
5 changed files
with
64 additions
and
26 deletions.
There are no files selected for viewing
21 changes: 21 additions & 0 deletions
21
...projects/typeA/war/src/main/java/io/openliberty/guides/multimodules/web/SystemHealth.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,21 @@ | ||
package io.openliberty.guides.multimodules.web; | ||
|
||
import javax.enterprise.context.ApplicationScoped; | ||
import org.eclipse.microprofile.health.Health; | ||
import org.eclipse.microprofile.health.HealthCheck; | ||
import org.eclipse.microprofile.health.HealthCheckResponse; | ||
|
||
@Health | ||
@ApplicationScoped | ||
public class SystemHealth implements HealthCheck { | ||
@Override | ||
public HealthCheckResponse call() { | ||
if (!System.getProperty("wlp.server.name").startsWith("defaultServer")) { | ||
return HealthCheckResponse.named(HeightsBean.class.getSimpleName()) | ||
.withData("default server", "not available").down() | ||
.build(); | ||
} | ||
return HealthCheckResponse.named(HeightsBean.class.getSimpleName()) | ||
.withData("default server", "available").up().build(); | ||
} | ||
} |
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
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
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
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