class HandlerCheck implements Handler {
    @Override
    public void handle(Context ctx) throws Throwable {
        ctx.outputAsJson(handle0(ctx));
    }

    private String handle0(Context ctx) {<FILL_FUNCTION_BODY>}
}

        String service = ctx.param("upstream");

        if (TextUtils.isEmpty(service) == false) {
            //用于检查负责的情况
            ONode odata = new ONode().asObject();

            if ("*".equals(service)) {
                CloudClient.loadBalance().forEach((k, v) -> {
                    ONode n = odata.getOrNew(k);

                    n.set("service", k);

                    Discovery d = v.getDiscovery();
                    if (d != null) {
                        n.set("agent", d.agent());
                        n.set("policy", d.policy());

                        ONode nl = n.getOrNew("upstream").asArray();

                        d.cluster().forEach((s) -> {
                            nl.add(s.uri());
                        });
                    }
                });
            } else {
                ONode n = odata.getOrNew(service);
                n.set("service", service);

                CloudLoadBalance v = CloudClient.loadBalance().get("",service);

                if (v != null) {
                    Discovery d = v.getDiscovery();
                    if (d != null) {
                        n.set("agent", d.agent());
                        n.set("policy", d.policy());

                        ONode nl = n.getOrNew("upstream").asArray();

                        d.cluster().forEach((s) -> {
                            nl.add(s.uri());
                        });
                    }
                }
            }

            return odata.toJson();
        }

        return "{\"code\":1}";
    
<no_super_class>