com.groupbyinc.flux.snapshots.RestoreService$1.class Maven / Gradle / Ivy
???? 4? .com/groupbyinc/flux/snapshots/RestoreService$1 2com/groupbyinc/flux/cluster/ClusterStateUpdateTask RestoreService.java ,com/groupbyinc/flux/snapshots/RestoreService restoreSnapshot k(Lcom/groupbyinc/flux/snapshots/RestoreService$RestoreRequest;Lcom/groupbyinc/flux/action/ActionListener;)V ;com/groupbyinc/flux/snapshots/RestoreService$RestoreRequest RestoreRequest :com/groupbyinc/flux/cluster/metadata/IndexMetaData$Builder 2com/groupbyinc/flux/cluster/metadata/IndexMetaData Builder Icom/groupbyinc/flux/cluster/routing/RecoverySource$SnapshotRecoverySource 2com/groupbyinc/flux/cluster/routing/RecoverySource SnapshotRecoverySource java/util/Map$Entry
java/util/Map Entry ;com/groupbyinc/flux/common/collect/ImmutableOpenMap$Builder 3com/groupbyinc/flux/common/collect/ImmutableOpenMap 3com/groupbyinc/flux/cluster/RestoreInProgress$Entry ! -com/groupbyinc/flux/cluster/RestoreInProgress # 0com/groupbyinc/flux/cluster/ClusterState$Builder % (com/groupbyinc/flux/cluster/ClusterState ' 5com/groupbyinc/flux/cluster/metadata/MetaData$Builder ) -com/groupbyinc/flux/cluster/metadata/MetaData + 7com/groupbyinc/flux/cluster/block/ClusterBlocks$Builder - /com/groupbyinc/flux/cluster/block/ClusterBlocks / 8com/groupbyinc/flux/cluster/routing/RoutingTable$Builder 1 0com/groupbyinc/flux/cluster/routing/RoutingTable 3 @com/groupbyinc/flux/cluster/RestoreInProgress$ShardRestoreStatus 5 ShardRestoreStatus 4com/groupbyinc/flux/cluster/metadata/MetaData$Custom 8 Custom =com/groupbyinc/flux/cluster/SnapshotDeletionsInProgress$Entry ; 7com/groupbyinc/flux/cluster/SnapshotDeletionsInProgress = Fcom/groupbyinc/flux/snapshots/RestoreService$RestoreCompletionResponse ? RestoreCompletionResponse /com/groupbyinc/flux/cluster/ClusterState$Custom B 8com/groupbyinc/flux/cluster/metadata/IndexMetaData$State D State 4com/groupbyinc/flux/common/settings/Settings$Builder G ,com/groupbyinc/flux/common/settings/Settings I 3com/groupbyinc/flux/cluster/RestoreInProgress$State K %java/lang/invoke/MethodHandles$Lookup M java/lang/invoke/MethodHandles O Lookup restoreInfo +Lcom/groupbyinc/flux/snapshots/RestoreInfo; val$snapshot (Lcom/groupbyinc/flux/snapshots/Snapshot; val$renamedIndices Ljava/util/Map; val$snapshotInfo ,Lcom/groupbyinc/flux/snapshots/SnapshotInfo; val$metaData /Lcom/groupbyinc/flux/cluster/metadata/MetaData; val$request =Lcom/groupbyinc/flux/snapshots/RestoreService$RestoreRequest; val$snapshotId *Lcom/groupbyinc/flux/snapshots/SnapshotId; val$listener +Lcom/groupbyinc/flux/action/ActionListener; this$0 .Lcom/groupbyinc/flux/snapshots/RestoreService; U(Lcom/groupbyinc/flux/snapshots/RestoreService;Lcom/groupbyinc/flux/snapshots/Snapshot;Ljava/util/Map;Lcom/groupbyinc/flux/snapshots/SnapshotInfo;Lcom/groupbyinc/flux/cluster/metadata/MetaData;Lcom/groupbyinc/flux/snapshots/RestoreService$RestoreRequest;Lcom/groupbyinc/flux/snapshots/SnapshotId;Lcom/groupbyinc/flux/action/ActionListener;)V b c f T U h V W j X Y l Z [ n \ ] p ^ _ r ` a t ()V d v
w R S y this 0Lcom/groupbyinc/flux/snapshots/RestoreService$1; execute V(Lcom/groupbyinc/flux/cluster/ClusterState;)Lcom/groupbyinc/flux/cluster/ClusterState; java/lang/Exception restore ? custom E(Ljava/lang/String;)Lcom/groupbyinc/flux/cluster/ClusterState$Custom; ? ?
( ? entries ()Ljava/util/List; ? ?
$ ? java/util/List ? isEmpty ()Z ? ? ? ? Bcom/groupbyinc/flux/snapshots/ConcurrentSnapshotExecutionException ? 2Restore process is already running in this cluster ? =(Lcom/groupbyinc/flux/snapshots/Snapshot;Ljava/lang/String;)V d ?
? ? snapshot_deletions ? hasDeletionsInProgress ? ?
> ? java/lang/StringBuilder ?
? w Dcannot restore a snapshot while a snapshot deletion is in-progress [ ? append -(Ljava/lang/String;)Ljava/lang/StringBuilder; ? ?
? ?
getEntries ? ?
> ? get (I)Ljava/lang/Object; ? ? ? ? getSnapshot *()Lcom/groupbyinc/flux/snapshots/Snapshot; ? ?
<