A B C D E F G H I K L M N O P R S T V

A

add(E, boolean) - Method in class org.mentalog.config.ListConfigParam
 
add(E) - Method in class org.mentalog.config.ListConfigParam
 
add(Encoder) - Static method in enum org.mentalog.Log
 
add(Interceptor) - Static method in enum org.mentalog.Log
 
add(AsciiEncodable) - Method in enum org.mentalog.Log
 
add(char[]) - Method in enum org.mentalog.Log
 
add(byte[]) - Method in enum org.mentalog.Log
 
add(long) - Method in enum org.mentalog.Log
 
add(int) - Method in enum org.mentalog.Log
 
add(double) - Method in enum org.mentalog.Log
 
add(float) - Method in enum org.mentalog.Log
 
add(byte) - Method in enum org.mentalog.Log
 
add(short) - Method in enum org.mentalog.Log
 
add(char) - Method in enum org.mentalog.Log
 
add(boolean) - Method in enum org.mentalog.Log
 
add(Object) - Method in enum org.mentalog.Log
 
add(StringBuilder) - Method in enum org.mentalog.Log
 
add(long) - Method in class org.mentalog.LogEvent
 
add(int) - Method in class org.mentalog.LogEvent
 
add(double) - Method in class org.mentalog.LogEvent
 
add(float) - Method in class org.mentalog.LogEvent
 
add(byte) - Method in class org.mentalog.LogEvent
 
add(short) - Method in class org.mentalog.LogEvent
 
add(char) - Method in class org.mentalog.LogEvent
 
add(boolean) - Method in class org.mentalog.LogEvent
 
add(Object) - Method in class org.mentalog.LogEvent
 
add(AsciiEncodable) - Method in interface org.mentalog.LogMessageBuilder
 
add(StringBuilder) - Method in interface org.mentalog.LogMessageBuilder
 
add(char[]) - Method in interface org.mentalog.LogMessageBuilder
 
add(byte[]) - Method in interface org.mentalog.LogMessageBuilder
 
add(long) - Method in interface org.mentalog.LogMessageBuilder
 
add(int) - Method in interface org.mentalog.LogMessageBuilder
 
add(double) - Method in interface org.mentalog.LogMessageBuilder
 
add(float) - Method in interface org.mentalog.LogMessageBuilder
 
add(byte) - Method in interface org.mentalog.LogMessageBuilder
 
add(short) - Method in interface org.mentalog.LogMessageBuilder
 
add(char) - Method in interface org.mentalog.LogMessageBuilder
 
add(boolean) - Method in interface org.mentalog.LogMessageBuilder
 
add(Object) - Method in interface org.mentalog.LogMessageBuilder
 
addCopy(AsciiEncodable) - Method in class org.mentalog.LogEvent
 
addCopy(char[]) - Method in class org.mentalog.LogEvent
 
addCopy(byte[]) - Method in class org.mentalog.LogEvent
 
addCopy(StringBuilder) - Method in class org.mentalog.LogEvent
 
addCopy(Object) - Method in class org.mentalog.LogEvent
 
addInterceptor(Interceptor) - Method in enum org.mentalog.Log
 
addInterceptor(Interceptor) - Method in interface org.mentalog.Logger
Add a log interceptor, so you can intercept the bytebuffer that is about to be written by the log.
ASCII - Static variable in interface org.mentalog.encoder.Encoder
 
AsciiEncodable - Interface in org.mentalog
 
AsciiEncoder - Class in org.mentalog.encoder
 
AsciiEncoder() - Constructor for class org.mentalog.encoder.AsciiEncoder
 
assignment(long) - Static method in class org.mentalog.test.PauseSupport
 
AsynchronousLogger - Interface in org.mentalog
 
AsyncThread - Class in org.mentalog
 
AsyncThread() - Constructor for class org.mentalog.AsyncThread
 

B

Benchmarker - Class in org.mentalog.util
 
Benchmarker(int) - Constructor for class org.mentalog.util.Benchmarker
 
Benchmarker() - Constructor for class org.mentalog.util.Benchmarker
 
bool() - Method in class org.mentalog.config.BooleanConfigParam
 
BooleanConfigParam - Class in org.mentalog.config
 
BooleanConfigParam(String, Boolean) - Constructor for class org.mentalog.config.BooleanConfigParam
 
BYTE_OR_CHAR_ARRAY - Static variable in interface org.mentalog.encoder.Encoder
 
ByteArrayConfigParam - Class in org.mentalog.config
 
ByteArrayConfigParam(String, byte[]) - Constructor for class org.mentalog.config.ByteArrayConfigParam
 
ByteOrCharArrayEncoder - Class in org.mentalog.encoder
 
ByteOrCharArrayEncoder() - Constructor for class org.mentalog.encoder.ByteOrCharArrayEncoder
 
bytes() - Method in class org.mentalog.config.ByteArrayConfigParam
 
BytesConfigParam - Class in org.mentalog.config
 
BytesConfigParam(String, int) - Constructor for class org.mentalog.config.BytesConfigParam
 
BytesConfigParam(String, String) - Constructor for class org.mentalog.config.BytesConfigParam
 

C

changeTimeZone(TimeZone) - Method in class org.mentalog.util.DateTimeFormatter
 
CHAR_SEQUENCE - Static variable in interface org.mentalog.encoder.Encoder
 
CharSequenceEncoder - Class in org.mentalog.encoder
 
CharSequenceEncoder() - Constructor for class org.mentalog.encoder.CharSequenceEncoder
 
checkAndLog(String, Object, Object) - Static method in class org.mentalog.config.ConfigParam
 
close(boolean) - Method in interface org.mentalog.AsynchronousLogger
 
close() - Method in enum org.mentalog.Log
 
close(boolean) - Method in enum org.mentalog.Log
 
close() - Method in interface org.mentalog.Logger
Close this log.
closeAll() - Static method in enum org.mentalog.Log
 
closeLater(Logger, boolean) - Static method in class org.mentalog.AsyncThread
 
ConfigParam<E> - Class in org.mentalog.config
 
ConfigParam(String, E) - Constructor for class org.mentalog.config.ConfigParam
 
Configuration - Interface in org.mentalog
 
