class XPluginImp implements Plugin {

    CloudConfigServiceEtcdImpl configServiceEtcdImp;
    CloudDiscoveryServiceEtcdImpl discoveryServiceEtcdImp;

    @Override
    public void start(AppContext context) throws Throwable {<FILL_FUNCTION_BODY>}

    @Override
    public void stop() throws Throwable {
        if (configServiceEtcdImp != null) {
            configServiceEtcdImp.close();
        }

        if (discoveryServiceEtcdImp != null) {
            discoveryServiceEtcdImp.close();
        }
    }
}

        CloudProps cloudProps = new CloudProps(context,"etcd");

        if (Utils.isEmpty(cloudProps.getServer())) {
            return;
        }

        //1.登记配置服务
        if (cloudProps.getConfigEnable()) {
            configServiceEtcdImp = new CloudConfigServiceEtcdImpl(cloudProps);
            CloudManager.register(configServiceEtcdImp);

            //1.1.加载配置
            CloudClient.configLoad(cloudProps.getConfigLoad());
        }

        //2.登记发现服务
        if (cloudProps.getDiscoveryEnable()) {
            discoveryServiceEtcdImp = new CloudDiscoveryServiceEtcdImpl(cloudProps);
            CloudManager.register(discoveryServiceEtcdImp);
        }
    
<no_super_class>