zookeeper cuator客户端
This commit is contained in:
		| @@ -86,7 +86,7 @@ public class AclOperation { | |||||||
|     public void getAcl() throws Exception { |     public void getAcl() throws Exception { | ||||||
|         List<ACL> aclList = client.getACL().forPath(nodePath); |         List<ACL> aclList = client.getACL().forPath(nodePath); | ||||||
|         ACL acl = aclList.get(0); |         ACL acl = aclList.get(0); | ||||||
|         System.out.println(acl.getId().getId()+"是否有删读权限:" + (acl.getPerms() == (Perms.READ | Perms.DELETE))); |         System.out.println(acl.getId().getId() + "是否有删读权限:" + (acl.getPerms() == (Perms.READ | Perms.DELETE))); | ||||||
|     } |     } | ||||||
|  |  | ||||||
|  |  | ||||||
|   | |||||||
| @@ -16,7 +16,6 @@ import org.junit.After; | |||||||
| import org.junit.Before; | import org.junit.Before; | ||||||
| import org.junit.Test; | import org.junit.Test; | ||||||
|  |  | ||||||
| import java.util.Arrays; |  | ||||||
| import java.util.List; | import java.util.List; | ||||||
|  |  | ||||||
| /** | /** | ||||||
| @@ -178,7 +177,7 @@ public class BasicOperation { | |||||||
|  |  | ||||||
|         List<ChildData> childDataList = childrenCache.getCurrentData(); |         List<ChildData> childDataList = childrenCache.getCurrentData(); | ||||||
|         System.out.println("当前数据节点的子节点列表:"); |         System.out.println("当前数据节点的子节点列表:"); | ||||||
|         childDataList.forEach(x->System.out.println(x.getPath())); |         childDataList.forEach(x -> System.out.println(x.getPath())); | ||||||
|  |  | ||||||
|         childrenCache.getListenable().addListener(new PathChildrenCacheListener() { |         childrenCache.getListenable().addListener(new PathChildrenCacheListener() { | ||||||
|  |  | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user