|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.elasticsearch.index.shard.AbstractIndexShardComponent
org.elasticsearch.index.gateway.local.LocalIndexShardGateway
public class LocalIndexShardGateway
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface org.elasticsearch.index.gateway.IndexShardGateway |
---|
IndexShardGateway.Snapshot, IndexShardGateway.SnapshotLock |
Field Summary |
---|
Fields inherited from class org.elasticsearch.index.shard.AbstractIndexShardComponent |
---|
componentSettings, indexSettings, logger, shardId |
Fields inherited from interface org.elasticsearch.index.gateway.IndexShardGateway |
---|
NO_SNAPSHOT_LOCK |
Constructor Summary | |
---|---|
LocalIndexShardGateway(ShardId shardId,
Settings indexSettings,
ThreadPool threadPool,
IndexShard indexShard)
|
Method Summary | |
---|---|
void |
close(boolean delete)
Closes the index component. |
SnapshotStatus |
currentSnapshotStatus()
The current snapshot status being performed. |
SnapshotStatus |
lastSnapshotStatus()
The last snapshot status performed. |
IndexShardGateway.SnapshotLock |
obtainSnapshotLock()
|
void |
recover(boolean indexShouldExists,
RecoveryStatus recoveryStatus)
Recovers the state of the shard from the gateway. |
RecoveryStatus |
recoveryStatus()
The last / on going recovery status. |
boolean |
requiresSnapshot()
Returns true if snapshot is even required on this gateway (i.e. |
boolean |
requiresSnapshotScheduling()
Returns true if this gateway requires scheduling management for snapshot operations. |
SnapshotStatus |
snapshot(IndexShardGateway.Snapshot snapshot)
Snapshots the given shard into the gateway. |
java.lang.String |
toString()
|
java.lang.String |
type()
|
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, wait, wait, wait |
Methods inherited from interface org.elasticsearch.index.shard.IndexShardComponent |
---|
indexSettings, shardId |
Constructor Detail |
---|
@Inject public LocalIndexShardGateway(ShardId shardId, @IndexSettings Settings indexSettings, ThreadPool threadPool, IndexShard indexShard)
Method Detail |
---|
public java.lang.String toString()
toString
in class java.lang.Object
public RecoveryStatus recoveryStatus()
IndexShardGateway
recoveryStatus
in interface IndexShardGateway
public void recover(boolean indexShouldExists, RecoveryStatus recoveryStatus) throws IndexShardGatewayRecoveryException
IndexShardGateway
recover
in interface IndexShardGateway
IndexShardGatewayRecoveryException
public java.lang.String type()
type
in interface IndexShardGateway
public SnapshotStatus snapshot(IndexShardGateway.Snapshot snapshot)
IndexShardGateway
snapshot
in interface IndexShardGateway
public SnapshotStatus lastSnapshotStatus()
IndexShardGateway
lastSnapshotStatus
in interface IndexShardGateway
public SnapshotStatus currentSnapshotStatus()
IndexShardGateway
currentSnapshotStatus
in interface IndexShardGateway
public boolean requiresSnapshot()
IndexShardGateway
requiresSnapshot
in interface IndexShardGateway
public boolean requiresSnapshotScheduling()
IndexShardGateway
requiresSnapshotScheduling
in interface IndexShardGateway
public void close(boolean delete)
CloseableIndexComponent
close
in interface CloseableIndexComponent
delete
- true if the index is being deleted.public IndexShardGateway.SnapshotLock obtainSnapshotLock() throws java.lang.Exception
obtainSnapshotLock
in interface IndexShardGateway
java.lang.Exception
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |