org.elasticsearch.index.shard
Class IndexShardManagement

java.lang.Object
  extended by org.elasticsearch.index.shard.AbstractIndexShardComponent
      extended by org.elasticsearch.index.shard.IndexShardManagement
All Implemented Interfaces:
CloseableComponent, IndexShardComponent

public class IndexShardManagement
extends AbstractIndexShardComponent
implements CloseableComponent


Field Summary
 
Fields inherited from class org.elasticsearch.index.shard.AbstractIndexShardComponent
componentSettings, indexSettings, logger, shardId
 
Constructor Summary
IndexShardManagement(ShardId shardId, Settings indexSettings, JmxService jmxService, IndexShard indexShard, Store store, Translog translog)
           
 
Method Summary
static java.lang.String buildShardGroupName(ShardId shardId)
           
 void close()
           
 java.lang.String getIndex()
           
 int getMaxDoc()
           
 int getNumDocs()
           
 java.lang.String getRoutingState()
           
 int getShardId()
           
 java.lang.String getState()
           
 java.lang.String getStoreSize()
           
 long getTranslogId()
           
 long getTranslogNumberOfOperations()
           
 java.lang.String getTranslogSize()
           
 boolean isPrimary()
           
 
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
 

Constructor Detail

IndexShardManagement

@Inject
public IndexShardManagement(ShardId shardId,
                                   @IndexSettings
                                   Settings indexSettings,
                                   JmxService jmxService,
                                   IndexShard indexShard,
                                   Store store,
                                   Translog translog)
Method Detail

buildShardGroupName

public static java.lang.String buildShardGroupName(ShardId shardId)

close

public void close()
Specified by:
close in interface CloseableComponent

getIndex

public java.lang.String getIndex()

getShardId

public int getShardId()

getStoreSize

public java.lang.String getStoreSize()

getTranslogId

public long getTranslogId()

getTranslogNumberOfOperations

public long getTranslogNumberOfOperations()

getTranslogSize

public java.lang.String getTranslogSize()

getState

public java.lang.String getState()

isPrimary

public boolean isPrimary()

getRoutingState

public java.lang.String getRoutingState()

getNumDocs

public int getNumDocs()

getMaxDoc

public int getMaxDoc()