configure() - Method in interface org.mentalog.Configuration
 
createLogger(String, String, Timestamper, boolean, boolean) - Static method in enum org.mentalog.Log
 
createLogger(String, String, boolean, boolean) - Static method in enum org.mentalog.Log
 
createLogger(String, String, boolean, List<Encoder>, boolean) - Static method in enum org.mentalog.Log
 
createLogger(String, String, boolean, boolean, int, boolean) - Static method in enum org.mentalog.Log
 
createLogger(String, String, Timestamper, boolean, boolean, int, List<Encoder>, boolean) - Static method in enum org.mentalog.Log
 
createMemoryMappedLogger(String, String, Timestamper, boolean, boolean) - Static method in enum org.mentalog.Log
 
createMemoryMappedLogger(String, String, boolean, boolean) - Static method in enum org.mentalog.Log
 
createMemoryMappedLogger(String, String, boolean, List<Encoder>, boolean) - Static method in enum org.mentalog.Log
 
createMemoryMappedLogger(String, String, Timestamper, boolean, int, boolean) - Static method in enum org.mentalog.Log
 
createMemoryMappedLogger(String, String, boolean, int, boolean) - Static method in enum org.mentalog.Log
 
createMemoryMappedLogger(String, String, boolean, List<Encoder>, int, boolean) - Static method in enum org.mentalog.Log
 

D

DateTimeFormatter - Class in org.mentalog.util
 
DateTimeFormatter(TimeZone) - Constructor for class org.mentalog.util.DateTimeFormatter
 
DateTimeFormatter() - Constructor for class org.mentalog.util.DateTimeFormatter
 
DetailedBenchmarker - Class in org.mentalog.util
 
DetailedBenchmarker() - Constructor for class org.mentalog.util.DetailedBenchmarker
 
DetailedBenchmarker(int) - Constructor for class org.mentalog.util.DetailedBenchmarker
 
drainAndStop() - Static method in class org.mentalog.AsyncThread
 

E

enable(Boolean) - Method in enum org.mentalog.Log
 
enableAll(Boolean) - Static method in enum org.mentalog.Log
 
encode(Object, ByteBuffer, int, int) - Method in class org.mentalog.encoder.AsciiEncoder
 
encode(Object, ByteBuffer, int, int) - Method in class org.mentalog.encoder.ByteOrCharArrayEncoder
 
encode(Object, ByteBuffer, int, int) - Method in class org.mentalog.encoder.CharSequenceEncoder
 
encode(Object, ByteBuffer, int, int) - Method in interface org.mentalog.encoder.Encoder
Encode the given object into the provided byte buffer.
encode(Object, ByteBuffer, int, int) - Method in class org.mentalog.encoder.NullEncoder
 
encode(Object, ByteBuffer, int, int) - Method in class org.mentalog.encoder.ThrowableEncoder
 
Encoder - Interface in org.mentalog.encoder
An interface that you can use to encode any object inside a ByteBuffer.
ExtendedDefaultLogger - Class in org.mentalog
 
ExtendedDefaultLogger(PrintStream, String, Timestamper, boolean, byte[], List<Encoder>, Log, boolean) - Constructor for class org.mentalog.ExtendedDefaultLogger
 
ExtendedDefaultLogger(String, String, Timestamper, boolean, boolean, int, List<Encoder>, Log, boolean) - Constructor for class org.mentalog.ExtendedDefaultLogger
 
ExtendedDefaultLogger(String, Timestamper, boolean, boolean, int, List<Encoder>, Log, boolean) - Constructor for class org.mentalog.ExtendedDefaultLogger
 

F

flip() - Method in class org.mentalog.LogEvent
 
FloatConfigParam - Class in org.mentalog.config
 
FloatConfigParam(String, float) - Constructor for class org.mentalog.config.FloatConfigParam
 
flush(boolean) - Static method in class org.mentalog.AsyncThread
 
flush() - Method in enum org.mentalog.Log
 
flush() - Method in interface org.mentalog.LogMessageBuilder
 
force() - Method in class org.mentalog.config.ConfigParam
 
formatTime(long) - Method in class org.mentalog.util.DateTimeFormatter
 
formatTimeTo(Appendable, long) - Method in class org.mentalog.util.DateTimeFormatter
 
fromString(String) - Static method in enum org.mentalog.Log
 

G

GCTest - Class in org.mentalog.test
java -verbose:gc -cp ../MentaLogExt/target/mentalogext.jar:target/classes:lib/slf4j-api-1.6.2.jar:lib/logback-core-0.9.30.jar:lib/logback-classic-0.9.30.jar:lib/log4j-1.2.16.jar:lib/menta-queue-0.9.4.jar:lib/menta-affinity-0.9.7.jar:/usr/share/java/jna.jar:src/main/java/org/mentalog/test -DmemoryMappedFile=true -DmemoryMappedBufferSize=150m -Dasynchronous=true -Dlogback.configurationFile=./src/main/java/org/mentalog/test/logback.xml -DdetailedBenchmark=true -Ddelay=20 -DprocToBindProducer=2 -DlogProcToBindConsumer=3 -Xms1g -Xmx4g -XX:NewSize=512m -XX:MaxNewSize=1024m org.mentalog.test.GCTest 1000000 09:45:45.364-INFO Log created: ExtendedDefaultLogger=[file=./mentalog_gc_test.log, isSynchronized=false, isMemoryMappedFile=true, isAsynchronous=true, isExtended=true] Wrote 1000000 log lines to a file! Logs that allocated memory: 0 (0.0%) Logs that did not allocate any memory: 1000000 (100.0%) Logs that triggered GC: 0 (0.0%) Memory allocated: 0 bytes Benchmark: Iterations: 1000000 | Avg Time: 336.68 nanos | Min Time: 224 nanos | Max Time: 57275 nanos
GCTest() - Constructor for class org.mentalog.test.GCTest
 
getBoolean(String, boolean) - Static method in class org.mentalog.util.SystemUtils
 
getBoolean(String) - Static method in class org.mentalog.util.SystemUtils
 
getBufferSize() - Static method in enum org.mentalog.Log
 
getCause() - Method in exception org.mentalog.LogException
 
getDay(long) - Method in class org.mentalog.util.DateTimeFormatter
 
