Package | Description |
---|---|
org.elasticsearch.env | |
org.elasticsearch.index.shard | |
org.elasticsearch.index.store | |
org.elasticsearch.indices |
Modifier and Type | Method and Description |
---|---|
ShardLock |
NodeEnvironment.shardLock(ShardId id)
Tries to lock the given shards ID.
|
ShardLock |
NodeEnvironment.shardLock(ShardId id,
long lockTimeoutMS)
Tries to lock the given shards ID.
|
Modifier and Type | Method and Description |
---|---|
List<ShardLock> |
NodeEnvironment.lockAllForIndex(Index index,
Settings settings,
long lockTimeoutMS)
Tries to lock all local shards for the given index.
|
Modifier and Type | Method and Description |
---|---|
void |
NodeEnvironment.deleteShardDirectoryUnderLock(ShardLock lock,
Settings indexSettings)
Deletes a shard data directory.
|
Modifier and Type | Method and Description |
---|---|
static void |
ShardPath.deleteLeftoverShardDirectory(ESLogger logger,
NodeEnvironment env,
ShardLock lock,
Settings indexSettings)
This method tries to delete left-over shards where the index name has been reused but the UUID is different
to allow the new shard to be allocated.
|
Constructor and Description |
---|
Store(ShardId shardId,
IndexSettingsService indexSettingsService,
DirectoryService directoryService,
ShardLock shardLock,
Store.OnClose onClose) |
Store(ShardId shardId,
Settings indexSettings,
DirectoryService directoryService,
ShardLock shardLock) |
Store(ShardId shardId,
Settings indexSettings,
DirectoryService directoryService,
ShardLock shardLock,
Store.OnClose onClose) |
StoreModule(Class<? extends DirectoryService> shardDirectory,
ShardLock lock,
Store.OnClose closeCallback,
ShardPath path) |
Modifier and Type | Method and Description |
---|---|
void |
IndicesService.deleteShardStore(String reason,
ShardLock lock,
Settings indexSettings)
Deletes the shard with an already acquired shard lock.
|
Copyright © 2009–2016. All rights reserved.