|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.lucene.gdata.search.index.IndexController
public class IndexController
Default implementation of the SearchComponent
interface. All actions
on the index will be controlled from this class. Only this class grants read
or write actions access to the index.
Field Summary | |
---|---|
protected Map<String,org.apache.lucene.gdata.search.index.IndexController.ServiceIndex> |
indexerMap
|
Constructor Summary | |
---|---|
IndexController()
Creates a new IndexController -- call initialize() to set up the controller. |
Method Summary | |
---|---|
protected void |
addIndexSchema(IndexSchema schema)
|
void |
commitCallBack(String service)
This method will be invoked by an instance of GDataIndexer if the
index is commited |
protected boolean |
createIndexDirectory(File file)
|
protected org.apache.lucene.gdata.search.index.IndexController.ServiceIndex |
createIndexer(IndexSchema schema)
|
protected File |
createIndexLocation(String path,
String name)
|
void |
destroy()
will be called when the registry is going down e.g. |
void |
fireDeleteAllEntries(ServerBaseFeed feed)
will be invoked on every successful feed delete |
void |
fireDeleteEvent(ServerBaseEntry entry)
will be invoked on every successful entry delete |
void |
fireInsertEvent(ServerBaseEntry entry)
will be invoked on every successful entry insert |
void |
fireUpdateEvent(ServerBaseEntry entry)
will be invoked on every successful update on every entry |
GDataSearcher<String> |
getServiceSearcher(ProvidedService service)
TODO document this when Search comes into play |
void |
initialize()
will be call when the component is registered. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected Map<String,org.apache.lucene.gdata.search.index.IndexController.ServiceIndex> indexerMap
Constructor Detail |
---|
public IndexController()
initialize()
to set up the controller.
Method Detail |
---|
public void initialize()
ServerComponent
initialize
in interface ServerComponent
ServerComponent.initialize()
protected void addIndexSchema(IndexSchema schema)
protected org.apache.lucene.gdata.search.index.IndexController.ServiceIndex createIndexer(IndexSchema schema) throws IOException
IOException
protected File createIndexLocation(String path, String name)
protected boolean createIndexDirectory(File file)
public void commitCallBack(String service)
IndexEventListener
GDataIndexer
if the
index is commited
commitCallBack
in interface IndexEventListener
service
- -
the name of the service the invoking indexer runs forIndexEventListener.commitCallBack(java.lang.String)
public void fireUpdateEvent(ServerBaseEntry entry)
EntryEventListener
fireUpdateEvent
in interface EntryEventListener
entry
- the updated entryEntryEventListener.fireUpdateEvent(org.apache.lucene.gdata.data.ServerBaseEntry)
public void fireInsertEvent(ServerBaseEntry entry)
EntryEventListener
fireInsertEvent
in interface EntryEventListener
EntryEventListener.fireInsertEvent(org.apache.lucene.gdata.data.ServerBaseEntry)
public void fireDeleteEvent(ServerBaseEntry entry)
EntryEventListener
fireDeleteEvent
in interface EntryEventListener
EntryEventListener.fireDeleteEvent(org.apache.lucene.gdata.data.ServerBaseEntry)
public void fireDeleteAllEntries(ServerBaseFeed feed)
EntryEventListener
fireDeleteAllEntries
in interface EntryEventListener
feed
- - the feed containing the feed id to delete all entries forEntryEventListener.fireDeleteAllEntries(org.apache.lucene.gdata.data.ServerBaseFeed)
public GDataSearcher<String> getServiceSearcher(ProvidedService service)
SearchComponent
getServiceSearcher
in interface SearchComponent
SearchComponent.getServiceSearcher(org.apache.lucene.gdata.server.registry.ProvidedService)
public void destroy()
ServerComponent
GDataServerRegistry.destroy()
method is called.
destroy
in interface ServerComponent
ServerComponent.destroy()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |