|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.elasticsearch.indices.IndicesLifecycle.Listener
public abstract static class IndicesLifecycle.Listener
A listener for index and index shard lifecycle events (create/closed).
Constructor Summary | |
---|---|
IndicesLifecycle.Listener()
|
Method Summary | |
---|---|
void |
afterIndexClosed(Index index,
boolean delete)
Called after the index has been closed. |
void |
afterIndexCreated(IndexService indexService)
Called after the index has been created. |
void |
afterIndexShardClosed(ShardId shardId,
boolean delete)
Called after the index shard has been closed. |
void |
afterIndexShardCreated(IndexShard indexShard)
Called after the index shard has been created. |
void |
afterIndexShardStarted(IndexShard indexShard)
Called after the index shard has been started. |
void |
beforeIndexClosed(IndexService indexService,
boolean delete)
Called before the index get closed. |
void |
beforeIndexCreated(Index index)
Called before the index gets created. |
void |
beforeIndexShardClosed(ShardId shardId,
IndexShard indexShard,
boolean delete)
Called before the index shard gets closed. |
void |
beforeIndexShardCreated(ShardId shardId)
Called before the index shard gets created. |
void |
shardRoutingChanged(IndexShard indexShard,
ShardRouting oldRouting,
ShardRouting newRouting)
Called when the shard routing has changed state. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public IndicesLifecycle.Listener()
Method Detail |
---|
public void shardRoutingChanged(IndexShard indexShard, @Nullable ShardRouting oldRouting, ShardRouting newRouting)
indexShard
- The index shardoldRouting
- The old routing state (can be null)newRouting
- The new routing statepublic void beforeIndexCreated(Index index)
public void afterIndexCreated(IndexService indexService)
public void beforeIndexShardCreated(ShardId shardId)
public void afterIndexShardCreated(IndexShard indexShard)
public void afterIndexShardStarted(IndexShard indexShard)
public void beforeIndexClosed(IndexService indexService, boolean delete)
indexService
- The index servicedelete
- Does the index gets closed because of a delete command, or because the node is shutting downpublic void afterIndexClosed(Index index, boolean delete)
index
- The indexdelete
- Does the index gets closed because of a delete command, or because the node is shutting downpublic void beforeIndexShardClosed(ShardId shardId, @Nullable IndexShard indexShard, boolean delete)
indexShard
- The index sharddelete
- Does the index shard gets closed because of a delete command, or because the node is shutting downpublic void afterIndexShardClosed(ShardId shardId, boolean delete)
shardId
- The shard iddelete
- Does the index shard gets closed because of a delete command, or because the node is shutting down
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |