org.elasticsearch.indices
Class InternalIndicesLifecycle

java.lang.Object
  extended by org.elasticsearch.common.component.AbstractComponent
      extended by org.elasticsearch.indices.InternalIndicesLifecycle
All Implemented Interfaces:
IndicesLifecycle

public class InternalIndicesLifecycle
extends AbstractComponent
implements IndicesLifecycle


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.elasticsearch.indices.IndicesLifecycle
IndicesLifecycle.Listener
 
Field Summary
 
Fields inherited from class org.elasticsearch.common.component.AbstractComponent
componentSettings, logger, settings
 
Constructor Summary
InternalIndicesLifecycle(Settings settings)
           
 
Method Summary
 void addListener(IndicesLifecycle.Listener listener)
          Add a listener.
 void afterIndexClosed(Index index, boolean delete)
           
 void afterIndexCreated(IndexService indexService)
           
 void afterIndexShardClosed(ShardId shardId, boolean delete)
           
 void afterIndexShardCreated(IndexShard indexShard)
           
 void afterIndexShardStarted(IndexShard indexShard)
           
 void beforeIndexClosed(IndexService indexService, boolean delete)
           
 void beforeIndexCreated(Index index)
           
 void beforeIndexShardClosed(ShardId shardId, IndexShard indexShard, boolean delete)
           
 void beforeIndexShardCreated(ShardId shardId)
           
 void removeListener(IndicesLifecycle.Listener listener)
          Remove a listener.
 void shardRoutingChanged(IndexShard indexShard, ShardRouting oldRouting, ShardRouting newRouting)
           
 
Methods inherited from class org.elasticsearch.common.component.AbstractComponent
nodeName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InternalIndicesLifecycle

@Inject
public InternalIndicesLifecycle(Settings settings)
Method Detail

addListener

public void addListener(IndicesLifecycle.Listener listener)
Description copied from interface: IndicesLifecycle
Add a listener.

Specified by:
addListener in interface IndicesLifecycle

removeListener

public void removeListener(IndicesLifecycle.Listener listener)
Description copied from interface: IndicesLifecycle
Remove a listener.

Specified by:
removeListener in interface IndicesLifecycle

shardRoutingChanged

public void shardRoutingChanged(IndexShard indexShard,
                                @Nullable
                                ShardRouting oldRouting,
                                ShardRouting newRouting)

beforeIndexCreated

public void beforeIndexCreated(Index index)

afterIndexCreated

public void afterIndexCreated(IndexService indexService)

beforeIndexShardCreated

public void beforeIndexShardCreated(ShardId shardId)

afterIndexShardCreated

public void afterIndexShardCreated(IndexShard indexShard)

afterIndexShardStarted

public void afterIndexShardStarted(IndexShard indexShard)

beforeIndexClosed

public void beforeIndexClosed(IndexService indexService,
                              boolean delete)

afterIndexClosed

public void afterIndexClosed(Index index,
                             boolean delete)

beforeIndexShardClosed

public void beforeIndexShardClosed(ShardId shardId,
                                   @Nullable
                                   IndexShard indexShard,
                                   boolean delete)

afterIndexShardClosed

public void afterIndexShardClosed(ShardId shardId,
                                  boolean delete)


Copyright © 2009-2012. All Rights Reserved.