|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IndexMonitor
An interface that exposes information about a Lucene Index and that allows registration of a listener for event notifications.
Method Summary | |
---|---|
void |
addApplicationListener(org.springframework.context.ApplicationListener listener)
Registers a listener for events on this index. |
long |
getActualSize()
Gets the actual size of the index in bytes. |
int |
getNumberOfDocuments()
Gets the number of documents in the index. |
int |
getNumberOfFields()
Gets the number of fields known to the index. |
int |
getNumberOfIndexedFields()
Gets the number of indexed fields. |
java.lang.String |
getRelativePath()
Gets the relative path of the index directory. |
java.util.Map |
getStatusSnapshot()
Gets a snapshot of the statuses of the individual entries in this index. |
long |
getUsedSize()
Gets the size used on disk by the index directory. |
Method Detail |
---|
java.lang.String getRelativePath()
java.util.Map getStatusSnapshot()
long getActualSize() throws java.io.IOException
java.io.IOException
- Signals that an I/O exception has occurred.long getUsedSize() throws java.io.IOException
IndexMonitor.getActualSize()
may indicate that there are unused data files.
java.io.IOException
- Signals that an I/O exception has occurred.int getNumberOfDocuments() throws java.io.IOException
java.io.IOException
- Signals that an I/O exception has occurred.int getNumberOfFields() throws java.io.IOException
java.io.IOException
- Signals that an I/O exception has occurred.int getNumberOfIndexedFields() throws java.io.IOException
java.io.IOException
- Signals that an I/O exception has occurred.void addApplicationListener(org.springframework.context.ApplicationListener listener)
listener
- the listener
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |