Examples of stopAndLogTracer()


Examples of org.honu.util.Tracer.stopAndLogTracer()

          log.debug(group+"- duration=" + (end-now) + " size=" + chunks.size());
        }

      } catch (IOException e) {
        if (t!= null) {
          t.stopAndLogTracer();
        }
       
        writeChunkRetries--;
        log.error(group +"- Could not save the chunk. ", e);
View Full Code Here

Examples of org.honu.util.Tracer.stopAndLogTracer()

        throw new WriterException(e);
      }
    }
 
    if (t!= null) {
      t.stopAndLogTracer();
    }
    
    return COMMIT_OK;
  }
View Full Code Here

Examples of org.honu.util.Tracer.stopAndLogTracer()

            SequenceFile.CompressionType.NONE, codec);
      }
     
    } catch (Throwable e) {
      if (t!= null) {
        t.stopAndLogTracer();
      }
     
      log.fatal(group+"- Throwable Exception in rotate. Exiting!", e);
      // Shutting down the collector
      // Watchdog will re-start it automatically
View Full Code Here

Examples of org.honu.util.Tracer.stopAndLogTracer()

      DaemonWatcher.bailout(-1);
    }
    nextRotate = System.currentTimeMillis() + rotateInterval;
   
    if (t!= null) {
      t.stopAndLogTracer();
    }
  }

  protected void internalClose() {
    try {
View Full Code Here

Examples of org.honu.util.Tracer.stopAndLogTracer()

     
      result.setMessage(""+tChunk.getSeqId());
      result.setResultCode(ResultCode.TRY_LATER);
    }
    if (t!= null) {
      t.stopAndLogTracer();
    }
   
    return result;
  }
View Full Code Here

Examples of org.honu.util.Tracer.stopAndLogTracer()

          closeConnection();
        }
       
        sendChunk(chunk);
        if (t!= null) {
          t.stopAndLogTracer();
        }
        chunkCount++;
        lineCount += chunk.getLogEventsSize();

        Thread.yield();
View Full Code Here

Examples of org.honu.util.Tracer.stopAndLogTracer()

            initConnection();
          }

          result = collector.process(chunk);
          if (t!= null){
            t.stopAndLogTracer();
          }
        

          if (result.getResultCode() == ResultCode.TRY_LATER) {
            Counter.increment("honu.client.tryLater");
View Full Code Here

Examples of org.honu.util.Tracer.stopAndLogTracer()

        } catch (Throwable e) {

          try {
            log.warn("exception in sendChunk", e);
            if (t != null) {
              t.stopAndLogTracer();
            }

            Counter.increment("honu.client.exceptionCount");

            exceptionCount++;
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.