Package org.tarantool.snapshot

Examples of org.tarantool.snapshot.ReplicationClient


import org.tarantool.snapshot.XLogReader.XLogEntry;

public class TestReplication {
  // @Test
  public void testReplication() throws IOException {
    ReplicationClient client = new ReplicationClient(SocketChannel.open(new InetSocketAddress("localhost", 33316)), 1L);
    for (int i = 0; i < 10; i++) {
      XLogEntry r = client.nextEntry();
    }
    client.close();
  }
View Full Code Here


        }
      }
    }));

    final ByteBuffer rowStartMarker = ByteBuffer.allocate(4).order(ByteOrder.LITTLE_ENDIAN).putInt(Const.ROW_START_MARKER);
    client = new ReplicationClient(SocketChannel.open(new InetSocketAddress("127.0.0.1", 33016)), lsn + 1L) {

      @Override
      protected ByteBuffer readBody(Header header) throws IOException {
        if (Backup.this.xlogChannel == null) {
          Backup.this.xlogChannel = nextFile(folder);
View Full Code Here

TOP

Related Classes of org.tarantool.snapshot.ReplicationClient

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.