|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.lucene.util.InfoStream
public abstract class InfoStream
Debugging API for Lucene classes such as IndexWriter
and SegmentInfos
.
NOTE: Enabling infostreams may cause performance degradation in some components.
Field Summary | |
---|---|
static InfoStream |
NO_OUTPUT
Instance of InfoStream that does no logging at all. |
Constructor Summary | |
---|---|
InfoStream()
|
Method Summary | |
---|---|
static InfoStream |
getDefault()
The default InfoStream used by a newly instantiated classes. |
abstract boolean |
isEnabled(String component)
returns true if messages are enabled and should be posted to message(java.lang.String, java.lang.String) . |
abstract void |
message(String component,
String message)
prints a message |
static void |
setDefault(InfoStream infoStream)
Sets the default InfoStream used
by a newly instantiated classes. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface java.io.Closeable |
---|
close |
Field Detail |
---|
public static final InfoStream NO_OUTPUT
Constructor Detail |
---|
public InfoStream()
Method Detail |
---|
public abstract void message(String component, String message)
public abstract boolean isEnabled(String component)
message(java.lang.String, java.lang.String)
.
public static InfoStream getDefault()
InfoStream
used by a newly instantiated classes.
setDefault(org.apache.lucene.util.InfoStream)
public static void setDefault(InfoStream infoStream)
InfoStream
used
by a newly instantiated classes. It cannot be null
,
to disable logging use NO_OUTPUT
.
getDefault()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |