当前位置: 首页>>代码示例>>Java>>正文


Java StringCB类代码示例

本文整理汇总了Java中org.apache.zookeeper.test.AsyncOps.StringCB的典型用法代码示例。如果您正苦于以下问题:Java StringCB类的具体用法?Java StringCB怎么用?Java StringCB使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


StringCB类属于org.apache.zookeeper.test.AsyncOps包,在下文中一共展示了StringCB类的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: testAsyncCreateThree

import org.apache.zookeeper.test.AsyncOps.StringCB; //导入依赖的package包/类
@Test
public void testAsyncCreateThree() {
    CountDownLatch latch = new CountDownLatch(3);

    StringCB op1 = new StringCB(zk, latch);
    op1.setPath("/op1");
    StringCB op2 = new StringCB(zk, latch);
    op2.setPath("/op2");
    StringCB op3 = new StringCB(zk, latch);
    op3.setPath("/op3");

    op1.create();
    op2.create();
    op3.create();

    op1.verify();
    op2.verify();
    op3.verify();
}
 
开发者ID:maoling,项目名称:fuck_zookeeper,代码行数:20,代码来源:AsyncOpsTest.java

示例2: testAsyncCreate

import org.apache.zookeeper.test.AsyncOps.StringCB; //导入依赖的package包/类
@Test
public void testAsyncCreate() {
    new StringCB(zk).verifyCreate();
}
 
开发者ID:maoling,项目名称:fuck_zookeeper,代码行数:5,代码来源:AsyncOpsTest.java

示例3: testAsyncCreateFailure_NodeExists

import org.apache.zookeeper.test.AsyncOps.StringCB; //导入依赖的package包/类
@Test
public void testAsyncCreateFailure_NodeExists() {
    new StringCB(zk).verifyCreateFailure_NodeExists();
}
 
开发者ID:maoling,项目名称:fuck_zookeeper,代码行数:5,代码来源:AsyncOpsTest.java

示例4: testAsyncCreateFailure_NoNode

import org.apache.zookeeper.test.AsyncOps.StringCB; //导入依赖的package包/类
@Test
public void testAsyncCreateFailure_NoNode() {
    new StringCB(zk).verifyCreateFailure_NoNode();
}
 
开发者ID:maoling,项目名称:fuck_zookeeper,代码行数:5,代码来源:AsyncOpsTest.java

示例5: testAsyncCreateFailure_NoChildForEphemeral

import org.apache.zookeeper.test.AsyncOps.StringCB; //导入依赖的package包/类
@Test
public void testAsyncCreateFailure_NoChildForEphemeral() {
    new StringCB(zk).verifyCreateFailure_NoChildForEphemeral();
}
 
开发者ID:maoling,项目名称:fuck_zookeeper,代码行数:5,代码来源:AsyncOpsTest.java


注:本文中的org.apache.zookeeper.test.AsyncOps.StringCB类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。