Class MockIndexEventListener.TestEventListener

java.lang.Object
org.elasticsearch.test.MockIndexEventListener.TestEventListener
All Implemented Interfaces:
org.elasticsearch.index.shard.IndexEventListener
Enclosing class:
MockIndexEventListener

public static class MockIndexEventListener.TestEventListener extends Object implements org.elasticsearch.index.shard.IndexEventListener
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    afterIndexCreated(org.elasticsearch.index.IndexService indexService)
     
    void
    afterIndexRemoved(org.elasticsearch.index.Index index, org.elasticsearch.index.IndexSettings indexSettings, org.elasticsearch.indices.cluster.IndicesClusterStateService.AllocatedIndices.IndexRemovalReason reason)
     
    void
    afterIndexShardClosed(org.elasticsearch.index.shard.ShardId shardId, org.elasticsearch.index.shard.IndexShard indexShard, org.elasticsearch.common.settings.Settings indexSettings)
     
    void
    afterIndexShardCreated(org.elasticsearch.index.shard.IndexShard indexShard)
     
    void
    afterIndexShardDeleted(org.elasticsearch.index.shard.ShardId shardId, org.elasticsearch.common.settings.Settings indexSettings)
     
    void
    afterIndexShardStarted(org.elasticsearch.index.shard.IndexShard indexShard)
     
    void
    beforeIndexAddedToCluster(org.elasticsearch.index.Index index, org.elasticsearch.common.settings.Settings indexSettings)
     
    void
    beforeIndexCreated(org.elasticsearch.index.Index index, org.elasticsearch.common.settings.Settings indexSettings)
     
    void
    beforeIndexRemoved(org.elasticsearch.index.IndexService indexService, org.elasticsearch.indices.cluster.IndicesClusterStateService.AllocatedIndices.IndexRemovalReason reason)
     
    void
    beforeIndexShardClosed(org.elasticsearch.index.shard.ShardId shardId, org.elasticsearch.index.shard.IndexShard indexShard, org.elasticsearch.common.settings.Settings indexSettings)
     
    void
    beforeIndexShardCreated(org.elasticsearch.cluster.routing.ShardRouting shardrouting, org.elasticsearch.common.settings.Settings indexSettings)
     
    void
    beforeIndexShardDeleted(org.elasticsearch.index.shard.ShardId shardId, org.elasticsearch.common.settings.Settings indexSettings)
     
    void
    indexShardStateChanged(org.elasticsearch.index.shard.IndexShard indexShard, org.elasticsearch.index.shard.IndexShardState previousState, org.elasticsearch.index.shard.IndexShardState currentState, String reason)
     
    void
    setNewDelegate(org.elasticsearch.index.shard.IndexEventListener listener)
     
    void
    shardRoutingChanged(org.elasticsearch.index.shard.IndexShard indexShard, org.elasticsearch.cluster.routing.ShardRouting oldRouting, org.elasticsearch.cluster.routing.ShardRouting newRouting)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface org.elasticsearch.index.shard.IndexEventListener

    afterFilesRestoredFromRepository, beforeIndexShardRecovery, onStoreClosed, onStoreCreated
  • Constructor Details

    • TestEventListener

      public TestEventListener()
  • Method Details

    • setNewDelegate

      public void setNewDelegate(org.elasticsearch.index.shard.IndexEventListener listener)
    • shardRoutingChanged

      public void shardRoutingChanged(org.elasticsearch.index.shard.IndexShard indexShard, @Nullable org.elasticsearch.cluster.routing.ShardRouting oldRouting, org.elasticsearch.cluster.routing.ShardRouting newRouting)
      Specified by:
      shardRoutingChanged in interface org.elasticsearch.index.shard.IndexEventListener
    • afterIndexShardCreated

      public void afterIndexShardCreated(org.elasticsearch.index.shard.IndexShard indexShard)
      Specified by:
      afterIndexShardCreated in interface org.elasticsearch.index.shard.IndexEventListener
    • afterIndexShardStarted

      public void afterIndexShardStarted(org.elasticsearch.index.shard.IndexShard indexShard)
      Specified by:
      afterIndexShardStarted in interface org.elasticsearch.index.shard.IndexEventListener
    • beforeIndexShardClosed

      public void beforeIndexShardClosed(org.elasticsearch.index.shard.ShardId shardId, @Nullable org.elasticsearch.index.shard.IndexShard indexShard, org.elasticsearch.common.settings.Settings indexSettings)
      Specified by:
      beforeIndexShardClosed in interface org.elasticsearch.index.shard.IndexEventListener
    • afterIndexShardClosed

      public void afterIndexShardClosed(org.elasticsearch.index.shard.ShardId shardId, @Nullable org.elasticsearch.index.shard.IndexShard indexShard, org.elasticsearch.common.settings.Settings indexSettings)
      Specified by:
      afterIndexShardClosed in interface org.elasticsearch.index.shard.IndexEventListener
    • indexShardStateChanged

      public void indexShardStateChanged(org.elasticsearch.index.shard.IndexShard indexShard, @Nullable org.elasticsearch.index.shard.IndexShardState previousState, org.elasticsearch.index.shard.IndexShardState currentState, @Nullable String reason)
      Specified by:
      indexShardStateChanged in interface org.elasticsearch.index.shard.IndexEventListener
    • beforeIndexCreated

      public void beforeIndexCreated(org.elasticsearch.index.Index index, org.elasticsearch.common.settings.Settings indexSettings)
      Specified by:
      beforeIndexCreated in interface org.elasticsearch.index.shard.IndexEventListener
    • afterIndexCreated

      public void afterIndexCreated(org.elasticsearch.index.IndexService indexService)
      Specified by:
      afterIndexCreated in interface org.elasticsearch.index.shard.IndexEventListener
    • beforeIndexShardCreated

      public void beforeIndexShardCreated(org.elasticsearch.cluster.routing.ShardRouting shardrouting, org.elasticsearch.common.settings.Settings indexSettings)
      Specified by:
      beforeIndexShardCreated in interface org.elasticsearch.index.shard.IndexEventListener
    • beforeIndexRemoved

      public void beforeIndexRemoved(org.elasticsearch.index.IndexService indexService, org.elasticsearch.indices.cluster.IndicesClusterStateService.AllocatedIndices.IndexRemovalReason reason)
      Specified by:
      beforeIndexRemoved in interface org.elasticsearch.index.shard.IndexEventListener
    • afterIndexRemoved

      public void afterIndexRemoved(org.elasticsearch.index.Index index, org.elasticsearch.index.IndexSettings indexSettings, org.elasticsearch.indices.cluster.IndicesClusterStateService.AllocatedIndices.IndexRemovalReason reason)
      Specified by:
      afterIndexRemoved in interface org.elasticsearch.index.shard.IndexEventListener
    • beforeIndexShardDeleted

      public void beforeIndexShardDeleted(org.elasticsearch.index.shard.ShardId shardId, org.elasticsearch.common.settings.Settings indexSettings)
      Specified by:
      beforeIndexShardDeleted in interface org.elasticsearch.index.shard.IndexEventListener
    • afterIndexShardDeleted

      public void afterIndexShardDeleted(org.elasticsearch.index.shard.ShardId shardId, org.elasticsearch.common.settings.Settings indexSettings)
      Specified by:
      afterIndexShardDeleted in interface org.elasticsearch.index.shard.IndexEventListener
    • beforeIndexAddedToCluster

      public void beforeIndexAddedToCluster(org.elasticsearch.index.Index index, org.elasticsearch.common.settings.Settings indexSettings)
      Specified by:
      beforeIndexAddedToCluster in interface org.elasticsearch.index.shard.IndexEventListener