getDefault() - Method in class org.mentalog.config.ConfigParam
 
getDir() - Static method in enum org.mentalog.Log
 
getEncoders() - Static method in enum org.mentalog.Log
 
getFilter() - Static method in enum org.mentalog.Log
 
getLevel() - Static method in enum org.mentalog.Log
 
getLogEvent(Logger) - Static method in class org.mentalog.AsyncThread
 
getLogEvent() - Static method in class org.mentalog.util.LogEventUtils
 
getMemoryMappedBufferSize() - Static method in enum org.mentalog.Log
 
getMemoryMappedBufferThreshold() - Static method in enum org.mentalog.Log
 
getMonth(long) - Method in class org.mentalog.util.DateTimeFormatter
 
getName() - Method in class org.mentalog.config.ConfigParam
 
getPointer() - Static method in class org.mentalog.util.StringBuilderUtils
 
getPrecision() - Method in class org.mentalog.timestamper.MillisTimestamper
 
getPrecision() - Method in interface org.mentalog.timestamper.Timestamper
 
getShowBypassedConfigLevel() - Static method in enum org.mentalog.Log
 
getStackTrace(Throwable) - Static method in class org.mentalog.encoder.ThrowableEncoder
 
getString(String, String) - Static method in class org.mentalog.config.ConfigParam
 
getString(String, String) - Static method in class org.mentalog.util.SystemUtils
 
getString(String) - Static method in class org.mentalog.util.SystemUtils
 
getTimestamp() - Method in class org.mentalog.timestamper.MillisTimestamper
 
getTimestamp() - Method in interface org.mentalog.timestamper.Timestamper
 
getTimestamper() - Static method in enum org.mentalog.Log
 
getTimeZone() - Static method in enum org.mentalog.Log
 
getVarargs(int) - Method in enum org.mentalog.Log
 
getVarargs(int) - Method in interface org.mentalog.VarargsOverloading
 
getYear(long) - Method in class org.mentalog.util.DateTimeFormatter
 

H

hasNext() - Method in class org.mentalog.LogEvent
 

I

init(boolean) - Static method in class org.mentalog.AsyncThread
 
init(String) - Method in class org.mentalog.config.ConfigParam
 
init(String) - Method in class org.mentalog.config.ListConfigParam
 
instance() - Static method in class org.mentalog.util.Benchmarker
 
IntegerConfigParam - Class in org.mentalog.config
 
IntegerConfigParam(String, int) - Constructor for class org.mentalog.config.IntegerConfigParam
 
Interceptor - Interface in org.mentalog.interceptor
A interceptor interface that allows you to intercept the byte buffer before it is written to disk or console.
isAlertOnBufferRoll() - Static method in enum org.mentalog.Log
 
isBenchmark() - Static method in enum org.mentalog.Log
 
isCacheOnBufferRoll() - Static method in enum org.mentalog.Log
 
isClosed() - Method in enum org.mentalog.Log
 
isClosed() - Method in interface org.mentalog.Logger
Is this log closed?
isCloseEvent() - Method in class org.mentalog.LogEvent
 
isColors() - Static method in enum org.mentalog.Log
 
isConsole() - Static method in enum org.mentalog.Log
 
isConsumerLazySet() - Static method in enum org.mentalog.Log
 
isEnabled() - Method in enum org.mentalog.Log
 
isEnabled() - Method in interface org.mentalog.Logger
Is the log enabled, in other words, will a call to log() log anything? This method is useful if you don't want to process the log() method arguments.
isExtended() - Static method in enum org.mentalog.Log
 
isExtension() - Static method in class org.mentalog.ExtendedDefaultLogger
 
isFile() - Static method in enum org.mentalog.Log
 
isForced() - Method in class org.mentalog.config.ConfigParam
 
isForcedFalse() - Method in class org.mentalog.config.BooleanConfigParam
 
isForcedTrue() - Method in class org.mentalog.config.BooleanConfigParam
 
isForceMode() - Method in class org.mentalog.config.ConfigParam
 
isForceOnBufferRoll() - Static method in enum org.mentalog.Log
 
isForceOnClose() - Static method in enum org.mentalog.Log
 
isNoSpaceAfterEqualSign() - Static method in enum org.mentalog.Log
 
isNoSpaceBetweenObjects() - Static method in enum org.mentalog.Log
 
isOn(Log) - Method in enum org.mentalog.Log
 
isProducerLazySet() - Static method in enum org.mentalog.Log
 
isRollEvent() - Method in class org.mentalog.LogEvent
 
isSet() - Method in class org.mentalog.config.ConfigParam
 
isShowBypassedConfig() - Static method in enum org.mentalog.Log
 
isShowClassAndLineNumber() - Static method in enum org.mentalog.Log
 
isSynchronized() - Static method in enum org.mentalog.Log
 

K

kill() - Static method in class org.mentalog.AsyncThread
 

L

ListConfigParam<E> - Class in org.mentalog.config
 
ListConfigParam(String, String, String, List<E>) - Constructor for class org.mentalog.config.ListConfigParam
 
lock(long) - Static method in class org.mentalog.test.PauseSupport
 
log(boolean, Object...) - Method in interface org.mentalog.AsynchronousLogger
 
Log - Enum in org.mentalog
An enumeration with a log for each level.
log(Object...) - Method in enum org.mentalog.Log
 
log(boolean, Object...) - Method in enum org.mentalog.Log
 
log(Object) - Method in enum org.mentalog.Log
 
log(Object, Object) - Method in enum org.mentalog.Log
 
log(Object, Object, Object) - Method in enum org.mentalog.Log
 
log(Object, Object, Object, Object) - Method in enum org.mentalog.Log
 
log(Object, Object, Object, Object, Object) - Method in enum org.mentalog.Log
 
log(Object, Object, Object, Object, Object, Object) - Method in enum org.mentalog.Log
 
log(Object, Object, Object, Object, Object, Object, Object) - Method in enum org.mentalog.Log
 
log(Object, Object, Object, Object, Object, Object, Object, Object) - Method in enum org.mentalog.Log
 
log(Object, Object, Object, Object, Object, Object, Object, Object, Object) - Method in enum org.mentalog.Log
 
