Package net.kuujo.copycat.log

Examples of net.kuujo.copycat.log.Entry


      });
    });

    Assert.assertTrue(compacted.get());

    Entry firstEntry = node3.log().firstEntry();
    Assert.assertTrue(firstEntry instanceof SnapshotEntry);
    Assert.assertEquals("Hello world!", new String(((SnapshotEntry) firstEntry).data()));

    cluster.stop();
  }
View Full Code Here


      });
    });

    Assert.assertTrue(compacted.get());

    Entry firstEntry = node1.log().firstEntry();
    Assert.assertTrue(firstEntry instanceof SnapshotEntry);
    Assert.assertEquals("Hello world!", new String(((SnapshotEntry) firstEntry).data()));

    cluster.stop();
  }
View Full Code Here

    cluster.addNode(node3);

    cluster.start();

    Assert.assertEquals(800, node2.log().firstIndex());
    Entry firstEntry = node2.log().firstEntry();
    Assert.assertTrue(firstEntry instanceof SnapshotEntry);
    Assert.assertEquals("Hello world!", new String(((SnapshotEntry) firstEntry).data()));

    cluster.stop();
  }
View Full Code Here

TOP

Related Classes of net.kuujo.copycat.log.Entry

Copyright © 2018 www.massapicom. 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.