org.kuali.ole.docstore.discovery.service
Class AdminServiceImpl

java.lang.Object
  extended by org.kuali.ole.docstore.discovery.service.AdminServiceImpl
All Implemented Interfaces:
AdminService

public class AdminServiceImpl
extends Object
implements AdminService

User: tirumalesh.b Date: 23/12/11 Time: 12:09 PM


Method Summary
static AdminService getInstance()
           
 void optimize()
          Optimizes all available indexes.
 void optimize(Boolean waitFlush, Boolean waitSearcher)
          Optimize the indexes according to params
 void optimize(String indexName)
          Optimizes the given index.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static AdminService getInstance()

optimize

public void optimize(String indexName)
              throws Exception
Description copied from interface: AdminService
Optimizes the given index. (In solr, it is called core.)

Specified by:
optimize in interface AdminService
Throws:
Exception

optimize

public void optimize()
              throws Exception
Description copied from interface: AdminService
Optimizes all available indexes.

Specified by:
optimize in interface AdminService
Throws:
Exception

optimize

public void optimize(Boolean waitFlush,
                     Boolean waitSearcher)
              throws Exception
Description copied from interface: AdminService
Optimize the indexes according to params

Specified by:
optimize in interface AdminService
Throws:
Exception - waitFlush Default is true. Blocks until index changes are flushed to disk. waitSearcher Default is true. Blocks until a new searcher is opened and registered as the main query searcher, making the changes visible.


Copyright © 2004-2012 The Kuali Foundation. All Rights Reserved.