JZTXT
  • 首页
  • Ai
  • Java
  • Python
  • Android
  • Mysql
  • JavaScript
  • Html
  • CSS

zookeeper JavaApi 修改节点

发布时间 2023-08-04 17:03:37作者: 林浅
*修改数据
* 1.修改数据
* 2.根据版本修改
*
*
* */
@Test
public void testSet() throws Exception{
    Stat stat = new Stat();
    client.getData().storingStatIn(stat).forPath("/app1");
    int version = stat.getVersion();
    client.setData().withVersion(version).forPath("/app1","itcast".getBytes());
}
    本栏目推荐文章
  • Redis 哨兵启动 以及 手动切换节点
  • Ubuntu 20.04版本安装k8s控制节点
  • js string转html节点
  • web项目启动时dubbo报错: No provider available for the service com.davidhu.shopguide.api.service.UserEventService from the url zookeeper ://localhost:2181/org.apache.du
  • 动力节点RabbitMQ教程|12小时学会rabbitmq消息中间件-01
  • 两两交换链表中的节点 24
  • Prometheus监控k8s集群节点主机内存/CPU使用率
  • Prometheus监控容器内pod节点内存/CPU使用率
  • YAML示例:创建单幅本nginx容器到指定节点及其service
  • LRU cache实现,还是使用伪头部和伪尾部节点写代码更加简单
版权声明:本网站为非赢利性站点,本网站所有内容均来源于互联网相关站点自动搜索采集信息,相关链接已经注明来源。
联系我们