org.xnio.nio.Log_$logger Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of xnio-nio Show documentation
Show all versions of xnio-nio Show documentation
The NIO implementation of the XNIO project
The newest version!
package org.xnio.nio;
import java.io.IOException;
import java.io.Serializable;
import java.nio.channels.spi.SelectorProvider;
import javax.annotation.Generated;
import org.jboss.logging.BasicLogger;
import org.jboss.logging.DelegatingBasicLogger;
import org.jboss.logging.Logger;
/**
* Warning this class consists of generated code.
*
*/
@Generated(value = "org.jboss.logging.processor.generator.model.MessageLoggerImplementor", date = "2017-06-28T07:57:41-0500")
public class Log_$logger
extends DelegatingBasicLogger
implements Serializable, BasicLogger, Log
{
private final static long serialVersionUID = 1L;
private final static java.lang.String FQCN = Log_$logger.class.getName();
private final static java.lang.String greeting = "XNIO NIO Implementation Version %s";
private final static java.lang.String taskFailed = "XNIO000011: Task %s failed with an exception";
private final static java.lang.String parameterOutOfRange = "XNIO000015: Parameter '%s' is out of range";
private final static java.lang.String optionOutOfRange = "XNIO000039: Value for option '%s' is out of range";
private final static java.lang.String readTimeout = "XNIO000800: Read timed out";
private final static java.lang.String writeTimeout = "XNIO000801: Write timed out";
private final static java.lang.String interruptedIO = "XNIO000808: I/O operation was interrupted";
private final static java.lang.String workerShutDown = "XNIO000815: Worker is shut down";
private final static java.lang.String unsupported = "XNIO000900: Method '%s' is not supported on this implementation";
private final static java.lang.String failedToInvokeFileWatchCallback = "XNIO001006: Failed to invoke file watch callback";
private final static java.lang.String noThreads = "XNIO007000: No threads configured";
private final static java.lang.String balancingTokens = "XNIO007001: Balancing token count must be greater than zero and less than thread count";
private final static java.lang.String balancingConnectionCount = "XNIO007002: Balancing connection count must be greater than zero when tokens are used";
private final static java.lang.String bufferTooLarge = "XNIO007003: Buffer is too large";
private final static java.lang.String noSelectorProvider = "XNIO007004: No functional selector provider is available";
private final static java.lang.String unexpectedSelectorOpenProblem = "XNIO007005: Unexpected exception opening a selector";
private final static java.lang.String notNioProvider = "XNIO007006: XNIO IO factory is from the wrong provider";
private final static java.lang.String threadExiting = "XNIO007007: Thread is terminating";
private final static java.lang.String selectionError = "XNIO008000: Received an I/O error on selection: %s";
private final static java.lang.String selectorProvider = "Starting up with selector provider %s";
private final static java.lang.String selectors = "Using %s for main selectors and %s for temp selectors";
public Log_$logger(final Logger log) {
super(log);
}
public final void greeting(final java.lang.String version) {
super.log.logf(FQCN, (org.jboss.logging.Logger.Level.INFO), null, greeting$str(), version);
}
protected java.lang.String greeting$str() {
return greeting;
}
public final void taskFailed(final Runnable command, final java.lang.Throwable cause) {
super.log.logf(FQCN, (org.jboss.logging.Logger.Level.ERROR), (cause), taskFailed$str(), command);
}
protected java.lang.String taskFailed$str() {
return taskFailed;
}
public final java.lang.IllegalArgumentException parameterOutOfRange(final java.lang.String name) {
java.lang.IllegalArgumentException result = new java.lang.IllegalArgumentException(java.lang.String.format(parameterOutOfRange$str(), name));
java.lang.StackTraceElement[] st = result.getStackTrace();
result.setStackTrace(java.util.Arrays.copyOfRange(st, 1, st.length));
return result;
}
protected java.lang.String parameterOutOfRange$str() {
return parameterOutOfRange;
}
public final java.lang.IllegalArgumentException optionOutOfRange(final java.lang.String name) {
java.lang.IllegalArgumentException result = new java.lang.IllegalArgumentException(java.lang.String.format(optionOutOfRange$str(), name));
java.lang.StackTraceElement[] st = result.getStackTrace();
result.setStackTrace(java.util.Arrays.copyOfRange(st, 1, st.length));
return result;
}
protected java.lang.String optionOutOfRange$str() {
return optionOutOfRange;
}
public final org.xnio.channels.ReadTimeoutException readTimeout() {
org.xnio.channels.ReadTimeoutException result = new org.xnio.channels.ReadTimeoutException(java.lang.String.format(readTimeout$str()));
java.lang.StackTraceElement[] st = result.getStackTrace();
result.setStackTrace(java.util.Arrays.copyOfRange(st, 1, st.length));
return result;
}
protected java.lang.String readTimeout$str() {
return readTimeout;
}
public final org.xnio.channels.WriteTimeoutException writeTimeout() {
org.xnio.channels.WriteTimeoutException result = new org.xnio.channels.WriteTimeoutException(java.lang.String.format(writeTimeout$str()));
java.lang.StackTraceElement[] st = result.getStackTrace();
result.setStackTrace(java.util.Arrays.copyOfRange(st, 1, st.length));
return result;
}
protected java.lang.String writeTimeout$str() {
return writeTimeout;
}
public final java.io.InterruptedIOException interruptedIO() {
java.io.InterruptedIOException result = new java.io.InterruptedIOException(java.lang.String.format(interruptedIO$str()));
java.lang.StackTraceElement[] st = result.getStackTrace();
result.setStackTrace(java.util.Arrays.copyOfRange(st, 1, st.length));
return result;
}
protected java.lang.String interruptedIO$str() {
return interruptedIO;
}
public final java.io.InterruptedIOException interruptedIO(final int bytesTransferred) {
java.io.InterruptedIOException result = new java.io.InterruptedIOException(java.lang.String.format(interruptedIO$str()));
java.lang.StackTraceElement[] st = result.getStackTrace();
result.setStackTrace(java.util.Arrays.copyOfRange(st, 1, st.length));
result.bytesTransferred = bytesTransferred;
return result;
}
public final org.xnio.ClosedWorkerException workerShutDown() {
org.xnio.ClosedWorkerException result = new org.xnio.ClosedWorkerException(java.lang.String.format(workerShutDown$str()));
java.lang.StackTraceElement[] st = result.getStackTrace();
result.setStackTrace(java.util.Arrays.copyOfRange(st, 1, st.length));
return result;
}
protected java.lang.String workerShutDown$str() {
return workerShutDown;
}
public final java.lang.UnsupportedOperationException unsupported(final java.lang.String methodName) {
java.lang.UnsupportedOperationException result = new java.lang.UnsupportedOperationException(java.lang.String.format(unsupported$str(), methodName));
java.lang.StackTraceElement[] st = result.getStackTrace();
result.setStackTrace(java.util.Arrays.copyOfRange(st, 1, st.length));
return result;
}
protected java.lang.String unsupported$str() {
return unsupported;
}
public final void failedToInvokeFileWatchCallback(final java.lang.Throwable cause) {
super.log.logf(FQCN, (org.jboss.logging.Logger.Level.ERROR), (cause), failedToInvokeFileWatchCallback$str());
}
protected java.lang.String failedToInvokeFileWatchCallback$str() {
return failedToInvokeFileWatchCallback;
}
public final java.lang.IllegalArgumentException noThreads() {
java.lang.IllegalArgumentException result = new java.lang.IllegalArgumentException(java.lang.String.format(noThreads$str()));
java.lang.StackTraceElement[] st = result.getStackTrace();
result.setStackTrace(java.util.Arrays.copyOfRange(st, 1, st.length));
return result;
}
protected java.lang.String noThreads$str() {
return noThreads;
}
public final java.lang.IllegalArgumentException balancingTokens() {
java.lang.IllegalArgumentException result = new java.lang.IllegalArgumentException(java.lang.String.format(balancingTokens$str()));
java.lang.StackTraceElement[] st = result.getStackTrace();
result.setStackTrace(java.util.Arrays.copyOfRange(st, 1, st.length));
return result;
}
protected java.lang.String balancingTokens$str() {
return balancingTokens;
}
public final java.lang.IllegalArgumentException balancingConnectionCount() {
java.lang.IllegalArgumentException result = new java.lang.IllegalArgumentException(java.lang.String.format(balancingConnectionCount$str()));
java.lang.StackTraceElement[] st = result.getStackTrace();
result.setStackTrace(java.util.Arrays.copyOfRange(st, 1, st.length));
return result;
}
protected java.lang.String balancingConnectionCount$str() {
return balancingConnectionCount;
}
public final java.lang.IllegalArgumentException bufferTooLarge() {
java.lang.IllegalArgumentException result = new java.lang.IllegalArgumentException(java.lang.String.format(bufferTooLarge$str()));
java.lang.StackTraceElement[] st = result.getStackTrace();
result.setStackTrace(java.util.Arrays.copyOfRange(st, 1, st.length));
return result;
}
protected java.lang.String bufferTooLarge$str() {
return bufferTooLarge;
}
public final java.lang.IllegalStateException noSelectorProvider() {
java.lang.IllegalStateException result = new java.lang.IllegalStateException(java.lang.String.format(noSelectorProvider$str()));
java.lang.StackTraceElement[] st = result.getStackTrace();
result.setStackTrace(java.util.Arrays.copyOfRange(st, 1, st.length));
return result;
}
protected java.lang.String noSelectorProvider$str() {
return noSelectorProvider;
}
public final java.lang.IllegalStateException unexpectedSelectorOpenProblem(final java.lang.Throwable cause) {
java.lang.IllegalStateException result = new java.lang.IllegalStateException(java.lang.String.format(unexpectedSelectorOpenProblem$str()), cause);
java.lang.StackTraceElement[] st = result.getStackTrace();
result.setStackTrace(java.util.Arrays.copyOfRange(st, 1, st.length));
return result;
}
protected java.lang.String unexpectedSelectorOpenProblem$str() {
return unexpectedSelectorOpenProblem;
}
public final java.lang.IllegalArgumentException notNioProvider() {
java.lang.IllegalArgumentException result = new java.lang.IllegalArgumentException(java.lang.String.format(notNioProvider$str()));
java.lang.StackTraceElement[] st = result.getStackTrace();
result.setStackTrace(java.util.Arrays.copyOfRange(st, 1, st.length));
return result;
}
protected java.lang.String notNioProvider$str() {
return notNioProvider;
}
public final java.util.concurrent.RejectedExecutionException threadExiting() {
java.util.concurrent.RejectedExecutionException result = new java.util.concurrent.RejectedExecutionException(java.lang.String.format(threadExiting$str()));
java.lang.StackTraceElement[] st = result.getStackTrace();
result.setStackTrace(java.util.Arrays.copyOfRange(st, 1, st.length));
return result;
}
protected java.lang.String threadExiting$str() {
return threadExiting;
}
public final void selectionError(final IOException e) {
super.log.logf(FQCN, (org.jboss.logging.Logger.Level.WARN), null, selectionError$str(), e);
}
protected java.lang.String selectionError$str() {
return selectionError;
}
public final void selectorProvider(final SelectorProvider provider) {
Class providerClass;
if (provider == null) {
providerClass = null;
} else {
providerClass = provider.getClass();
}
super.log.logf(FQCN, (org.jboss.logging.Logger.Level.TRACE), null, selectorProvider$str(), providerClass);
}
protected java.lang.String selectorProvider$str() {
return selectorProvider;
}
public final void selectors(final java.lang.Object mainSelectorCreator, final java.lang.Object tempSelectorCreator) {
super.log.logf(FQCN, (org.jboss.logging.Logger.Level.TRACE), null, selectors$str(), mainSelectorCreator, tempSelectorCreator);
}
protected java.lang.String selectors$str() {
return selectors;
}
}