Class LoggingInfoStream
- java.lang.Object
-
- org.apache.lucene.util.InfoStream
-
- org.apache.jackrabbit.oak.plugins.index.lucene.LoggingInfoStream
-
- All Implemented Interfaces:
java.io.Closeable
,java.lang.AutoCloseable
,java.lang.Cloneable
public class LoggingInfoStream extends InfoStream
-
-
Field Summary
Fields Modifier and Type Field Description static LoggingInfoStream
INSTANCE
-
Fields inherited from class org.apache.lucene.util.InfoStream
NO_OUTPUT
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
boolean
isEnabled(java.lang.String component)
returns true if messages are enabled and should be posted toInfoStream.message(java.lang.String, java.lang.String)
.void
message(java.lang.String component, java.lang.String message)
prints a message-
Methods inherited from class org.apache.lucene.util.InfoStream
clone, getDefault, setDefault
-
-
-
-
Field Detail
-
INSTANCE
public static final LoggingInfoStream INSTANCE
-
-
Method Detail
-
message
public void message(java.lang.String component, java.lang.String message)
Description copied from class:InfoStream
prints a message- Specified by:
message
in classInfoStream
-
isEnabled
public boolean isEnabled(java.lang.String component)
Description copied from class:InfoStream
returns true if messages are enabled and should be posted toInfoStream.message(java.lang.String, java.lang.String)
.- Specified by:
isEnabled
in classInfoStream
-
close
public void close() throws java.io.IOException
- Throws:
java.io.IOException
-
-