...
|
...
|
@@ -7,6 +7,7 @@ import com.monitor.model.page.PageResponse; |
|
|
import com.monitor.model.request.ZkTreeAllReq;
|
|
|
import com.monitor.model.request.ZkTreeReq;
|
|
|
import com.monitor.model.response.BaseResponse;
|
|
|
import org.apache.commons.io.FileUtils;
|
|
|
import org.slf4j.Logger;
|
|
|
import org.slf4j.LoggerFactory;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
...
|
...
|
@@ -16,6 +17,7 @@ import org.springframework.web.bind.annotation.RequestBody; |
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
import org.springframework.web.bind.annotation.ResponseBody;
|
|
|
|
|
|
import java.io.File;
|
|
|
import java.util.ArrayList;
|
|
|
import java.util.List;
|
|
|
import java.util.Map;
|
...
|
...
|
@@ -166,6 +168,11 @@ public class ZkMonitorCtrl { |
|
|
node.add(notExistsNode);
|
|
|
node.add(valueNotEqualNode);
|
|
|
zkMoitorService.compareRootTest(oldRoot,compareRoot,node);
|
|
|
|
|
|
//
|
|
|
FileUtils.writeLines(new File("/Data_new/monitor_logs/tttt"),node.get(0));
|
|
|
FileUtils.writeLines(new File("/Data_new/monitor_logs/tttt2"),node.get(1));
|
|
|
|
|
|
return new BaseResponse<Object>(node);
|
|
|
|
|
|
}
|
...
|
...
|
|