Sample of Custom Service Health Check Method
The following snippets are added to the implementation class:
- Annotated Service Health Check method. The parameters of the annotation (SharedResource and PropagateReferences) correspond to the Handle Shared Resources and Handle Component References check boxes shown earlier in the Generate Java Implementation wizard, respectively.
CustomHealthCheckRequest is the augmented request passed to the Custom Service Health Check method. It contains the parameters from the original request, along with additional parameters such as node name, environment name, and so on.
CustomComponentResponse defines the Custom Service Health Check response output that will be added to the component element of Base Service Health Check response.
CustomComponentResponse can be populated with the results of your Custom Service Health Check operation.
- The following imports are added to the implementation class when a Custom Service Health Check method is added.
Copyright © 2022. Cloud Software Group, Inc. All Rights Reserved.