Package org.apache.accumulo.core.tabletserver.thrift

Examples of org.apache.accumulo.core.tabletserver.thrift.LogFile


    cleanup(logFile);
  }
 
  @Test
  public void testMinorCompactionStarted() throws Exception {
    LogFile logFile = writer.create(null, CREDENTIALS, "");
    String fqfn = "/foo/bar";
    writer.minorCompactionStarted(null, logFile.id, 5, 23, fqfn);
    writer.close(null, logFile.id);
    SequenceFile.Reader dis = readOpen(logFile);
    LogFileKey key = new LogFileKey();
View Full Code Here


    cleanup(logFile);
  }
 
  @Test
  public void testDefineTablet() throws Exception {
    LogFile logFile = writer.create(null, CREDENTIALS, "");
    KeyExtent ke = new KeyExtent(new Text("table1"), new Text("zzzz"), new Text("aaaaa"));
    writer.defineTablet(null, logFile.id, 6, 31, ke.toThrift());
    writer.close(null, logFile.id);
    SequenceFile.Reader dis = readOpen(logFile);
    LogFileKey key = new LogFileKey();
View Full Code Here

 
  // Fake placeholder for logs used during recovery
  public RemoteLogger(String logger, String filename, UUID tserverUUID) {
    this.client = null;
    this.logger = logger;
    this.logFile = new LogFile(filename, -1);
    this.tserverSession = null;
  }
View Full Code Here

  }
 
  @Override
  public LogFile create(TInfo info, AuthInfo credentials, String tserverSession) throws ThriftSecurityException {
    long t1 = System.currentTimeMillis();
    LogFile result = new LogFile();
    result.id = random.nextLong();
    while (logs.get(result.id) != null)
      result.id = random.nextLong();
    result.name = UUID.randomUUID().toString();
    Logger out = null;
View Full Code Here

 
  // Fake placeholder for logs used during recovery
  public RemoteLogger(String logger, String filename, UUID tserverUUID) {
    this.client = null;
    this.logger = logger;
    this.logFile = new LogFile(filename, -1);
    this.tserverSession = null;
  }
View Full Code Here

TOP

Related Classes of org.apache.accumulo.core.tabletserver.thrift.LogFile

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.