|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.elasticsearch.index.shard.AbstractIndexShardComponent org.elasticsearch.index.gateway.none.NoneIndexShardGateway
public class NoneIndexShardGateway
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 | |
---|---|
NoneIndexShardGateway(ShardId shardId,
Settings indexSettings,
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. |
String |
toString()
|
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 NoneIndexShardGateway(ShardId shardId, @IndexSettings Settings indexSettings, IndexShard indexShard)
Method Detail |
---|
public String toString()
toString
in class 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 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 Exception
obtainSnapshotLock
in interface IndexShardGateway
Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |