com.atlassian.bamboo.index
Interface IndexerContext


public interface IndexerContext


Method Summary
 boolean canReadWhenLocked()
          Describes if the context can be used to execute read operation when indexer is locked
 boolean canWriteWhenLocked()
          Describes if the context can be used to execute write operation when indexer is locked
 com.atlassian.bonnie.ILuceneConnection getConnection()
           
 com.google.common.util.concurrent.ListeningExecutorService getExecutorService()
           
 AtomicBoolean getIndexerLockStatus()
          Get indexer lock status (currently indexer is only locked while reindexing)
 

Method Detail

getConnection

@NotNull
com.atlassian.bonnie.ILuceneConnection getConnection()
Returns:
Lucene connection to operate on

getIndexerLockStatus

@NotNull
AtomicBoolean getIndexerLockStatus()
Get indexer lock status (currently indexer is only locked while reindexing)

Returns:
true if indexer is locked false otherwise

getExecutorService

@NotNull
com.google.common.util.concurrent.ListeningExecutorService getExecutorService()
Returns:
executor for submitting all indexing requests

canReadWhenLocked

boolean canReadWhenLocked()
Describes if the context can be used to execute read operation when indexer is locked

Returns:
true if read operation can be executed when indexer is locked

canWriteWhenLocked

boolean canWriteWhenLocked()
Describes if the context can be used to execute write operation when indexer is locked

Returns:
true if write operation can be executed when indexer is locked


Copyright © 2015 Atlassian Software Systems Pty Ltd. All rights reserved.