mirror of
https://github.com/elastic/elasticsearch.git
synced 2025-04-24 15:17:30 -04:00
Remove circular dependency between IndicesService and IndicesStore
This commit introduces a new IndexStoreConfig that is passed to IndexStore instances instead it's pretty messy parent service.
This commit is contained in:
parent
fcc2c19600
commit
cc3532f593
10 changed files with 129 additions and 103 deletions
|
@ -23,12 +23,12 @@ import org.elasticsearch.index.IndexSettings;
|
|||
import org.elasticsearch.index.shard.ShardPath;
|
||||
import org.elasticsearch.index.store.DirectoryService;
|
||||
import org.elasticsearch.index.store.IndexStore;
|
||||
import org.elasticsearch.indices.store.IndicesStore;
|
||||
import org.elasticsearch.index.store.IndexStoreConfig;
|
||||
|
||||
public class SmbMmapFsIndexStore extends IndexStore {
|
||||
|
||||
public SmbMmapFsIndexStore(IndexSettings indexSettings, IndicesStore indicesStore) {
|
||||
super(indexSettings, indicesStore);
|
||||
public SmbMmapFsIndexStore(IndexSettings indexSettings, IndexStoreConfig indexStoreConfig) {
|
||||
super(indexSettings, indexStoreConfig);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
@ -23,12 +23,12 @@ import org.elasticsearch.index.IndexSettings;
|
|||
import org.elasticsearch.index.shard.ShardPath;
|
||||
import org.elasticsearch.index.store.DirectoryService;
|
||||
import org.elasticsearch.index.store.IndexStore;
|
||||
import org.elasticsearch.indices.store.IndicesStore;
|
||||
import org.elasticsearch.index.store.IndexStoreConfig;
|
||||
|
||||
public class SmbSimpleFsIndexStore extends IndexStore {
|
||||
|
||||
public SmbSimpleFsIndexStore(IndexSettings indexSettings, IndicesStore indicesStore) {
|
||||
super(indexSettings, indicesStore);
|
||||
public SmbSimpleFsIndexStore(IndexSettings indexSettings, IndexStoreConfig indexStoreConfig) {
|
||||
super(indexSettings, indexStoreConfig);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue