org.molgenis.omx.search
Class AsyncDataSetsIndexer

java.lang.Object
  extended by org.molgenis.omx.search.AsyncDataSetsIndexer
All Implemented Interfaces:
DataSetsIndexer, org.springframework.beans.factory.InitializingBean

public class AsyncDataSetsIndexer
extends Object
implements DataSetsIndexer, org.springframework.beans.factory.InitializingBean

Class that indexes all datasets for use in the dataexplorer async

Author:
erwin

Constructor Summary
AsyncDataSetsIndexer()
           
 
Method Summary
 void afterPropertiesSet()
           
 void index()
          Index all datasets
 void index(List<Integer> dataSetIds)
           
 void indexNew()
          Index all datatsets that are not in the index yet
 boolean isIndexingRunning()
          Check if there is an indexing job running
 void setSearchService(SearchService searchService)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AsyncDataSetsIndexer

public AsyncDataSetsIndexer()
Method Detail

setSearchService

@Autowired
public void setSearchService(SearchService searchService)

afterPropertiesSet

public void afterPropertiesSet()
                        throws Exception
Specified by:
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBean
Throws:
Exception

isIndexingRunning

public boolean isIndexingRunning()
Description copied from interface: DataSetsIndexer
Check if there is an indexing job running

Specified by:
isIndexingRunning in interface DataSetsIndexer
Returns:

index

@Async
public void index()
Index all datasets

Specified by:
index in interface DataSetsIndexer
Throws:
DatabaseException
TableException

indexNew

@Async
public void indexNew()
Index all datatsets that are not in the index yet

Specified by:
indexNew in interface DataSetsIndexer
Throws:
DatabaseException
TableException

index

@Async
public void index(List<Integer> dataSetIds)
Specified by:
index in interface DataSetsIndexer


Copyright © 2013. All Rights Reserved.