private static class TestByteBuffAllocatorLeakDetection.MockedLogger extends Object implements org.apache.hbase.thirdparty.io.netty.util.internal.logging.InternalLogger
Modifier and Type | Field and Description |
---|---|
private org.apache.hbase.thirdparty.io.netty.util.internal.logging.InternalLogger |
delegate |
private AtomicInteger |
leaksDetected |
Constructor and Description |
---|
MockedLogger(AtomicInteger leaksDetected,
org.apache.hbase.thirdparty.io.netty.util.internal.logging.InternalLogger delegate) |
Modifier and Type | Method and Description |
---|---|
void |
debug(String msg) |
void |
debug(String format,
Object... arguments) |
void |
debug(String format,
Object arg) |
void |
debug(String format,
Object argA,
Object argB) |
void |
debug(String msg,
Throwable t) |
void |
debug(Throwable t) |
void |
error(String msg) |
void |
error(String format,
Object... arguments) |
void |
error(String format,
Object arg) |
void |
error(String format,
Object argA,
Object argB) |
void |
error(String msg,
Throwable t) |
void |
error(Throwable t) |
void |
info(String msg) |
void |
info(String format,
Object... arguments) |
void |
info(String format,
Object arg) |
void |
info(String format,
Object argA,
Object argB) |
void |
info(String msg,
Throwable t) |
void |
info(Throwable t) |
boolean |
isDebugEnabled() |
boolean |
isEnabled(org.apache.hbase.thirdparty.io.netty.util.internal.logging.InternalLogLevel level) |
boolean |
isErrorEnabled() |
boolean |
isInfoEnabled() |
boolean |
isTraceEnabled() |
boolean |
isWarnEnabled() |
void |
log(org.apache.hbase.thirdparty.io.netty.util.internal.logging.InternalLogLevel level,
String msg) |
void |
log(org.apache.hbase.thirdparty.io.netty.util.internal.logging.InternalLogLevel level,
String format,
Object... arguments) |
void |
log(org.apache.hbase.thirdparty.io.netty.util.internal.logging.InternalLogLevel level,
String format,
Object arg) |
void |
log(org.apache.hbase.thirdparty.io.netty.util.internal.logging.InternalLogLevel level,
String format,
Object argA,
Object argB) |
void |
log(org.apache.hbase.thirdparty.io.netty.util.internal.logging.InternalLogLevel level,
String msg,
Throwable t) |
void |
log(org.apache.hbase.thirdparty.io.netty.util.internal.logging.InternalLogLevel level,
Throwable t) |
private void |
maybeCountLeak(String msgOrFormat) |
String |
name() |
void |
trace(String msg) |
void |
trace(String format,
Object... arguments) |
void |
trace(String format,
Object arg) |
void |
trace(String format,
Object argA,
Object argB) |
void |
trace(String msg,
Throwable t) |
void |
trace(Throwable t) |
void |
warn(String msg) |
void |
warn(String format,
Object... arguments) |
void |
warn(String format,
Object arg) |
void |
warn(String format,
Object argA,
Object argB) |
void |
warn(String msg,
Throwable t) |
void |
warn(Throwable t) |
private AtomicInteger leaksDetected
private org.apache.hbase.thirdparty.io.netty.util.internal.logging.InternalLogger delegate
public MockedLogger(AtomicInteger leaksDetected, org.apache.hbase.thirdparty.io.netty.util.internal.logging.InternalLogger delegate)
private void maybeCountLeak(String msgOrFormat)
public void error(String msg)
error
in interface org.apache.hbase.thirdparty.io.netty.util.internal.logging.InternalLogger
public void error(String format, Object arg)
error
in interface org.apache.hbase.thirdparty.io.netty.util.internal.logging.InternalLogger
public void error(String format, Object argA, Object argB)
error
in interface org.apache.hbase.thirdparty.io.netty.util.internal.logging.InternalLogger
public void error(String format, Object... arguments)
error
in interface org.apache.hbase.thirdparty.io.netty.util.internal.logging.InternalLogger
public void error(String msg, Throwable t)
error
in interface org.apache.hbase.thirdparty.io.netty.util.internal.logging.InternalLogger
public void error(Throwable t)
error
in interface org.apache.hbase.thirdparty.io.netty.util.internal.logging.InternalLogger
public String name()
name
in interface org.apache.hbase.thirdparty.io.netty.util.internal.logging.InternalLogger
public boolean isTraceEnabled()
isTraceEnabled
in interface org.apache.hbase.thirdparty.io.netty.util.internal.logging.InternalLogger
public void trace(String msg)
trace
in interface org.apache.hbase.thirdparty.io.netty.util.internal.logging.InternalLogger
public void trace(String format, Object arg)
trace
in interface org.apache.hbase.thirdparty.io.netty.util.internal.logging.InternalLogger
public void trace(String format, Object argA, Object argB)
trace
in interface org.apache.hbase.thirdparty.io.netty.util.internal.logging.InternalLogger
public void trace(String format, Object... arguments)
trace
in interface org.apache.hbase.thirdparty.io.netty.util.internal.logging.InternalLogger
public void trace(String msg, Throwable t)
trace
in interface org.apache.hbase.thirdparty.io.netty.util.internal.logging.InternalLogger
public void trace(Throwable t)
trace
in interface org.apache.hbase.thirdparty.io.netty.util.internal.logging.InternalLogger
public boolean isDebugEnabled()
isDebugEnabled
in interface org.apache.hbase.thirdparty.io.netty.util.internal.logging.InternalLogger
public void debug(String msg)
debug
in interface org.apache.hbase.thirdparty.io.netty.util.internal.logging.InternalLogger
public void debug(String format, Object arg)
debug
in interface org.apache.hbase.thirdparty.io.netty.util.internal.logging.InternalLogger
public void debug(String format, Object argA, Object argB)
debug
in interface org.apache.hbase.thirdparty.io.netty.util.internal.logging.InternalLogger
public void debug(String format, Object... arguments)
debug
in interface org.apache.hbase.thirdparty.io.netty.util.internal.logging.InternalLogger
public void debug(String msg, Throwable t)
debug
in interface org.apache.hbase.thirdparty.io.netty.util.internal.logging.InternalLogger
public void debug(Throwable t)
debug
in interface org.apache.hbase.thirdparty.io.netty.util.internal.logging.InternalLogger
public boolean isInfoEnabled()
isInfoEnabled
in interface org.apache.hbase.thirdparty.io.netty.util.internal.logging.InternalLogger
public void info(String msg)
info
in interface org.apache.hbase.thirdparty.io.netty.util.internal.logging.InternalLogger
public void info(String format, Object arg)
info
in interface org.apache.hbase.thirdparty.io.netty.util.internal.logging.InternalLogger
public void info(String format, Object argA, Object argB)
info
in interface org.apache.hbase.thirdparty.io.netty.util.internal.logging.InternalLogger
public void info(String format, Object... arguments)
info
in interface org.apache.hbase.thirdparty.io.netty.util.internal.logging.InternalLogger
public void info(String msg, Throwable t)
info
in interface org.apache.hbase.thirdparty.io.netty.util.internal.logging.InternalLogger
public void info(Throwable t)
info
in interface org.apache.hbase.thirdparty.io.netty.util.internal.logging.InternalLogger
public boolean isWarnEnabled()
isWarnEnabled
in interface org.apache.hbase.thirdparty.io.netty.util.internal.logging.InternalLogger
public void warn(String msg)
warn
in interface org.apache.hbase.thirdparty.io.netty.util.internal.logging.InternalLogger
public void warn(String format, Object arg)
warn
in interface org.apache.hbase.thirdparty.io.netty.util.internal.logging.InternalLogger
public void warn(String format, Object... arguments)
warn
in interface org.apache.hbase.thirdparty.io.netty.util.internal.logging.InternalLogger
public void warn(String format, Object argA, Object argB)
warn
in interface org.apache.hbase.thirdparty.io.netty.util.internal.logging.InternalLogger
public void warn(String msg, Throwable t)
warn
in interface org.apache.hbase.thirdparty.io.netty.util.internal.logging.InternalLogger
public void warn(Throwable t)
warn
in interface org.apache.hbase.thirdparty.io.netty.util.internal.logging.InternalLogger
public boolean isErrorEnabled()
isErrorEnabled
in interface org.apache.hbase.thirdparty.io.netty.util.internal.logging.InternalLogger
public boolean isEnabled(org.apache.hbase.thirdparty.io.netty.util.internal.logging.InternalLogLevel level)
isEnabled
in interface org.apache.hbase.thirdparty.io.netty.util.internal.logging.InternalLogger
public void log(org.apache.hbase.thirdparty.io.netty.util.internal.logging.InternalLogLevel level, String msg)
log
in interface org.apache.hbase.thirdparty.io.netty.util.internal.logging.InternalLogger
public void log(org.apache.hbase.thirdparty.io.netty.util.internal.logging.InternalLogLevel level, String format, Object arg)
log
in interface org.apache.hbase.thirdparty.io.netty.util.internal.logging.InternalLogger
public void log(org.apache.hbase.thirdparty.io.netty.util.internal.logging.InternalLogLevel level, String format, Object argA, Object argB)
log
in interface org.apache.hbase.thirdparty.io.netty.util.internal.logging.InternalLogger
public void log(org.apache.hbase.thirdparty.io.netty.util.internal.logging.InternalLogLevel level, String format, Object... arguments)
log
in interface org.apache.hbase.thirdparty.io.netty.util.internal.logging.InternalLogger
public void log(org.apache.hbase.thirdparty.io.netty.util.internal.logging.InternalLogLevel level, String msg, Throwable t)
log
in interface org.apache.hbase.thirdparty.io.netty.util.internal.logging.InternalLogger
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.