Package org.apache.mesos.Log

Examples of org.apache.mesos.Log.Position


    readAll();
  }

  @Test
  public void testTruncate() throws Exception {
    Position truncate = makePosition(5);
    expect(logWriter.truncate(
        truncate,
        WRITE_TIMEOUT.getValue(),
        WRITE_TIMEOUT.getUnit().getTimeUnit()))
        .andReturn(truncate);
View Full Code Here


    logStream.truncateBefore(new LogPosition(truncate));
  }

  @Test(expected = NoSuchElementException.class)
  public void testIteratorUsage() throws Exception {
    Position beginning = makePosition(1);
    Position middle = makePosition(2);
    Position end = expectWrite(DUMMY_CONTENT, 3);
    expectDiscoverEntryRange(beginning, end);
    // SKipped entries.
    expectRead(beginning).andReturn(ImmutableList.<Log.Entry>of());
    expectRead(middle).andReturn(ImmutableList.<Log.Entry>of());
    expectRead(end).andReturn(ImmutableList.<Log.Entry>of());
View Full Code Here

TOP

Related Classes of org.apache.mesos.Log.Position

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.