log(Object, Object, Object, Object, Object, Object, Object, Object, Object, Object) - Method in enum org.mentalog.Log
 
log(Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object) - Method in enum org.mentalog.Log
 
log(Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object) - Method in enum org.mentalog.Log
 
log(Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object) - Method in enum org.mentalog.Log
 
log(Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object) - Method in enum org.mentalog.Log
 
log(Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object) - Method in enum org.mentalog.Log
 
log(Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object) - Method in enum org.mentalog.Log
 
log(Object...) - Method in interface org.mentalog.Logger
Log as many objects as you want.
log(Object) - Method in interface org.mentalog.VarargsOverloading
 
log(Object, Object) - Method in interface org.mentalog.VarargsOverloading
 
log(Object, Object, Object) - Method in interface org.mentalog.VarargsOverloading
 
log(Object, Object, Object, Object) - Method in interface org.mentalog.VarargsOverloading
 
log(Object, Object, Object, Object, Object) - Method in interface org.mentalog.VarargsOverloading
 
log(Object, Object, Object, Object, Object, Object) - Method in interface org.mentalog.VarargsOverloading
 
log(Object, Object, Object, Object, Object, Object, Object) - Method in interface org.mentalog.VarargsOverloading
 
log(Object, Object, Object, Object, Object, Object, Object, Object) - Method in interface org.mentalog.VarargsOverloading
 
log(Object, Object, Object, Object, Object, Object, Object, Object, Object) - Method in interface org.mentalog.VarargsOverloading
 
log(Object, Object, Object, Object, Object, Object, Object, Object, Object, Object) - Method in interface org.mentalog.VarargsOverloading
 
log(Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object) - Method in interface org.mentalog.VarargsOverloading
 
log(Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object) - Method in interface org.mentalog.VarargsOverloading
 
log(Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object) - Method in interface org.mentalog.VarargsOverloading
 
log(Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object) - Method in interface org.mentalog.VarargsOverloading
 
log(Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object) - Method in interface org.mentalog.VarargsOverloading
 
log(Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object) - Method in interface org.mentalog.VarargsOverloading
 
logBenchmark() - Method in enum org.mentalog.Log
 
LogConfigParam - Class in org.mentalog.config
 
LogConfigParam(String, Log) - Constructor for class org.mentalog.config.LogConfigParam
 
LogEvent - Class in org.mentalog
 
LogEvent() - Constructor for class org.mentalog.LogEvent
 
LogEventUtils - Class in org.mentalog.util
 
LogEventUtils() - Constructor for class org.mentalog.util.LogEventUtils
 
LogException - Exception in org.mentalog
 
LogException() - Constructor for exception org.mentalog.LogException
 
LogException(Throwable) - Constructor for exception org.mentalog.LogException
 
LogException(String) - Constructor for exception org.mentalog.LogException
 
LogException(String, Throwable) - Constructor for exception org.mentalog.LogException
 
Logger - Interface in org.mentalog
The log interface.
logLater(Logger, boolean, Object...) - Static method in class org.mentalog.AsyncThread
 
LogMessageBuilder - Interface in org.mentalog
 

M

main(String[]) - Static method in enum org.mentalog.Log
 
main(String[]) - Static method in class org.mentalog.test.GCTest
 
main(String[]) - Static method in class org.mentalog.test.MMapFileTest
 
main(String[]) - Static method in class org.mentalog.test.PerformanceComparator
 
main(String[]) - Static method in class org.mentalog.util.DateTimeFormatter
 
mark() - Method in class org.mentalog.util.Benchmarker
 
markAsCloseEvent() - Method in class org.mentalog.LogEvent
 
markAsRollEvent() - Method in class org.mentalog.LogEvent
 
measure() - Method in class org.mentalog.util.Benchmarker
 
measure(long) - Method in class org.mentalog.util.Benchmarker
 
measure(long) - Method in class org.mentalog.util.DetailedBenchmarker
 
MILLIS - Static variable in interface org.mentalog.timestamper.Timestamper
 
MillisTimestamper - Class in org.mentalog.timestamper
MentaLog's default timestamper implementation.
MMapFileTest - Class in org.mentalog.test
 
MMapFileTest() - Constructor for class org.mentalog.test.MMapFileTest
 

N

next() - Method in class org.mentalog.LogEvent
 
NULL - Static variable in interface org.mentalog.encoder.Encoder
 
NULL - Static variable in class org.mentalog.encoder.NullEncoder
 
NullEncoder - Class in org.mentalog.encoder
 
NullEncoder() - Constructor for class org.mentalog.encoder.NullEncoder
 

O

onLogBuffer(ByteBuffer, Log) - Method in interface org.mentalog.interceptor.Interceptor
The byte buffer with the log contents about to be written.
org.mentalog - package org.mentalog
 
org.mentalog.config - package org.mentalog.config
 
org.mentalog.encoder - package org.mentalog.encoder
 
org.mentalog.interceptor - package org.mentalog.interceptor
 
org.mentalog.test - package org.mentalog.test
 
org.mentalog.timestamper - package org.mentalog.timestamper
 
org.mentalog.util - package org.mentalog.util
 

P

parseString(String) - Method in class org.mentalog.config.BooleanConfigParam
 
parseString(String) - Method in class org.mentalog.config.ByteArrayConfigParam
 
parseString(String) - Method in class org.mentalog.config.BytesConfigParam
 
parseString(String) - Method in class org.mentalog.config.ConfigParam
 
parseString(String) - Method in class org.mentalog.config.FloatConfigParam
 
parseString(String) - Method in class org.mentalog.config.IntegerConfigParam
 
parseString(String) - Method in class org.mentalog.config.ListConfigParam
 
parseString(String) - Method in class org.mentalog.config.LogConfigParam
 
parseString(String) - Method in class org.mentalog.config.StringConfigParam
 
parseString(String) - Method in class org.mentalog.config.StringsConfigParam
 
PauseSupport - Class in org.mentalog.test
 
PauseSupport() - Constructor for class org.mentalog.test.PauseSupport
 
