|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.openanzo.server.repository.indexer.IndexQueryApi
public class IndexQueryApi
A wrapper for most index-related operations. The functionality for searching an index is contained here. The indexUpdateHandler member handles modification of the index.
| Constructor Summary | |
|---|---|
IndexQueryApi(ModelServiceApi modelServiceApi,
java.util.Properties properties)
|
|
| Method Summary | |
|---|---|
void |
close()
Close the service |
boolean |
getClearIndex()
Determine if the index should be cleared on startup |
boolean |
getIndexingEnabled()
Determine if indexing is enabled |
IndexUpdateHandler |
getIndexUpdateHandler()
Get the indexUpdateHandler |
boolean |
getIsStarted()
Determine if the service is started |
boolean |
getRebuildIndex()
Determine if the index should be rebuilt on startup |
void |
rebuild(RepositoryConnection connection)
Rebuilds the index based on what is currently in the store. |
void |
registerMBean(javax.management.MBeanServer mbs,
javax.management.ObjectName parentObjectName)
Register the service with the server's jmx server |
void |
reset()
Resets the index, clearing everything in the index. |
void |
setClearIndex(boolean clearIndex)
Set if the index should be cleared on startup |
void |
setIndexingEnabled(boolean indexingEnabled)
Set if indexing is enabled |
void |
setRebuildIndex(boolean rebuildIndex)
Set if the index should be rebuilt on startup |
void |
start()
Start the service |
void |
stop()
Stop the service |
void |
updateComplete(UpdateResults results,
RepositoryConnection repositoryConnection)
Handles the updateComplete event. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public IndexQueryApi(ModelServiceApi modelServiceApi,
java.util.Properties properties)
modelServiceApi - Passed down to the IndexUpdateHandler member, which uses it to get a repository connection (for
rebuildling).properties - Contains properties used to set up indexing functions.| Method Detail |
|---|
public void start()
throws AnzoException
IServerService
start in interface IServerServicestart in interface IServerServiceMBeanAnzoException
public void close()
throws AnzoException
IServerService
close in interface IServerServiceAnzoExceptionpublic boolean getIsStarted()
IServerService
getIsStarted in interface IServerServicegetIsStarted in interface IServerServiceMBean
public void stop()
throws AnzoException
IServerService
stop in interface IServerServicestop in interface IServerServiceMBeanAnzoException
public void reset()
throws IndexerException
IndexerException
public void rebuild(RepositoryConnection connection)
throws IndexerException
connection -
IndexerExceptionpublic IndexUpdateHandler getIndexUpdateHandler()
public boolean getIndexingEnabled()
getIndexingEnabled in interface IndexQueryApiMBeanpublic void setIndexingEnabled(boolean indexingEnabled)
setIndexingEnabled in interface IndexQueryApiMBeanindexingEnabled - is indexing enabled
public void updateComplete(UpdateResults results,
RepositoryConnection repositoryConnection)
throws AnzoException
UpdateResultListener
updateComplete in interface UpdateResultListenerresults - Final state and other useful details of statements added/updated/removed during a update call.repositoryConnection - The repository graph the update was run against.
AnzoException
public void registerMBean(javax.management.MBeanServer mbs,
javax.management.ObjectName parentObjectName)
IServerService
registerMBean in interface IServerServicembs - the jmx serverparentObjectName - the name under which this object will be registeredpublic boolean getClearIndex()
getClearIndex in interface IndexQueryApiMBeanpublic void setClearIndex(boolean clearIndex)
setClearIndex in interface IndexQueryApiMBeanclearIndex - whether the index should be cleared on startuppublic boolean getRebuildIndex()
getRebuildIndex in interface IndexQueryApiMBeanpublic void setRebuildIndex(boolean rebuildIndex)
setRebuildIndex in interface IndexQueryApiMBeanrebuildIndex - whether the index should be rebuilt on startup
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||