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

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


 
  @Override
  public void minorCompactionStarted(TInfo info, long id, final long seq, final int tid, final String fqfn) throws NoSuchLogIDException {
    Logger out = logs.get(id);
    if (out == null)
      throw new NoSuchLogIDException();
    out.key.event = COMPACTION_START;
    out.key.seq = seq;
    out.key.tid = tid;
    out.key.filename = fqfn;
    out.value.mutations = empty;
View Full Code Here


 
  @Override
  public void defineTablet(TInfo info, long id, final long seq, final int tid, final TKeyExtent tablet) throws NoSuchLogIDException {
    Logger out = logs.get(id);
    if (out == null)
      throw new NoSuchLogIDException();
    out.key.event = DEFINE_TABLET;
    out.key.seq = seq;
    out.key.tid = tid;
    out.key.tablet = new KeyExtent(tablet);
    out.value.mutations = empty;
View Full Code Here

  synchronized public void close(TInfo info, long id) throws NoSuchLogIDException {
    long t1 = System.currentTimeMillis();
    synchronized (logs) {
      Logger out = logs.remove(id);
      if (out == null) {
        throw new NoSuchLogIDException();
      }
      try {
        out.close();
      } catch (IOException ex) {
        log.error("IOException occurred closing file", ex);
View Full Code Here

 
  @Override
  public void log(TInfo info, long id, final long seq, final int tid, final TMutation mutation) throws NoSuchLogIDException {
    Logger out = logs.get(id);
    if (out == null)
      throw new NoSuchLogIDException();
   
    out.key.event = MUTATION;
    out.key.seq = seq;
    out.key.tid = tid;
    out.value.mutations = new Mutation[1];
View Full Code Here

  }
 
  private void logMany(TInfo info, long id, final long seq, final int tid, Mutation muations[]) throws NoSuchLogIDException {
    Logger out = logs.get(id);
    if (out == null)
      throw new NoSuchLogIDException();
    out.key.event = MANY_MUTATIONS;
    out.key.seq = seq;
    out.key.tid = tid;
    out.value.mutations = muations;
    try {
View Full Code Here

 
  @Override
  public void minorCompactionFinished(TInfo info, long id, final long seq, final int tid, final String fqfn) throws NoSuchLogIDException {
    Logger out = logs.get(id);
    if (out == null)
      throw new NoSuchLogIDException();
    out.key.event = COMPACTION_FINISH;
    out.key.seq = seq;
    out.key.tid = tid;
    out.value.mutations = empty;
    // this lock should not be necessary since there should only be one writer
View Full Code Here

 
  @Override
  public void minorCompactionStarted(TInfo info, long id, final long seq, final int tid, final String fqfn) throws NoSuchLogIDException {
    Logger out = logs.get(id);
    if (out == null)
      throw new NoSuchLogIDException();
    out.key.event = COMPACTION_START;
    out.key.seq = seq;
    out.key.tid = tid;
    out.key.filename = fqfn;
    out.value.mutations = empty;
View Full Code Here

 
  @Override
  public void defineTablet(TInfo info, long id, final long seq, final int tid, final TKeyExtent tablet) throws NoSuchLogIDException {
    Logger out = logs.get(id);
    if (out == null)
      throw new NoSuchLogIDException();
    out.key.event = DEFINE_TABLET;
    out.key.seq = seq;
    out.key.tid = tid;
    out.key.tablet = new KeyExtent(tablet);
    out.value.mutations = empty;
View Full Code Here

  synchronized public void close(TInfo info, long id) throws NoSuchLogIDException {
    long t1 = System.currentTimeMillis();
    synchronized (logs) {
      Logger out = logs.remove(id);
      if (out == null) {
        throw new NoSuchLogIDException();
      }
      try {
        out.close();
      } catch (IOException ex) {
        log.error("IOException occurred closing file", ex);
View Full Code Here

 
  @Override
  public void log(TInfo info, long id, final long seq, final int tid, final TMutation mutation) throws NoSuchLogIDException {
    Logger out = logs.get(id);
    if (out == null)
      throw new NoSuchLogIDException();
   
    out.key.event = MUTATION;
    out.key.seq = seq;
    out.key.tid = tid;
    out.value.mutations = new Mutation[1];
View Full Code Here

TOP

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

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.