PerformanceComparator - Class in org.mentalog.test
To run: - Regular: (no memory-mapped files, no async logging, no delay, with thread-affinity) java -verbose:gc -cp target/classes:lib/slf4j-api-1.6.2.jar:lib/logback-core-0.9.30.jar:lib/logback-classic-0.9.30.jar:lib/log4j-1.2.16.jar:lib/menta-queue-0.9.4.jar:lib/menta-affinity-0.9.7.jar:/usr/share/java/jna.jar:src/main/java/org/mentalog/test -DmemoryMappedFile=false -Dasynchronous=false -Dlogback.configurationFile=./src/main/java/org/mentalog/test/logback.xml -DdetailedBenchmark=true -Ddelay=-1 -DprocToBindProducer=2 -Xms1g -Xmx4g -XX:NewSize=512m -XX:MaxNewSize=1024m org.mentalog.test.PerformanceComparator 1000000 mentalog Benchmark: Iterations: 900000 | Avg Time: 5519.54 nanos | Min Time: 4664 nanos | Max Time: 2564909 nanos | 75%: avg=5046 max=5579 | 90%: avg=5155 max=6238 | 99%: avg=5431 max=11877 | 99.9%: avg=5501 max=15905 | 99.99%: avg=5512 max=23269 | 99.999%: avg=5515 max=54925 - Memory-Mapped File: (with memory-mapped files, no async logging, no delay, with thread-affinity) java -verbose:gc -cp ../MentaLogExt/target/mentalogext.jar:target/classes:lib/slf4j-api-1.6.2.jar:lib/logback-core-0.9.30.jar:lib/logback-classic-0.9.30.jar:lib/log4j-1.2.16.jar:lib/menta-queue-0.9.4.jar:lib/menta-affinity-0.9.7.jar:/usr/share/java/jna.jar:src/main/java/org/mentalog/test -DmemoryMappedFile=true -DmemoryMappedBufferSize=150m -Dasynchronous=false -Dlogback.configurationFile=./src/main/java/org/mentalog/test/logback.xml -DdetailedBenchmark=true -Ddelay=-1 -DprocToBindProducer=2 -Xms1g -Xmx4g -XX:NewSize=512m -XX:MaxNewSize=1024m org.mentalog.test.PerformanceComparator 1000000 mentalog - Asyn Logging: (no memory-mapped files, with async logging, with delay, with thread-affinity) java -verbose:gc -cp ../MentaLogExt/target/mentalogext.jar:target/classes:lib/slf4j-api-1.6.2.jar:lib/logback-core-0.9.30.jar:lib/logback-classic-0.9.30.jar:lib/log4j-1.2.16.jar:lib/menta-queue-0.9.4.jar:lib/menta-affinity-0.9.7.jar:/usr/share/java/jna.jar:src/main/java/org/mentalog/test -DmemoryMappedFile=false -DmemoryMappedBufferSize=150m -Dasynchronous=true -Dlogback.configurationFile=./src/main/java/org/mentalog/test/logback.xml -DdetailedBenchmark=true -Ddelay=10 -DprocToBindProducer=2 -DlogProcToBindConsumer=3 -Xms1g -Xmx4g -XX:NewSize=512m -XX:MaxNewSize=1024m org.mentalog.test.PerformanceComparator 1000000 mentalog - Memory-Mapped File + Async Logging: (with memory-mapped files, with async logging, with delay, with thread-affinity) java -verbose:gc -cp ../MentaLogExt/target/mentalogext.jar:target/classes:lib/slf4j-api-1.6.2.jar:lib/logback-core-0.9.30.jar:lib/logback-classic-0.9.30.jar:lib/log4j-1.2.16.jar:lib/menta-queue-0.9.4.jar:lib/menta-affinity-0.9.7.jar:/usr/share/java/jna.jar:src/main/java/org/mentalog/test -DmemoryMappedFile=true -DmemoryMappedBufferSize=150m -Dasynchronous=true -Dlogback.configurationFile=./src/main/java/org/mentalog/test/logback.xml -DdetailedBenchmark=true -Ddelay=20 -DprocToBindProducer=2 -DlogProcToBindConsumer=3 -Xms1g -Xmx4g -XX:NewSize=512m -XX:MaxNewSize=1024m org.mentalog.test.PerformanceComparator 1000000 mentalog Benchmark: Iterations: 900000 | Avg Time: 335.85 nanos | Min Time: 220 nanos | Max Time: 10947 nanos | 75%: avg=312 max=332 | 90%: avg=318 max=380 | 99%: avg=331 max=593 | 99.9%: avg=334 max=1030 | 99.99%: avg=335 max=5371 | 99.999%: avg=335 max=5523 - Log back: (no async with thread affinity) java -verbose:gc -cp target/classes:lib/slf4j-api-1.6.2.jar:lib/logback-core-0.9.30.jar:lib/logback-classic-0.9.30.jar:lib/log4j-1.2.16.jar:lib/menta-queue-0.9.4.jar:lib/menta-affinity-0.9.7.jar:/usr/share/java/jna.jar:src/main/java/org/mentalog/test -DmemoryMappedFile=false -Dasynchronous=false -Dlogback.configurationFile=./src/main/java/org/mentalog/test/logback.xml -DdetailedBenchmark=true -Ddelay=-1 -DprocToBindProducer=2 -Xms1g -Xmx4g -XX:NewSize=512m -XX:MaxNewSize=1024m org.mentalog.test.PerformanceComparator 1000000 logback Benchmark: Iterations: 900000 | Avg Time: 3986.98 nanos | Min Time: 3280 nanos | Max Time: 3701513 nanos | 75%: avg=3553 max=3702 | 90%: avg=3618 max=5231 | 99%: avg=3904 max=9200 | 99.9%: avg=3960 max=12028 | 99.99%: avg=3969 max=18548 | 99.999%: avg=3973 max=64366 - Log4J - MentaLog: (no memory-mapped and no async logging) java -verbose:gc -cp target/classes:lib/slf4j-api-1.6.2.jar:lib/logback-core-0.9.30.jar:lib/logback-classic-0.9.30.jar:lib/log4j-1.2.16.jar:lib/menta-queue-0.9.3.jar:src/main/java/org/mentalog/test -DmemoryMappedFile=false -Dasync=false -Dlogback.configurationFile=./src/main/java/org/mentalog/test/logback.xml -Xms1g -Xmx4g -XX:NewSize=512m -XX:MaxNewSize=1024m org.mentalog.test.PerformanceComparator 5000000 mentalog Iterations: 900000 | Avg Time: 4317.79 nanos | Min Time: 4025 nanos | Max Time: 935349 nanos Iterations: 1800000 | Avg Time: 4148.65 nanos | Min Time: 3806 nanos | Max Time: 2836875 nanos Iterations: 4500000 | Avg Time: 4278.94 nanos | Min Time: 3871 nanos | Max Time: 38635829 nanos ==== Memory allocated: ZERO (not a single byte) ==== - Log4J: java -verbose:gc -cp target/classes:lib/slf4j-api-1.6.2.jar:lib/logback-core-0.9.30.jar:lib/logback-classic-0.9.30.jar:lib/log4j-1.2.16.jar:lib/menta-queue-0.9.3.jar:src/main/java/org/mentalog/test -DmemoryMappedFile=false -Dasynchronous=false -Dlogback.configurationFile=./src/main/java/org/mentalog/test/logback.xml -Xms1g -Xmx4g -XX:NewSize=512m -XX:MaxNewSize=1024m org.mentalog.test.PerformanceComparator 5000000 log4j Iterations: 90000 | Avg Time: 3756.18 nanos | Min Time: 2787 nanos | Max Time: 150017 nanos Iterations: 900000 | Avg Time: 3329.19 nanos | Min Time: 2756 nanos | Max Time: 654025 nanos Iterations: 4500000 | Avg Time: 3280.86 nanos | Min Time: 2859 nanos | Max Time: 6879898 nanos Memory is allocated and GC is triggered - Logback: java -verbose:gc -cp target/classes:lib/slf4j-api-1.6.2.jar:lib/logback-core-0.9.30.jar:lib/logback-classic-0.9.30.jar:lib/log4j-1.2.16.jar:lib/menta-queue-0.9.3.jar:src/main/java/org/mentalog/test -DmemoryMappedFile=false -Dasynchronous=false -Dlogback.configurationFile=./src/main/java/org/mentalog/test/logback.xml -Xms1g -Xmx4g -XX:NewSize=512m -XX:MaxNewSize=1024m org.mentalog.test.PerformanceComparator 5000000 logback Iterations: 900000 | Avg Time: 3750.77 nanos | Min Time: 3158 nanos | Max Time: 648638 nanos Iterations: 1800000 | Avg Time: 3618.32 nanos | Min Time: 3130 nanos | Max Time: 4684685 nanos Iterations: 4500000 | Avg Time: 3701.08 nanos | Min Time: 3200 nanos | Max Time: 55608669 nanos Memory is allocated and GC is triggered - MentaLog: (with memory-mapped file) java -verbose:gc -cp ../MentaLogExt/target/mentalogext.jar:target/classes:lib/slf4j-api-1.6.2.jar:lib/logback-core-0.9.30.jar:lib/logback-classic-0.9.30.jar:lib/log4j-1.2.16.jar:lib/menta-queue-0.9.3.jar:src/main/java/org/mentalog/test -DmemoryMappedFile=true -DmemoryMappedBufferSize=150m -Dasynchronous=false -Dlogback.configurationFile=./src/main/java/org/mentalog/test/logback.xml -Xms1g -Xmx4g -XX:NewSize=512m -XX:MaxNewSize=1024m org.mentalog.test.PerformanceComparator 1000000 mentalog Iterations: 900000 | Avg Time: 1294.71 nanos | Min Time: 1204 nanos | Max Time: 101816 nanos Iterations: 1800000 | Avg Time: 1310.23 nanos | Min Time: 1209 nanos | Max Time: 169474 nanos Iterations: 1800000 | Avg Time: 1281.92 nanos | Min Time: 1201 nanos | Max Time: 687653 nanos ==== Memory allocated: ZERO (not a single byte) ==== - MentaLog: (with asynchronous logging) NOTE: Thread pinning might be a good idea here! java -verbose:gc -cp ../MentaLogExt/target/mentalogext.jar:target/classes:lib/slf4j-api-1.6.2.jar:lib/logback-core-0.9.30.jar:lib/logback-classic-0.9.30.jar:lib/log4j-1.2.16.jar:lib/menta-queue-0.9.3.jar:src/main/java/org/mentalog/test -DmemoryMappedFile=false -DmemoryMappedBufferSize=150m -Dasynchronous=true -Dlogback.configurationFile=./src/main/java/org/mentalog/test/logback.xml -Xms1g -Xmx4g -XX:NewSize=512m -XX:MaxNewSize=1024m org.mentalog.test.PerformanceComparator 5000000 mentalog Iterations: 900000 | Avg Time: 3808.65 nanos | Min Time: 97 nanos | Max Time: 20100420 nanos | 75%: 150 nanos | 90%: 156 nanos | 99%: 164 nanos | 99.9%: 167 nanos | 99.99%: 1890 nanos | 99.999%: 3609 nanos Iterations: 1800000 | Avg Time: 3832.35 nanos | Min Time: 100 nanos | Max Time: 20269036 nanos | 75%: 146 nanos | 90%: 153 nanos | 99%: 160 nanos | 99.9%: 162 nanos | 99.99%: 2128 nanos | 99.999%: 3651 nanos Iterations: 4500000 | Avg Time: 3624.02 nanos | Min Time: 99 nanos | Max Time: 25602060 nanos | 75%: 149 nanos | 90%: 156 nanos | 99%: 163 nanos | 99.9%: 165 nanos | 99.99%: 1734 nanos | 99.999%: 3424 nanos ==== Memory allocated: ZERO (not a single byte) ==== - MentaLog: (with asynchronous logging AND memory-mapped files) NOTE: Thread pinning might make this even better! java -verbose:gc -cp ../MentaLogExt/target/mentalogext.jar:target/classes:lib/slf4j-api-1.6.2.jar:lib/logback-core-0.9.30.jar:lib/logback-classic-0.9.30.jar:lib/log4j-1.2.16.jar:lib/menta-queue-0.9.3.jar:src/main/java/org/mentalog/test -DmemoryMappedFile=true -DmemoryMappedBufferSize=300m -Dasynchronous=true -Dlogback.configurationFile=./src/main/java/org/mentalog/test/logback.xml -Xms1g -Xmx4g -XX:NewSize=512m -XX:MaxNewSize=1024m org.mentalog.test.PerformanceComparator 2000000 mentalog Iterations: 4500000 | Avg Time: 969.62 nanos | Min Time: 97 nanos | Max Time: 5229828 nanos | 75%: 178 nanos | 90%: 188 nanos | 99%: 198 nanos | 99.9%: 200 nanos | 99.99%: 500 nanos | 99.999%: 920 nanos Iterations: 1800000 | Avg Time: 973.22 nanos | Min Time: 92 nanos | Max Time: 5024597 nanos | 75%: 164 nanos | 90%: 174 nanos | 99%: 184 nanos | 99.9%: 186 nanos | 99.99%: 519 nanos | 99.999%: 925 nanos Iterations: 900000 | Avg Time: 973.94 nanos | Min Time: 98 nanos | Max Time: 6461357 nanos | 75%: 166 nanos | 90%: 176 nanos | 99%: 187 nanos | 99.9%: 189 nanos | 99.99%: 380 nanos | 99.999%: 911 nanos ==== Memory allocated: ZERO (not a single byte) ==== - MentaLog: (with asynchronous logging and memory-mapped files and consumer and producer thread pinning and busy spinning strategy) java -verbose:gc -cp /usr/share/java/jna.jar:../MentaLogExt/target/classes:../MentaAffinity/target/classes:target/classes:lib/slf4j-api-1.6.2.jar:lib/logback-core-0.9.30.jar:lib/logback-classic-0.9.30.jar:lib/log4j-1.2.16.jar:../MentaQueue/target/classes:src/main/java/org/mentalog/test -DlogProcToBindConsumer=3 -DmemoryMappedFile=true -DmemoryMappedBufferSize=150m -Dasynchronous=true -DlogColors=true -Dlogback.configurationFile=./src/main/java/org/mentalog/test/logback.xml -DdetailedBenchmark=true -Ddelay=1 -DlogLevel=debug -DprocToBindProducer=2 -Xms1g -Xmx4g -XX:NewSize=512m -XX:MaxNewSize=1024m org.mentalog.test.PerformanceComparator 1000000 mentalog Iterations: 900000 | Avg Time: 323.73 nanos | Min Time: 174 nanos | Max Time: 102708 nanos | 75%: 309 nanos | 90%: 312 nanos | 99%: 318 nanos | 99.9%: 321 nanos | 99.99%: 322 nanos | 99.999%: 323 nanos Iterations: 3600000 | Avg Time: 319.04 nanos | Min Time: 228 nanos | Max Time: 10730 nanos | 75%: 310 nanos | 90%: 312 nanos | 99%: 315 nanos | 99.9%: 317 nanos | 99.99%: 318 nanos | 99.999%: 318 nanos ==== Memory allocated: ZERO (not a single byte) ==== - Log4J: (with asynchronous logging) NOTE: Changet the log4j xml file to use asynchronous logging Iterations: 4500000 | Avg Time: 2566.31 nanos | Min Time: 260 nanos | Max Time: 31647565 nanos | 75%: 273 nanos | 90%: 281 nanos | 99%: 288 nanos | 99.9%: 290 nanos | 99.99%: 292 nanos | 99.999%: 2317 nanos Iterations: 1800000 | Avg Time: 2510.84 nanos | Min Time: 263 nanos | Max Time: 25864561 nanos | 75%: 281 nanos | 90%: 295 nanos | 99%: 307 nanos | 99.9%: 314 nanos | 99.99%: 317 nanos | 99.999%: 2264 nanos Iterations: 900000 | Avg Time: 2747.56 nanos | Min Time: 260 nanos | Max Time: 28432739 nanos | 75%: 276 nanos | 90%: 285 nanos | 99%: 301 nanos | 99.9%: 313 nanos | 99.99%: 316 nanos | 99.999%: 2478 nanos Benchmark: Iterations: 900000 | Avg Time: 3250.74 nanos | Min Time: 282 nanos | Max Time: 33420500 nanos | 75%: avg=298 max=319 | 90%: avg=302 max=326 | 99%: avg=311 max=1439 | 99.9%: avg=322 max=2932 | 99.99%: avg=325 max=8590 | 99.999%: avg=2925 max=32359336 A lot of memory is allocated and GC is triggered
PerformanceComparator() - Constructor for class org.mentalog.test.PerformanceComparator
 

