org.elasticsearch.index.engine.robin
Class RobinEngine

java.lang.Object
  extended by org.elasticsearch.index.shard.AbstractIndexShardComponent
      extended by org.elasticsearch.index.engine.robin.RobinEngine
All Implemented Interfaces:
CloseableComponent, Engine, ScheduledRefreshableEngine, IndexShardComponent

public class RobinEngine
extends AbstractIndexShardComponent
implements Engine, ScheduledRefreshableEngine


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.elasticsearch.index.engine.Engine
Engine.Bulk, Engine.Create, Engine.Delete, Engine.DeleteByQuery, Engine.Flush, Engine.Index, Engine.Operation, Engine.Optimize, Engine.RecoveryHandler, Engine.Refresh, Engine.Searcher, Engine.SnapshotHandler<T>
 
Field Summary
 
Fields inherited from class org.elasticsearch.index.shard.AbstractIndexShardComponent
componentSettings, indexSettings, logger, shardId
 
Constructor Summary
RobinEngine(ShardId shardId, Settings indexSettings, Store store, SnapshotDeletionPolicy deletionPolicy, Translog translog, MergePolicyProvider mergePolicyProvider, MergeSchedulerProvider mergeScheduler, AnalysisService analysisService, SimilarityService similarityService)
           
 
Method Summary
 EngineException[] bulk(Engine.Bulk bulk)
           
 void close()
           
 void create(Engine.Create create)
           
 void delete(Engine.Delete delete)
           
 void delete(Engine.DeleteByQuery delete)
           
 ByteSizeValue estimateFlushableMemorySize()
          Returns the estimated flushable memory size.
 void flush(Engine.Flush flush)
          Flushes the state of the engine, clearing memory.
 void index(Engine.Index index)
           
 void optimize(Engine.Optimize optimize)
           
 void recover(Engine.RecoveryHandler recoveryHandler)
           
 void refresh(Engine.Refresh refresh)
          Refreshes the engine for new search operations to reflect the latest changes.
 TimeValue refreshInterval()
           
 Engine.Searcher searcher()
           
<T> T
snapshot(Engine.SnapshotHandler<T> snapshotHandler)
           
 void start()
          Starts the Engine.
 void updateIndexingBufferSize(ByteSizeValue indexingBufferSize)
           
 
Methods inherited from class org.elasticsearch.index.shard.AbstractIndexShardComponent
indexSettings, managementGroupName, nodeName, shardId
 
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.IndexShardComponent
indexSettings, shardId
 

Constructor Detail

RobinEngine

@Inject
public RobinEngine(ShardId shardId,
                          @IndexSettings
                          Settings indexSettings,
                          Store store,
                          SnapshotDeletionPolicy deletionPolicy,
                          Translog translog,
                          MergePolicyProvider mergePolicyProvider,
                          MergeSchedulerProvider mergeScheduler,
                          AnalysisService analysisService,
                          SimilarityService similarityService)
            throws EngineException
Throws:
EngineException
Method Detail

updateIndexingBufferSize

public void updateIndexingBufferSize(ByteSizeValue indexingBufferSize)
Specified by:
updateIndexingBufferSize in interface Engine

start

public void start()
           throws EngineException
Description copied from interface: Engine
Starts the Engine.

Note, after the creation and before the call to start, the store might be changed.

Specified by:
start in interface Engine
Throws:
EngineException

refreshInterval

public TimeValue refreshInterval()
Specified by:
refreshInterval in interface ScheduledRefreshableEngine

bulk

public EngineException[] bulk(Engine.Bulk bulk)
                       throws EngineException
Specified by:
bulk in interface Engine
Throws:
EngineException

create

public void create(Engine.Create create)
            throws EngineException
Specified by:
create in interface Engine
Throws:
EngineException

index

public void index(Engine.Index index)
           throws EngineException
Specified by:
index in interface Engine
Throws:
EngineException

delete

public void delete(Engine.Delete delete)
            throws EngineException
Specified by:
delete in interface Engine
Throws:
EngineException

delete

public void delete(Engine.DeleteByQuery delete)
            throws EngineException
Specified by:
delete in interface Engine
Throws:
EngineException

searcher

public Engine.Searcher searcher()
                         throws EngineException
Specified by:
searcher in interface Engine
Throws:
EngineException

estimateFlushableMemorySize

public ByteSizeValue estimateFlushableMemorySize()
Description copied from interface: Engine
Returns the estimated flushable memory size. Returns null if not available.

Specified by:
estimateFlushableMemorySize in interface Engine

refresh

public void refresh(Engine.Refresh refresh)
             throws EngineException
Description copied from interface: Engine
Refreshes the engine for new search operations to reflect the latest changes. Pass true if the refresh operation should include all the operations performed up to this call.

Specified by:
refresh in interface Engine
Throws:
EngineException

flush

public void flush(Engine.Flush flush)
           throws EngineException
Description copied from interface: Engine
Flushes the state of the engine, clearing memory.

Specified by:
flush in interface Engine
Throws:
EngineException

optimize

public void optimize(Engine.Optimize optimize)
              throws EngineException
Specified by:
optimize in interface Engine
Throws:
EngineException

snapshot

public <T> T snapshot(Engine.SnapshotHandler<T> snapshotHandler)
           throws EngineException
Specified by:
snapshot in interface Engine
Throws:
EngineException

recover

public void recover(Engine.RecoveryHandler recoveryHandler)
             throws EngineException
Specified by:
recover in interface Engine
Throws:
EngineException

close

public void close()
           throws ElasticSearchException
Specified by:
close in interface CloseableComponent
Throws:
ElasticSearchException