public class FSSlaveDirectoryProvider extends Object implements DirectoryProvider<org.apache.lucene.store.Directory>
A copy is triggered every refresh seconds
| Constructor and Description |
|---|
FSSlaveDirectoryProvider() |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
attemptInitializeAndStart() |
boolean |
equals(Object obj) |
org.apache.lucene.store.Directory |
getDirectory()
Give access to the initialized Lucene Directory.
|
int |
hashCode() |
void |
initialize(String directoryProviderName,
Properties properties,
BuildContext context)
get the information to initialize the directory and build its hashCode/equals method
|
protected void |
scheduleTask(TimerTask task,
long period) |
void |
start(DirectoryBasedIndexManager indexManager)
Executed after initialize, this method set up the heavy process of starting up the DirectoryProvider
IO processing as well as background processing are expected to be set up here
|
void |
stop()
Executed when the search factory is closed.
|
public void initialize(String directoryProviderName, Properties properties, BuildContext context)
DirectoryProviderinitialize in interface DirectoryProvider<org.apache.lucene.store.Directory>directoryProviderName - the name of the index (directory) to createproperties - the configuration propertiescontext - provide access to some services at initializationpublic void start(DirectoryBasedIndexManager indexManager)
DirectoryProviderstart in interface DirectoryProvider<org.apache.lucene.store.Directory>indexManager - the index managerpublic org.apache.lucene.store.Directory getDirectory()
DirectoryProvidergetDirectory in interface DirectoryProvider<org.apache.lucene.store.Directory>protected boolean attemptInitializeAndStart()
public void stop()
DirectoryProviderstop in interface DirectoryProvider<org.apache.lucene.store.Directory>protected void scheduleTask(TimerTask task, long period)
Copyright © 2006–2015 Hibernate. All rights reserved.