org.elasticsearch.index.gateway.cloud
Class CloudIndexShardGateway
java.lang.Object
org.elasticsearch.index.shard.AbstractIndexShardComponent
org.elasticsearch.index.gateway.cloud.CloudIndexShardGateway
- All Implemented Interfaces:
- org.elasticsearch.index.gateway.IndexShardGateway, org.elasticsearch.index.shard.IndexShardComponent, org.elasticsearch.util.component.CloseableIndexComponent
public class CloudIndexShardGateway
- extends org.elasticsearch.index.shard.AbstractIndexShardComponent
- implements org.elasticsearch.index.gateway.IndexShardGateway
| Nested classes/interfaces inherited from interface org.elasticsearch.index.gateway.IndexShardGateway |
org.elasticsearch.index.gateway.IndexShardGateway.RecoveryStatus, org.elasticsearch.index.gateway.IndexShardGateway.Snapshot, org.elasticsearch.index.gateway.IndexShardGateway.SnapshotStatus |
| Fields inherited from class org.elasticsearch.index.shard.AbstractIndexShardComponent |
componentSettings, indexSettings, logger, shardId |
|
Constructor Summary |
CloudIndexShardGateway(org.elasticsearch.index.shard.ShardId shardId,
org.elasticsearch.util.settings.Settings indexSettings,
org.elasticsearch.index.shard.service.IndexShard indexShard,
org.elasticsearch.threadpool.ThreadPool threadPool,
org.elasticsearch.index.store.Store store,
org.elasticsearch.indices.recovery.throttler.RecoveryThrottler recoveryThrottler,
CloudIndexGateway cloudIndexGateway,
CloudBlobStoreService blobStoreService)
|
|
Method Summary |
void |
close(boolean delete)
|
org.elasticsearch.index.gateway.IndexShardGateway.RecoveryStatus |
recover()
|
boolean |
requiresSnapshotScheduling()
|
org.elasticsearch.index.gateway.IndexShardGateway.SnapshotStatus |
snapshot(org.elasticsearch.index.gateway.IndexShardGateway.Snapshot snapshot)
|
java.lang.String |
toString()
|
| 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 |
CloudIndexShardGateway
@Inject
public CloudIndexShardGateway(org.elasticsearch.index.shard.ShardId shardId,
@IndexSettings
org.elasticsearch.util.settings.Settings indexSettings,
org.elasticsearch.index.shard.service.IndexShard indexShard,
org.elasticsearch.threadpool.ThreadPool threadPool,
org.elasticsearch.index.store.Store store,
org.elasticsearch.indices.recovery.throttler.RecoveryThrottler recoveryThrottler,
CloudIndexGateway cloudIndexGateway,
CloudBlobStoreService blobStoreService)
requiresSnapshotScheduling
public boolean requiresSnapshotScheduling()
- Specified by:
requiresSnapshotScheduling in interface org.elasticsearch.index.gateway.IndexShardGateway
toString
public java.lang.String toString()
- Overrides:
toString in class java.lang.Object
close
public void close(boolean delete)
- Specified by:
close in interface org.elasticsearch.util.component.CloseableIndexComponent
recover
public org.elasticsearch.index.gateway.IndexShardGateway.RecoveryStatus recover()
throws org.elasticsearch.index.gateway.IndexShardGatewayRecoveryException
- Specified by:
recover in interface org.elasticsearch.index.gateway.IndexShardGateway
- Throws:
org.elasticsearch.index.gateway.IndexShardGatewayRecoveryException
snapshot
public org.elasticsearch.index.gateway.IndexShardGateway.SnapshotStatus snapshot(org.elasticsearch.index.gateway.IndexShardGateway.Snapshot snapshot)
- Specified by:
snapshot in interface org.elasticsearch.index.gateway.IndexShardGateway