R

random(long) - Static method in class org.mentalog.test.PauseSupport
 
remove(Interceptor) - Static method in enum org.mentalog.Log
 
removeInterceptor(Interceptor) - Method in enum org.mentalog.Log
 
removeInterceptor(Interceptor) - Method in interface org.mentalog.Logger
Remove a log interceptor.
reset() - Method in class org.mentalog.LogEvent
 
reset() - Method in class org.mentalog.util.Benchmarker
 
reset() - Method in class org.mentalog.util.DetailedBenchmarker
 
reset() - Static method in class org.mentalog.util.StringBuilderUtils
 
results() - Method in class org.mentalog.util.Benchmarker
 
results() - Method in class org.mentalog.util.DetailedBenchmarker
 
roll(boolean) - Method in interface org.mentalog.AsynchronousLogger
 
roll() - Method in enum org.mentalog.Log
 
roll(boolean) - Method in enum org.mentalog.Log
 
roll() - Method in interface org.mentalog.Logger
Roll the log file.
rollLater(Logger, boolean) - Static method in class org.mentalog.AsyncThread
 
rootCause - Variable in exception org.mentalog.LogException
 

S

set(E, boolean) - Method in class org.mentalog.config.ConfigParam
 
set(E) - Method in class org.mentalog.config.ConfigParam
 
