org.molgenis.omx.config
Class DataExplorerConfig

java.lang.Object
  extended by org.molgenis.omx.config.DataExplorerConfig

@Configuration
@EnableScheduling
@EnableAsync
public class DataExplorerConfig
extends Object

Exposes the DataSetsIndexer and schedules dataset indexing 4 am every night

Author:
erwin

Constructor Summary
DataExplorerConfig()
           
 
Method Summary
 DataSetsIndexer dataSetsIndexer()
          Get a reference to a DataSetsIndexer.
 void indexDataSets()
          Indexes datasets at 4 am every night
 IndexingEventListener startUpIndexer()
          Indexes not yet indexed DataSets at application startup, does not reindex already indexed DataSets (even not when there are chenges)
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DataExplorerConfig

public DataExplorerConfig()
Method Detail

dataSetsIndexer

@Bean
public DataSetsIndexer dataSetsIndexer()
Get a reference to a DataSetsIndexer.

Returns:
AsyncDataSetsIndexer

startUpIndexer

@Bean
public IndexingEventListener startUpIndexer()
Indexes not yet indexed DataSets at application startup, does not reindex already indexed DataSets (even not when there are chenges)

Returns:

indexDataSets

@Scheduled(cron="0 0 4 * * ?")
public void indexDataSets()
                   throws DatabaseException,
                          TableException
Indexes datasets at 4 am every night

Throws:
DatabaseException
TableException


Copyright © 2013. All Rights Reserved.