"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "microprofile/health-smallrye/src/main/java/org/wildfly/extension/microprofile/health/HealthReporterService.java" between
wildfly-21.0.0.Final-src.zip and wildfly-21.0.1.Final-src.zip

About: WildFly is an application server with a standards-compliant, fast and lightweight implementation of the Java Enterprise Edition 7 Platform specifications (formerly known as JBoss community version). Sources.

HealthReporterService.java  (wildfly-21.0.0.Final-src):HealthReporterService.java  (wildfly-21.0.1.Final-src)
skipping to change at line 88 skipping to change at line 88
this.emptyLivenessChecksStatus = emptyLivenessChecksStatus; this.emptyLivenessChecksStatus = emptyLivenessChecksStatus;
this.emptyReadinessChecksStatus = emptyReadinessChecksStatus; this.emptyReadinessChecksStatus = emptyReadinessChecksStatus;
} }
@Override @Override
public void start(StartContext context) { public void start(StartContext context) {
// MicroProfile Health supports the mp.health.disable-default-procedures to let users disable any vendor procedures // MicroProfile Health supports the mp.health.disable-default-procedures to let users disable any vendor procedures
final boolean defaultServerProceduresDisabled = ConfigProvider.getConfig ().getOptionalValue("mp.health.disable-default-procedures", Boolean.class).orEls e(false); final boolean defaultServerProceduresDisabled = ConfigProvider.getConfig ().getOptionalValue("mp.health.disable-default-procedures", Boolean.class).orEls e(false);
healthReporter = new HealthReporter(emptyLivenessChecksStatus, emptyRead inessChecksStatus, defaultServerProceduresDisabled); healthReporter = new HealthReporter(emptyLivenessChecksStatus, emptyRead inessChecksStatus, defaultServerProceduresDisabled);
modelControllerClient = modelControllerClientFactory.get().createClient( // we use a SuperUserClient for the local model controller client so tha
managementExecutor.get()); t the server checks can be performed when RBAC is enabled.
// a doPriviledged block is not needed as these calls are initiated from
the management endpoint.
// The user accessing the management endpoints must be authenticated (if
security-enabled is true) but the server checks are not executed on their behal
f.
modelControllerClient = modelControllerClientFactory.get().createSuperUs
erClient(managementExecutor.get(), true);
if (!defaultServerProceduresDisabled) { if (!defaultServerProceduresDisabled) {
healthReporter.addServerReadinessCheck(new ServerStateCheck(modelCon trollerClient), Thread.currentThread().getContextClassLoader()); healthReporter.addServerReadinessCheck(new ServerStateCheck(modelCon trollerClient), Thread.currentThread().getContextClassLoader());
healthReporter.addServerReadinessCheck(new NoBootErrorsCheck(modelCo ntrollerClient), Thread.currentThread().getContextClassLoader()); healthReporter.addServerReadinessCheck(new NoBootErrorsCheck(modelCo ntrollerClient), Thread.currentThread().getContextClassLoader());
healthReporter.addServerReadinessCheck(new DeploymentsStatusCheck(mo delControllerClient), Thread.currentThread().getContextClassLoader()); healthReporter.addServerReadinessCheck(new DeploymentsStatusCheck(mo delControllerClient), Thread.currentThread().getContextClassLoader());
} }
HealthCheckResponse.setResponseProvider(new ResponseProvider()); HealthCheckResponse.setResponseProvider(new ResponseProvider());
} }
 End of changes. 1 change blocks. 
2 lines changed or deleted 9 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)