org.elasticsearch.index.gateway.none
Class NoneIndexShardGateway
java.lang.Object
org.elasticsearch.index.shard.AbstractIndexShardComponent
org.elasticsearch.index.gateway.none.NoneIndexShardGateway
- All Implemented Interfaces:
- CloseableIndexComponent, IndexShardGateway, IndexShardComponent
public class NoneIndexShardGateway
- extends AbstractIndexShardComponent
- implements IndexShardGateway
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
NoneIndexShardGateway
@Inject
public NoneIndexShardGateway(ShardId shardId,
@IndexSettings
Settings indexSettings,
IndexShard indexShard)
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
recoveryStatus
public RecoveryStatus recoveryStatus()
- Description copied from interface:
IndexShardGateway
- The last / on going recovery status.
- Specified by:
recoveryStatus
in interface IndexShardGateway
recover
public void recover(RecoveryStatus recoveryStatus)
throws IndexShardGatewayRecoveryException
- Description copied from interface:
IndexShardGateway
- Recovers the state of the shard from the gateway.
- Specified by:
recover
in interface IndexShardGateway
- Throws:
IndexShardGatewayRecoveryException
type
public java.lang.String type()
- Specified by:
type
in interface IndexShardGateway
snapshot
public SnapshotStatus snapshot(IndexShardGateway.Snapshot snapshot)
- Description copied from interface:
IndexShardGateway
- Snapshots the given shard into the gateway.
- Specified by:
snapshot
in interface IndexShardGateway
lastSnapshotStatus
public SnapshotStatus lastSnapshotStatus()
- Description copied from interface:
IndexShardGateway
- The last snapshot status performed. Can be null.
- Specified by:
lastSnapshotStatus
in interface IndexShardGateway
currentSnapshotStatus
public SnapshotStatus currentSnapshotStatus()
- Description copied from interface:
IndexShardGateway
- The current snapshot status being performed. Can be null indicating that no snapshot
is being executed currently.
- Specified by:
currentSnapshotStatus
in interface IndexShardGateway
requiresSnapshotScheduling
public boolean requiresSnapshotScheduling()
- Description copied from interface:
IndexShardGateway
- Returns true if this gateway requires scheduling management for snapshot
operations.
- Specified by:
requiresSnapshotScheduling
in interface IndexShardGateway
close
public void close(boolean delete)
- Description copied from interface:
CloseableIndexComponent
- Closes the index component. A boolean indicating if its part of an actual index
deletion or not is passed.
- Specified by:
close
in interface CloseableIndexComponent
- Parameters:
delete
- true if the index is being deleted.
obtainSnapshotLock
public IndexShardGateway.SnapshotLock obtainSnapshotLock()
throws java.lang.Exception
- Specified by:
obtainSnapshotLock
in interface IndexShardGateway
- Throws:
java.lang.Exception