Package src

Examples of src.Store.dump()


  public void testDump() throws Exception{
    ZooKeeper zk = this.initZk();
   
    Store s = new Store(TestConf.host, TestConf.root, "", "", TestConf.tmpPath);
    s.init();
    s.dump("/iserviceTest/node1");
   
    int pid = Extends.getPid();
    String content = FS.read(TestConf.tmpPath + "/" + pid + "/iserviceTest/node1/node1.data");
    Assert.assertEquals("version:0\r\nnode1-node1-node1", content);
   
View Full Code Here


    FS.dump(TestConf.tmpPath + "/" + pid + "/iserviceTest/node1/node1.data", "version:-1\r\ni'm node1/node1.data for check");
    FS.dump(TestConf.tmpPath + "/" + pid + "/iserviceTest/node1.data", "version:-1\r\ni'm node1.data for check");
   
    Store s = new Store(TestConf.host, TestConf.root, "", "", TestConf.tmpPath);
    s.init();
    s.dump("/iserviceTest/node1");
   
   
    String content = FS.read(TestConf.tmpPath + "/" + pid + "/iserviceTest/node1/node1.data");
    Assert.assertEquals("version:0\r\nnode1-node1-node1", content);
   
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.