Andriod Practical Project Development No. 14 – Tree Structure, How to Handle the Page Refresh Mechanism after Adding Nodes

Renderings public void onViewCreated(@NonNull View view, @Nullable Bundle savedInstanceState) { super.onViewCreated(view, savedInstanceState); initData(); LinearLayoutManager manager = new LinearLayoutManager(mActivity); mTreeListRecy = view.findViewById(R.id.mTreeListRecy); if (mTreeListRecy != null) { mTreeListRecy.setLayoutManager(manager); mTreeListRecy.setAdapter(adapter); //Tree2HeaderView tree2HeaderView = new Tree2HeaderView(mActivity); treeHeaderView = new TreeHeaderView(mActivity,dataList); adapter.addHeaderView(treeHeaderView); //ArrayList<String> list = new ArrayList<>(); //for (int i = 0; i < 30; i + + ) […]

Minio distributed cluster deployment (4 nodes 4 clusters)

Minio distributed cluster deployment (4 nodes 4 clusters) Centos7.6 Minio Minio distributed cluster deployment (4 nodes 4 clusters) 1.Environment preparation 2-Add new disk and mount it 3. Install minio cluster 4. Configure systemctl system service 5. Login page testing 1. Environment preparation 4 servers with multiple hard drives Node data directory (cannot be under /root) […]

Locust single-machine multi-core stress test, and data communication processing of master-slave nodes

Let me briefly explain the background first. Before the APP is launched, the login interface needs to be performance tested. After evaluation, I gave priority to locust for script development. This time I used locust’s single-machine multi-core running capability, but it also involves data communication between master and slave nodes. There are very few effective […]

Solutions on the implementation of linked lists with head nodes (creation, intersection, union, difference)

This article uses .c files to call functions, and .h files to define the layout of functional functions. Because no other space is occupied when doing merge and intersection difference, after executing a function, the values of the two linked lists have changed and are no longer the original values, so after each function is […]

Locust single-machine multi-core stress test, and data communication processing of master-slave nodes

1. Background This is an interface performance test done 2 months ago, about the single-machine multi-core operation of the locust script, and the data communication between the master and slave nodes. Let me briefly explain the background first. Before the APP is launched, the login interface needs to be performance tested. After evaluation, I gave […]

Locust single-machine multi-core stress test, and data communication processing of master-slave nodes

1. Background This is an interface performance test done 2 months ago, about the single-machine multi-core operation of the locust script, and the data communication between the master and slave nodes. Let me briefly explain the background first. Before the APP is launched, the login interface needs to be performance tested. After evaluation, I gave […]

Operation commands for nodes in ZooKeeper (view, create, delete nodes)

When the sky is healthy, a gentleman strives to constantly strive for self-improvement; when the terrain is turbulent, a gentleman carries things with great virtue. Everyone is lazy, but continuous learning is the foundation of a good life. Let’s encourage each other! The articles are all for learning and organizing notes, mainly for sharing records. […]

Json recursively delete and modify nodes

using System.Collections; using System.Collections.Generic; using UnityEngine; public class TaskNode { private string taskNodeName; private string taskParams; private List<TaskNode> taskNodeList; public TaskNode(string taskNodeName, string taskParams, List<TaskNode> taskNodeList=null) { this.taskNodeName = taskNodeName; this.taskParams = taskParams; this.taskNodeList = taskNodeList; } public string TaskNodeName { get => taskNodeName; set => taskNodeName = value; } public string TaskParams { get […]