public class SnapshotShardsService extends AbstractLifecycleComponent<SnapshotShardsService> implements ClusterStateListener
| 修飾子とタイプ | クラスと説明 |
|---|---|
static class |
SnapshotShardsService.UpdateIndexShardSnapshotStatusRequest
Internal request that is used to send changes in snapshot status to master
|
| 修飾子とタイプ | フィールドと説明 |
|---|---|
static String |
UPDATE_SNAPSHOT_ACTION_NAME |
lifecycledeprecationLogger, logger, settings| コンストラクタと説明 |
|---|
SnapshotShardsService(Settings settings,
ClusterService clusterService,
SnapshotsService snapshotsService,
ThreadPool threadPool,
TransportService transportService,
IndicesService indicesService) |
| 修飾子とタイプ | メソッドと説明 |
|---|---|
void |
clusterChanged(ClusterChangedEvent event)
Called when cluster state changes.
|
Map<ShardId,IndexShardSnapshotStatus> |
currentSnapshotShards(SnapshotId snapshotId)
Returns status of shards that are snapshotted on the node and belong to the given snapshot
This method is executed on data node
|
protected void |
doClose() |
protected void |
doStart() |
protected void |
doStop() |
void |
updateIndexShardSnapshotStatus(SnapshotId snapshotId,
ShardId shardId,
SnapshotsInProgress.ShardSnapshotStatus status)
Updates the shard status
|
addLifecycleListener, close, lifecycleState, removeLifecycleListener, start, stoplogDeprecatedSetting, logRemovedSetting, nodeName@Inject public SnapshotShardsService(Settings settings, ClusterService clusterService, SnapshotsService snapshotsService, ThreadPool threadPool, TransportService transportService, IndicesService indicesService)
protected void doStart()
protected void doStop()
protected void doClose()
public void clusterChanged(ClusterChangedEvent event)
ClusterStateListenerclusterChanged インタフェース内 ClusterStateListenerpublic Map<ShardId,IndexShardSnapshotStatus> currentSnapshotShards(SnapshotId snapshotId)
This method is executed on data node
snapshotId - snapshot idpublic void updateIndexShardSnapshotStatus(SnapshotId snapshotId, ShardId shardId, SnapshotsInProgress.ShardSnapshotStatus status)
Copyright © 2009–2016. All rights reserved.