org.jboss.as.clustering.logging.ClusteringLogger_$logger Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of wildfly-clustering-common Show documentation
Show all versions of wildfly-clustering-common Show documentation
The code in this module is not explicitly related to clustering, but rather contains resuable code used by clustering modules
and any modules that integrate with clustering.
package org.jboss.as.clustering.logging;
import java.util.Locale;
import java.io.Serializable;
import javax.annotation.Generated;
import java.util.Set;
import org.jboss.logging.DelegatingBasicLogger;
import org.jboss.logging.BasicLogger;
import org.jboss.as.controller.OperationFailedException;
import java.lang.Throwable;
import java.lang.Object;
import java.lang.String;
import org.jboss.logging.Logger;
import java.util.Arrays;
import static org.jboss.logging.Logger.Level.WARN;
/**
* Warning this class consists of generated code.
*/
@Generated(value = "org.jboss.logging.processor.generator.model.MessageLoggerImplementor", date = "2022-08-28T22:11:40-0500")
public class ClusteringLogger_$logger extends DelegatingBasicLogger implements ClusteringLogger, BasicLogger, Serializable {
private static final long serialVersionUID = 1L;
private static final String FQCN = ClusteringLogger_$logger.class.getName();
public ClusteringLogger_$logger(final Logger log) {
super(log);
}
private static final Locale LOCALE = Locale.ROOT;
protected Locale getLoggingLocale() {
return LOCALE;
}
protected String parameterValueOutOfBounds$str() {
return "WFLYCLCOM0001: %2$g is not a valid value for parameter %1$s. The value must be %3$s %4$g";
}
@Override
public final OperationFailedException parameterValueOutOfBounds(final String name, final double value, final String relationalOperator, final double bound) {
final OperationFailedException result = new OperationFailedException(String.format(getLoggingLocale(), parameterValueOutOfBounds$str(), name, value, relationalOperator, bound));
_copyStackTraceMinusOne(result);
return result;
}
private static void _copyStackTraceMinusOne(final Throwable e) {
final StackTraceElement[] st = e.getStackTrace();
e.setStackTrace(Arrays.copyOfRange(st, 1, st.length));
}
@Override
public final void failedToClose(final Throwable cause, final Object value) {
super.log.logf(FQCN, WARN, cause, failedToClose$str(), value);
}
protected String failedToClose$str() {
return "WFLYCLCOM0002: Failed to close %s";
}
protected String attributesDoNotSupportNegativeValues$str() {
return "WFLYCLCOM0003: The following attributes do not support negative values: %s";
}
@Override
public final String attributesDoNotSupportNegativeValues(final Set attributes) {
return String.format(getLoggingLocale(), attributesDoNotSupportNegativeValues$str(), attributes);
}
protected String attributesDoNotSupportZeroValues$str() {
return "WFLYCLCOM0004: The following attributes do not support zero values: %s";
}
@Override
public final String attributesDoNotSupportZeroValues(final Set attributes) {
return String.format(getLoggingLocale(), attributesDoNotSupportZeroValues$str(), attributes);
}
protected String rejectedMultipleValues$str() {
return "WFLYCLCOM0005: Legacy host does not support multiple values for attributes: %s";
}
@Override
public final String rejectedMultipleValues(final Set attributes) {
return String.format(getLoggingLocale(), rejectedMultipleValues$str(), attributes);
}
}