class ComponentHealthChecker implements HealthChecker {

    public static final String       COMPONENT_NAME = "components";

    private final SofaRuntimeContext sofaRuntimeContext;

    public ComponentHealthChecker(SofaRuntimeContext sofaRuntimeContext) {
        this.sofaRuntimeContext = sofaRuntimeContext;
    }

    @Override
    public Health isHealthy() {<FILL_FUNCTION_BODY>}

    @Override
    public String getComponentName() {
        return COMPONENT_NAME;
    }

    @Override
    public int getRetryCount() {
        return 20;
    }

    @Override
    public long getRetryTimeInterval() {
        return 1000;
    }

    @Override
    public boolean isStrictCheck() {
        return true;
    }

    @Override
    public int getTimeout() {
        return 10 * 1000;
    }
}

        boolean allPassed = true;
        Health.Builder builder = new Health.Builder();

        for (ComponentInfo componentInfo : sofaRuntimeContext.getComponentManager().getComponents()) {
            HealthResult healthy = componentInfo.isHealthy();
            String healthReport = healthy.getHealthReport();
            if (!healthy.isHealthy()) {
                allPassed = false;
                builder.withDetail(healthy.getHealthName(),
                    StringUtils.hasText(healthReport) ? healthReport : "failed");
            }
        }

        if (allPassed) {
            return builder.status(Status.UP).build();
        } else {
            return builder.status(Status.DOWN).build();
        }
    
<no_super_class>