/** * Signals throws businessTransaction caused by missing class cache. */ public void noClassCacheAvailable() { long thrownBusinessTransactions = thrownBusinessExceptionCount.incrementAndGet(); // log only ones if (log.isWarnEnabled() && THROWN_BUSINESS_EXCEPTION_LOG_STRATEGY.shouldLog(thrownBusinessTransactions - 1, thrownBusinessTransactions)) { log.warn("No class cache is available for this agent on the CMR. Please reconnect the agent, to reload the class cache. This exception will be thrown only ones per agent."); } }
/** * Signals data drop. * * @param count * How many points have we dropped and not sent to the server. */ public void dataDropped(int count) { if (count <= 0) { throw new IllegalArgumentException("Dropped data must be positive number."); } long dropped = droppedDataCount.addAndGet(count); // log on first, tenth, hundredth and then on every one thousand elements dropped if (log.isWarnEnabled() && DROPPED_DATA_LOG_STRATEGY.shouldLog(dropped - count, dropped)) { log.warn("Monitoring data is dropped due to buffer capacity reached or connection failure. Current count of dropped data is " + dropped + "."); } }