Search in sources :

Example 1 with ReadEntriesCommand

use of org.apache.distributedlog.tools.DistributedLogTool.ReadEntriesCommand in project bookkeeper by apache.

the class TestDistributedLogTool method testToolReadEntriesCommand.

@Test(timeout = 60000)
public void testToolReadEntriesCommand() throws Exception {
    ReadEntriesCommand cmd = new ReadEntriesCommand();
    cmd.setUri(defaultUri);
    cmd.setLedgerId(99999999);
    try {
        cmd.runCmd();
    } catch (BKNoSuchLedgerExistsException ex) {
    }
}
Also used : ReadEntriesCommand(org.apache.distributedlog.tools.DistributedLogTool.ReadEntriesCommand) BKNoSuchLedgerExistsException(org.apache.bookkeeper.client.BKException.BKNoSuchLedgerExistsException) Test(org.junit.Test)

Aggregations

BKNoSuchLedgerExistsException (org.apache.bookkeeper.client.BKException.BKNoSuchLedgerExistsException)1 ReadEntriesCommand (org.apache.distributedlog.tools.DistributedLogTool.ReadEntriesCommand)1 Test (org.junit.Test)1