org.sakaiproject.search.indexer.impl
Class ConcurrentSearchIndexBuilderWorkerImpl

java.lang.Object
  extended by org.sakaiproject.search.indexer.impl.ConcurrentSearchIndexBuilderWorkerImpl
All Implemented Interfaces:
IndexWorkerDocumentListener, ManagementOperation

public class ConcurrentSearchIndexBuilderWorkerImpl
extends Object
implements ManagementOperation, IndexWorkerDocumentListener

A management operation to perform indexing to the journal

Author:
ieb

Constructor Summary
ConcurrentSearchIndexBuilderWorkerImpl()
           
 
Method Summary
 void destroy()
           
 org.sakaiproject.component.api.ComponentManager getComponentManager()
           
 org.sakaiproject.event.api.EventTrackingService getEventTrackingService()
           
 IndexWorker getIndexWorker()
           
 JournalSettings getJournalSettings()
           
 long getLoadFactor()
           
 SearchService getSearchService()
           
 org.sakaiproject.authz.api.SecurityService getSecurityService()
           
 org.sakaiproject.db.api.SqlService getSqlService()
           
 org.sakaiproject.user.api.UserDirectoryService getUserDirectoryService()
           
 void indexDocumentEnd(IndexWorker worker, String ref)
          fired when a document has completed indexing
 void indexDocumentStart(IndexWorker worker, String ref)
          Fired when a document starts to be indexed
 void init()
           
 void runOnce()
          performs the operation once, may be called many times, the class may maintain state between calls.
 void setComponentManager(org.sakaiproject.component.api.ComponentManager componentManager)
           
 void setEventTrackingService(org.sakaiproject.event.api.EventTrackingService eventTrackingService)
           
 void setIndexWorker(IndexWorker indexWorker)
           
 void setJournalSettings(JournalSettings journalSettings)
           
 void setLoadFactor(long loadFactor)
           
 void setSearchService(SearchService searchService)
           
 void setSecurityService(org.sakaiproject.authz.api.SecurityService securityService)
           
 void setServerConfigurationService(org.sakaiproject.component.api.ServerConfigurationService serverConfigurationService)
           
 void setSqlService(org.sakaiproject.db.api.SqlService sqlService)
           
 void setUserDirectoryService(org.sakaiproject.user.api.UserDirectoryService userDirectoryService)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConcurrentSearchIndexBuilderWorkerImpl

public ConcurrentSearchIndexBuilderWorkerImpl()
Method Detail

destroy

public void destroy()

init

public void init()

runOnce

public void runOnce()
Description copied from interface: ManagementOperation
performs the operation once, may be called many times, the class may maintain state between calls.

Specified by:
runOnce in interface ManagementOperation
See Also:
Runnable.run()

indexDocumentEnd

public void indexDocumentEnd(IndexWorker worker,
                             String ref)
Description copied from interface: IndexWorkerDocumentListener
fired when a document has completed indexing

Specified by:
indexDocumentEnd in interface IndexWorkerDocumentListener
Parameters:
worker - the worker performing the operation
ref - a reference to the document
See Also:
IndexWorkerDocumentListener.indexDocumentEnd(org.sakaiproject.search.indexer.api.IndexWorker, java.lang.String)

indexDocumentStart

public void indexDocumentStart(IndexWorker worker,
                               String ref)
Description copied from interface: IndexWorkerDocumentListener
Fired when a document starts to be indexed

Specified by:
indexDocumentStart in interface IndexWorkerDocumentListener
Parameters:
worker - the worker performing the index operation
ref - the document being indexed
See Also:
IndexWorkerDocumentListener.indexDocumentStart(org.sakaiproject.search.indexer.api.IndexWorker, java.lang.String)

getComponentManager

public org.sakaiproject.component.api.ComponentManager getComponentManager()
Returns:
the componentManager

setComponentManager

public void setComponentManager(org.sakaiproject.component.api.ComponentManager componentManager)
Parameters:
componentManager - the componentManager to set

getEventTrackingService

public org.sakaiproject.event.api.EventTrackingService getEventTrackingService()
Returns:
the eventTrackingService

setEventTrackingService

public void setEventTrackingService(org.sakaiproject.event.api.EventTrackingService eventTrackingService)
Parameters:
eventTrackingService - the eventTrackingService to set

getIndexWorker

public IndexWorker getIndexWorker()
Returns:
the indexWorker

setIndexWorker

public void setIndexWorker(IndexWorker indexWorker)
Parameters:
indexWorker - the indexWorker to set

getLoadFactor

public long getLoadFactor()
Returns:
the loadFactor

setLoadFactor

public void setLoadFactor(long loadFactor)
Parameters:
loadFactor - the loadFactor to set

getSearchService

public SearchService getSearchService()
Returns:
the searchService

setSearchService

public void setSearchService(SearchService searchService)
Parameters:
searchService - the searchService to set

getUserDirectoryService

public org.sakaiproject.user.api.UserDirectoryService getUserDirectoryService()
Returns:
the userDirectoryService

setUserDirectoryService

public void setUserDirectoryService(org.sakaiproject.user.api.UserDirectoryService userDirectoryService)
Parameters:
userDirectoryService - the userDirectoryService to set

setServerConfigurationService

public void setServerConfigurationService(org.sakaiproject.component.api.ServerConfigurationService serverConfigurationService)
Parameters:
serverConfigurationService -

getJournalSettings

public JournalSettings getJournalSettings()
Returns:
the journalSettings

setJournalSettings

public void setJournalSettings(JournalSettings journalSettings)
Parameters:
journalSettings - the journalSettings to set

getSqlService

public org.sakaiproject.db.api.SqlService getSqlService()
Returns:
the sqlService

setSqlService

public void setSqlService(org.sakaiproject.db.api.SqlService sqlService)
Parameters:
sqlService - the sqlService to set

getSecurityService

public org.sakaiproject.authz.api.SecurityService getSecurityService()
Returns:
the securityService

setSecurityService

public void setSecurityService(org.sakaiproject.authz.api.SecurityService securityService)
Parameters:
securityService - the securityService to set


Copyright © 2003-2012 Sakai Project. All Rights Reserved.