set(List<E>, boolean) - Method in class org.mentalog.config.ListConfigParam
 
set(String) - Method in class org.mentalog.config.StringsConfigParam
 
setAlertOnBufferRoll(boolean) - Static method in enum org.mentalog.Log
 
setAsynchronousConsumerPriority(int) - Static method in enum org.mentalog.Log
 
setAsynchronousConsumerWaitStrategy(WaitStrategy) - Static method in enum org.mentalog.Log
 
setAsynchronousProducerWaitStrategy(WaitStrategy) - Static method in enum org.mentalog.Log
 
setAsynchronousQueueCapacity(int) - Static method in enum org.mentalog.Log
 
setBenchmark(boolean) - Static method in enum org.mentalog.Log
 
setBufferSize(int) - Static method in enum org.mentalog.Log
 
setCacheOnBufferRoll(boolean) - Static method in enum org.mentalog.Log
 
setCapacity(int) - Static method in class org.mentalog.AsyncThread
 
setColor(int) - Method in enum org.mentalog.Log
 
setColors(boolean) - Static method in enum org.mentalog.Log
 
setConsole(boolean) - Static method in enum org.mentalog.Log
 
setConsumerLazySet(boolean) - Method in enum org.mentalog.Log
 
setConsumerWaitStrategy(WaitStrategy) - Static method in class org.mentalog.AsyncThread
 
