All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.apache.activemq.artemis.ra.ActiveMQRALogger_impl Maven / Gradle / Ivy

The newest version!
/** This class is auto generated by org.apache.activemq.artemis.logs.annotation.processor.LogAnnotationProcessor
    and it inherits whatever license is declared at org.apache.activemq.artemis.ra.ActiveMQRALogger */

package org.apache.activemq.artemis.ra;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.slf4j.helpers.FormattingTuple;
import org.slf4j.helpers.MessageFormatter;

// @org.apache.activemq.artemis.logs.annotation.LogBundle(regexID="15[0-9]{4}", projectCode="AMQ")
public class ActiveMQRALogger_impl implements ActiveMQRALogger
{
   private final Logger logger;

   private static void _copyStackTraceMinusOne(final Throwable e) {
      final StackTraceElement[] st = e.getStackTrace();
      e.setStackTrace(java.util.Arrays.copyOfRange(st, 1, st.length));
   }

   public ActiveMQRALogger_impl(Logger logger ) {
      this.logger = logger;
   }

   // @org.apache.activemq.artemis.logs.annotation.LogMessage(id=151000, value=\"awaiting topic/queue creation {}\", level=INFO)
   @Override
   public void awaitingTopicQueueCreation(java.lang.String destination) {
      if (logger.isInfoEnabled()) {
         logger.info("AMQ151000: awaiting topic/queue creation {}", destination);
      }
   }

   // @org.apache.activemq.artemis.logs.annotation.LogMessage(id=151001, value=\"Attempting to reconnect {}\", level=INFO)
   @Override
   public void attemptingReconnect(org.apache.activemq.artemis.ra.inflow.ActiveMQActivationSpec spec) {
      if (logger.isInfoEnabled()) {
         logger.info("AMQ151001: Attempting to reconnect {}", spec);
      }
   }

   // @org.apache.activemq.artemis.logs.annotation.LogMessage(id=151002, value=\"Reconnected with broker\", level=INFO)
   @Override
   public void reconnected() {
      if (logger.isInfoEnabled()) {
         logger.info("AMQ151002: Reconnected with broker");
      }
   }

   // @org.apache.activemq.artemis.logs.annotation.LogMessage(id=151003, value=\"resource adaptor stopped\", level=INFO)
   @Override
   public void raStopped() {
      if (logger.isInfoEnabled()) {
         logger.info("AMQ151003: resource adaptor stopped");
      }
   }

   // @org.apache.activemq.artemis.logs.annotation.LogMessage(id=151004, value=\"Instantiating {} \\"{}\\" directly since UseJNDI=false.\", level=DEBUG)
   @Override
   public void instantiatingDestination(java.lang.String destinationType, java.lang.String destination) {
      if (logger.isDebugEnabled()) {
         logger.debug("AMQ151004: Instantiating {} \"{}\" directly since UseJNDI=false.", destinationType, destination);
      }
   }

   // @org.apache.activemq.artemis.logs.annotation.LogMessage(id=151005, value=\"awaiting server availability\", level=INFO)
   @Override
   public void awaitingJMSServerCreation() {
      if (logger.isInfoEnabled()) {
         logger.info("AMQ151005: awaiting server availability");
      }
   }

   // @org.apache.activemq.artemis.logs.annotation.LogMessage(id=151006, value=\"Cluster topology change detected. Re-balancing connections on even {}.\", level=INFO)
   @Override
   public void rebalancingConnections(java.lang.String event) {
      if (logger.isInfoEnabled()) {
         logger.info("AMQ151006: Cluster topology change detected. Re-balancing connections on even {}.", event);
      }
   }

   // @org.apache.activemq.artemis.logs.annotation.LogMessage(id=151007, value=\"Resource adaptor started\", level=INFO)
   @Override
   public void resourceAdaptorStarted() {
      if (logger.isInfoEnabled()) {
         logger.info("AMQ151007: Resource adaptor started");
      }
   }

