Class MockIndexEventListener.TestEventListener

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

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

    Constructors
    Constructor
    Description
     
  • Method Summary

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

    beforeIndexShardRecovery, onStoreClosed, onStoreCreated
  • Constructor Details

    • TestEventListener

      public TestEventListener()
  • Method Details

    • setNewDelegate

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

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

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

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

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

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

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

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

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

      public void beforeIndexShardCreated(org.opensearch.core.index.shard.ShardId shardId, org.opensearch.common.settings.Settings indexSettings)
      Specified by:
      beforeIndexShardCreated in interface org.opensearch.index.shard.IndexEventListener
    • beforeIndexRemoved

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

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

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

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

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