setDir(String) - Static method in enum org.mentalog.Log
 
setEncoders(List<Encoder>) - Static method in enum org.mentalog.Log
 
setFile(boolean) - Static method in enum org.mentalog.Log
 
setFilename(String) - Method in enum org.mentalog.Log
 
setFilter(String) - Static method in enum org.mentalog.Log
 
setForceMode(boolean) - Static method in class org.mentalog.config.ConfigParam
 
setForceOnBufferRoll(boolean) - Static method in enum org.mentalog.Log
 
setForceOnClose(boolean) - Static method in enum org.mentalog.Log
 
setLevel(Log) - Static method in enum org.mentalog.Log
 
setLogger(Logger) - Method in class org.mentalog.LogEvent
 
setMemoryMappedBufferSize(int) - Static method in enum org.mentalog.Log
 
setMemoryMappedBufferThreshold(float) - Static method in enum org.mentalog.Log
 
setNoSpaceAfterEqualSign(boolean) - Static method in enum org.mentalog.Log
 
setNoSpaceBetweenObjects(boolean) - Static method in enum org.mentalog.Log
 
setPriority(int) - Static method in class org.mentalog.AsyncThread
 
setProcToBindConsumer(int) - Static method in enum org.mentalog.Log
 
setProducerLazySet(boolean) - Method in enum org.mentalog.Log
 
setProducerWaitStrategy(WaitStrategy) - Static method in class org.mentalog.AsyncThread
 
setShowBypassedConfig(boolean, Log) - Static method in enum org.mentalog.Log
 
setShowClassAndLineNumber(boolean) - Static method in enum org.mentalog.Log
 
setSynchronized(boolean) - Static method in enum org.mentalog.Log
 
setTimestamper(Timestamper) - Static method in enum org.mentalog.Log
 
setTimeZone(TimeZone) - Static method in enum org.mentalog.Log
 
size() - Method in class org.mentalog.LogEvent
 
start() - Static method in class org.mentalog.AsyncThread
 
stop() - Static method in enum org.mentalog.Log
 
str() - Method in class org.mentalog.config.StringConfigParam
 
StringBuilderUtils - Class in org.mentalog.util
This code is NOT thread-safe at all.
StringBuilderUtils() - Constructor for class org.mentalog.util.StringBuilderUtils
 
StringConfigParam - Class in org.mentalog.config
 
StringConfigParam(String, String) - Constructor for class org.mentalog.config.StringConfigParam
 
StringsConfigParam - Class in org.mentalog.config
 
StringsConfigParam(String, String) - Constructor for class org.mentalog.config.StringsConfigParam
 
SystemUtils - Class in org.mentalog.util
 
SystemUtils() - Constructor for class org.mentalog.util.SystemUtils
 

T

thread() - Static method in class org.mentalog.AsyncThread
 
THROWABLE - Static variable in interface org.mentalog.encoder.Encoder
 
ThrowableEncoder - Class in org.mentalog.encoder
 
ThrowableEncoder() - Constructor for class org.mentalog.encoder.ThrowableEncoder
 
Timestamper - Interface in org.mentalog.timestamper
A timestamper interface with support for MILLIS, NANOS and MICROS precision.
Timestamper.Precision - Enum in org.mentalog.timestamper
 
to_sb(int) - Static method in enum org.mentalog.Log
 
to_sb(long) - Static method in enum org.mentalog.Log
 
to_sb(byte) - Static method in enum org.mentalog.Log
 
to_sb(short) - Static method in enum org.mentalog.Log
 
to_sb(double) - Static method in enum org.mentalog.Log
 
to_sb(boolean) - Static method in enum org.mentalog.Log
 
to_sb(float) - Static method in enum org.mentalog.Log
 
to_sb(char) - Static method in enum org.mentalog.Log
 
to_sb(int) - Static method in class org.mentalog.util.StringBuilderUtils
 
to_sb(float) - Static method in class org.mentalog.util.StringBuilderUtils
 
to_sb(short) - Static method in class org.mentalog.util.StringBuilderUtils
 
to_sb(byte) - Static method in class org.mentalog.util.StringBuilderUtils
 
to_sb(char) - Static method in class org.mentalog.util.StringBuilderUtils
 
to_sb(boolean) - Static method in class org.mentalog.util.StringBuilderUtils
 
to_sb(long) - Static method in class org.mentalog.util.StringBuilderUtils
 
to_sb(double) - Static method in class org.mentalog.util.StringBuilderUtils
 
toAscii(ByteBuffer) - Method in interface org.mentalog.AsciiEncodable
 
toAscii(StringBuilder) - Method in interface org.mentalog.AsciiEncodable
 

V

value() - Method in class org.mentalog.config.ConfigParam
 
valueOf(String) - Static method in enum org.mentalog.Log
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum org.mentalog.timestamper.Timestamper.Precision
Returns the enum constant of this type with the specified name.
values() - Method in class org.mentalog.config.ListConfigParam
 
values() - Method in class org.mentalog.config.StringsConfigParam
 
values() - Static method in enum org.mentalog.Log
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum org.mentalog.timestamper.Timestamper.Precision
Returns an array containing the constants of this enum type, in the order they are declared.
VarargsOverloading - Interface in org.mentalog
 

A B C D E F G H I K L M N O P R S T V

Copyright © 2013. All Rights Reserved.