   // @org.apache.activemq.artemis.logs.annotation.LogMessage(id=152001, value=\"problem resetting xa session after failure\", level=WARN)
   @Override
   public void problemResettingXASession(java.lang.Throwable t) {
      if (logger.isWarnEnabled()) {
         logger.warn("AMQ152001: problem resetting xa session after failure", t);
      }
   }

   // @org.apache.activemq.artemis.logs.annotation.LogMessage(id=152002, value=\"Unable to roll local transaction back\", level=WARN)
   @Override
   public void unableToRollbackTX() {
      if (logger.isWarnEnabled()) {
         logger.warn("AMQ152002: Unable to roll local transaction back");
      }
   }

   // @org.apache.activemq.artemis.logs.annotation.LogMessage(id=152003, value=\"unable to reset session after failure, we will place the MDB Inflow now in setup mode for activation={}\", level=WARN)
   @Override
   public void unableToResetSession(java.lang.String spec, java.lang.Exception e) {
      if (logger.isWarnEnabled()) {
         logger.warn("AMQ152003: unable to reset session after failure, we will place the MDB Inflow now in setup mode for activation={}", spec, e);
      }
   }

   // @org.apache.activemq.artemis.logs.annotation.LogMessage(id=152004, value=\"Handling JMS exception failure\", level=WARN)
   @Override
   public void handlingJMSFailure(java.lang.Exception e) {
      if (logger.isWarnEnabled()) {
         logger.warn("AMQ152004: Handling JMS exception failure", e);
      }
   }

   // @org.apache.activemq.artemis.logs.annotation.LogMessage(id=152005, value=\"Failure in broker activation {}\", level=WARN)
   @Override
   public void failureInActivation(org.apache.activemq.artemis.ra.inflow.ActiveMQActivationSpec spec, java.lang.Throwable t) {
      if (logger.isWarnEnabled()) {
         logger.warn("AMQ152005: Failure in broker activation {}", spec, t);
      }
   }

   // @org.apache.activemq.artemis.logs.annotation.LogMessage(id=152006, value=\"Unable to call after delivery\", level=WARN)
   @Override
   public void unableToCallAfterDelivery(java.lang.Exception e) {
      if (logger.isWarnEnabled()) {
         logger.warn("AMQ152006: Unable to call after delivery", e);
      }
   }

   // @org.apache.activemq.artemis.logs.annotation.LogMessage(id=152007, value=\"Thread {} could not be finished\", level=WARN)
   @Override
   public void threadCouldNotFinish(java.lang.String thread) {
      if (logger.isWarnEnabled()) {
         logger.warn("AMQ152007: Thread {} could not be finished", thread);
      }
   }

   // @org.apache.activemq.artemis.logs.annotation.LogMessage(id=152008, value=\"Error interrupting handler on endpoint {} handler = {}\", level=WARN)
   @Override
   public void errorInterruptingHandler(java.lang.String endpoint, java.lang.String handler, java.lang.Throwable cause) {
      if (logger.isWarnEnabled()) {
         logger.warn("AMQ152008: Error interrupting handler on endpoint {} handler = {}", endpoint, handler, cause);
      }
   }

   // @org.apache.activemq.artemis.logs.annotation.LogMessage(id=152009, value=\"Unable to validate properties\", level=WARN)
   @Override
   public void unableToValidateProperties(java.lang.Exception e) {
      if (logger.isWarnEnabled()) {
         logger.warn("AMQ152009: Unable to validate properties", e);
      }
   }

   // @org.apache.activemq.artemis.logs.annotation.LogMessage(id=152010, value=\"Unable to clear the transaction\", level=WARN)
   @Override
   public void unableToClearTheTransaction(java.lang.Exception e) {
      if (logger.isWarnEnabled()) {
         logger.warn("AMQ152010: Unable to clear the transaction", e);
      }
   }

   // @org.apache.activemq.artemis.logs.annotation.LogMessage(id=152011, value=\"Unable to close the factory\", level=WARN)
   @Override
   public void unableToCloseFactory(java.lang.Throwable e) {
      if (logger.isWarnEnabled()) {
         logger.warn("AMQ152011: Unable to close the factory", e);
      }
   }

