public abstract class AbstractIndexStore extends AbstractIndexComponent implements IndexStore
Modifier and Type | Field and Description |
---|---|
static String |
INDEX_FOLDER_NAME |
static String |
INDEX_STORE_THROTTLE_MAX_BYTES_PER_SEC |
static String |
INDEX_STORE_THROTTLE_TYPE |
protected IndexService |
indexService |
protected IndicesStore |
indicesStore |
static String |
TRANSLOG_FOLDER_NAME |
componentSettings, index, indexSettings, logger
Modifier | Constructor and Description |
---|---|
protected |
AbstractIndexStore(Index index,
Settings indexSettings,
IndexService indexService,
IndicesStore indicesStore,
NodeEnvironment nodeEnv) |
Modifier and Type | Method and Description |
---|---|
void |
close()
Closes the index component.
|
IndicesStore |
indicesStore() |
StoreRateLimiting |
rateLimiting()
Returns the rate limiting, either of the index is explicitly configured, or
the node level one (defaults to the node level one).
|
Path[] |
shardIndexLocations(ShardId shardId)
Return an array of all index folder locations for a given shard.
|
Path[] |
shardTranslogLocations(ShardId shardId)
Return an array of all translog folder locations for a given shard.
|
index, nodeName
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
persistent, shardDirectory
public static final String INDEX_STORE_THROTTLE_TYPE
public static final String INDEX_STORE_THROTTLE_MAX_BYTES_PER_SEC
public static final String INDEX_FOLDER_NAME
public static final String TRANSLOG_FOLDER_NAME
protected final IndexService indexService
protected final IndicesStore indicesStore
protected AbstractIndexStore(Index index, @IndexSettings Settings indexSettings, IndexService indexService, IndicesStore indicesStore, NodeEnvironment nodeEnv)
public IndicesStore indicesStore()
indicesStore
in interface IndexStore
public void close() throws ElasticsearchException
CloseableIndexComponent
close
in interface Closeable
close
in interface AutoCloseable
close
in interface CloseableIndexComponent
ElasticsearchException
public StoreRateLimiting rateLimiting()
IndexStore
rateLimiting
in interface IndexStore
public Path[] shardIndexLocations(ShardId shardId)
shardIndexLocations
in interface IndexStore
public Path[] shardTranslogLocations(ShardId shardId)
shardTranslogLocations
in interface IndexStore
Copyright © 2009–2015. All rights reserved.