public interface IndexMonitor
Modifier and Type | Method and Description |
---|---|
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.
|
String |
getRelativePath()
Gets the relative path of the index directory.
|
Map<String,Integer> |
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.
|
String getRelativePath()
Map<String,Integer> getStatusSnapshot()
long getActualSize() throws IOException
IOException
- Signals that an I/O exception has occurred.long getUsedSize() throws IOException
getActualSize()
may indicate that there are unused data files.IOException
- Signals that an I/O exception has occurred.int getNumberOfDocuments() throws IOException
IOException
- Signals that an I/O exception has occurred.int getNumberOfFields() throws IOException
IOException
- Signals that an I/O exception has occurred.int getNumberOfIndexedFields() throws IOException
IOException
- Signals that an I/O exception has occurred.void addApplicationListener(org.springframework.context.ApplicationListener listener)
listener
- the listenerCopyright © 2005–2017 Alfresco Software. All rights reserved.