   // @org.apache.activemq.artemis.logs.annotation.LogMessage(id=154000, value=\"Error while creating object Reference.\", level=ERROR)
   @Override
   public void errorCreatingReference(java.lang.Exception e) {
      if (logger.isErrorEnabled()) {
         logger.error("AMQ154000: Error while creating object Reference.", e);
      }
   }

   // @org.apache.activemq.artemis.logs.annotation.LogMessage(id=154001, value=\"Unable to stop resource adapter.\", level=ERROR)
   @Override
   public void errorStoppingRA(java.lang.Exception e) {
      if (logger.isErrorEnabled()) {
         logger.error("AMQ154001: Unable to stop resource adapter.", e);
      }
   }

   // @org.apache.activemq.artemis.logs.annotation.LogMessage(id=154003, value=\"Unable to reconnect {}\", level=ERROR)
   @Override
   public void errorReconnecting(org.apache.activemq.artemis.ra.inflow.ActiveMQActivationSpec spec, java.lang.Throwable t) {
      if (logger.isErrorEnabled()) {
         logger.error("AMQ154003: Unable to reconnect {}", spec, t);
      }
   }

   // @org.apache.activemq.artemis.logs.annotation.LogMessage(id=154004, value=\"Failed to deliver message\", level=ERROR)
   @Override
   public void errorDeliveringMessage(java.lang.Throwable t) {
      if (logger.isErrorEnabled()) {
         logger.error("AMQ154004: Failed to deliver message", t);
      }
   }

   // @org.apache.activemq.artemis.logs.annotation.LogMessage(id=153001, value=\"using different ActiveMQRAConnectionFactory\", level=DEBUG)
   @Override
   public void warnDifferentConnectionfactory() {
      if (logger.isDebugEnabled()) {
         logger.debug("AMQ153001: using different ActiveMQRAConnectionFactory");
      }
   }

   // @org.apache.activemq.artemis.logs.annotation.Message(id=153002, value=\"Cannot create a subscriber on the durable subscription since it already has subscriber(s)\")
   @Override
   public javax.jms.IllegalStateException canNotCreatedNonSharedSubscriber() {
      String returnString = "AMQ153002: Cannot create a subscriber on the durable subscription since it already has subscriber(s)";

      {
         javax.jms.IllegalStateException objReturn_canNotCreatedNonSharedSubscriber = new javax.jms.IllegalStateException(returnString);
         _copyStackTraceMinusOne(objReturn_canNotCreatedNonSharedSubscriber);
         return objReturn_canNotCreatedNonSharedSubscriber;
      }
   }

   // @org.apache.activemq.artemis.logs.annotation.LogMessage(id=153003, value=\"Unsupported acknowledgement mode {}\", level=WARN)
   @Override
   public void invalidAcknowledgementMode(java.lang.String mode) {
      if (logger.isWarnEnabled()) {
         logger.warn("AMQ153003: Unsupported acknowledgement mode {}", mode);
      }
   }

   // @org.apache.activemq.artemis.logs.annotation.LogMessage(id=153004, value=\"Invalid number of session (negative) {}, defaulting to {}.\", level=WARN)
   @Override
   public void invalidNumberOfMaxSession(int value, int defaultValue) {
      if (logger.isWarnEnabled()) {
         logger.warn("AMQ153004: Invalid number of session (negative) {}, defaulting to {}.", value, defaultValue);
      }
   }

   // @org.apache.activemq.artemis.logs.annotation.LogMessage(id=153005, value=\"Unable to retrieve \\"{}\\" from JNDI. Creating a new \\"{}\\" named \\"{}\\" to be used by the MDB.\", level=WARN)
   @Override
   public void unableToRetrieveDestinationName(java.lang.String destinationName, java.lang.String name, java.lang.String calculatedDestinationName) {
      if (logger.isWarnEnabled()) {
         logger.warn("AMQ153005: Unable to retrieve \"{}\" from JNDI. Creating a new \"{}\" named \"{}\" to be used by the MDB.", destinationName, name, calculatedDestinationName);
      }
   }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy