Package io.camunda.zeebe.shared
Class EnvironmentHelper
- java.lang.Object
-
- io.camunda.zeebe.shared.EnvironmentHelper
-
public final class EnvironmentHelper extends Object
-
-
Constructor Summary
Constructors Constructor Description EnvironmentHelper()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voiddisableGatewayHealthIndicatorsAndProbes()This method disables the gateway's health indicator and probes before launching a broker.static booleanisProductionEnvironment(org.springframework.core.env.Environment springEnvironment)
-
-
-
Method Detail
-
isProductionEnvironment
public static boolean isProductionEnvironment(org.springframework.core.env.Environment springEnvironment)
-
disableGatewayHealthIndicatorsAndProbes
public static void disableGatewayHealthIndicatorsAndProbes()
This method disables the gateway's health indicator and probes before launching a broker. This is necessary, because broker and gateway share the same classpath. Therefore, all health indicators targeted at the gateway, will by default also be enabled for the broker. This method is here to prevent this.Note that currently this is a very crude implementation which takes advantage of the fact that no Spring health indicators are currently implemented for the broker. Therefore, we can simply disable all. In the future, this implementation will need to become more sophisticated.
This method must be called by the broker before launching Spring system.
-
-