|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.openanzo.server.repository.indexer.IndexUpdateHandler
public class IndexUpdateHandler
Handler for index updates. Hook it into UpdateResultsHandler.
| Nested Class Summary | |
|---|---|
class |
IndexUpdateHandler.IndexerUpdateHandler
Handler for parsing transaction events that come from UpdateHandler. |
| Constructor Summary | |
|---|---|
IndexUpdateHandler(ModelServiceApi modelServiceApi,
java.util.Properties properties,
org.openanzo.server.repository.indexer.IndexQueryApi.UserAclTable userAclTable)
NOTE: If the index update handler is started in asynchronous mode, it will start running immediately (you do not need to call start(). |
|
| Method Summary | |
|---|---|
IIndexer |
getIndexer()
Returns the underlying indexer. |
void |
handle(byte[] bytes)
Handles bytes from UpdateResultsHandler, to be parsed as a transaction. |
boolean |
isAsynchronous()
Returns true if the indexing is asynchronous, false otherwise. |
boolean |
isIndexEnabled()
Determine if indexing is enabled. |
boolean |
isStarted()
Determine if service is started |
void |
reset()
Reset the index (clear all contents). |
void |
setAsynchronous(boolean asynchronous)
Sets asynchronicity of the indexing. |
void |
start()
If the indexing is asynchronous, this will start indexing. |
void |
stop()
If the indexing is asynchronous, this will stop the indexing. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public IndexUpdateHandler(ModelServiceApi modelServiceApi,
java.util.Properties properties,
org.openanzo.server.repository.indexer.IndexQueryApi.UserAclTable userAclTable)
start().
modelServiceApi - Used to get RepositoryConnection for rebuilding the index, if necessary.properties - Contains properties for setting up the indexer.userAclTable - cache of user to acl mappings| Method Detail |
|---|
public boolean isIndexEnabled()
public IIndexer getIndexer()
public void reset()
throws IndexerException
IndexerExceptionpublic boolean isStarted()
public void start()
public void stop()
public boolean isAsynchronous()
public void setAsynchronous(boolean asynchronous)
asynchronous - true for asynchronous indexing
public void handle(byte[] bytes)
throws AnzoException
bytes - Contents of the update results.
AnzoException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||