public class AdminServiceImpl extends Object implements AdminService
Modifier and Type | Method and Description |
---|---|
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.
|
public static AdminService getInstance()
public void optimize(String indexName) throws Exception
AdminService
optimize
in interface AdminService
Exception
public void optimize() throws Exception
AdminService
optimize
in interface AdminService
Exception
public void optimize(Boolean waitFlush, Boolean waitSearcher) throws Exception
AdminService
optimize
in interface AdminService
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–2015 The Kuali Foundation. All rights reserved.