|
12 | 12 | import org.elasticsearch.action.ActionListener;
|
13 | 13 | import org.elasticsearch.action.ActionRequest;
|
14 | 14 | import org.elasticsearch.action.ActionResponse;
|
| 15 | +import org.elasticsearch.client.Client; |
15 | 16 | import org.elasticsearch.cluster.ClusterChangedEvent;
|
16 | 17 | import org.elasticsearch.cluster.ClusterStateListener;
|
17 |
| -import org.elasticsearch.cluster.metadata.RepositoriesMetadata; |
18 |
| -import org.elasticsearch.cluster.metadata.RepositoryMetadata; |
19 |
| -import org.elasticsearch.cluster.routing.RerouteService; |
20 |
| -import org.elasticsearch.common.Priority; |
21 |
| -import org.elasticsearch.common.util.concurrent.EsExecutors; |
22 |
| -import org.elasticsearch.repositories.RepositoryData; |
23 |
| -import org.elasticsearch.xpack.core.searchablesnapshots.SearchableSnapshotsConstants; |
24 |
| -import org.elasticsearch.xpack.searchablesnapshots.action.cache.TransportSearchableSnapshotsNodeCachesStatsAction; |
25 |
| -import org.elasticsearch.xpack.searchablesnapshots.allocation.decider.DedicatedFrozenNodeAllocationDecider; |
26 |
| -import org.elasticsearch.xpack.searchablesnapshots.allocation.decider.SearchableSnapshotRepositoryExistsAllocationDecider; |
27 |
| -import org.elasticsearch.xpack.searchablesnapshots.cache.blob.BlobStoreCacheService; |
28 |
| -import org.elasticsearch.client.Client; |
29 | 18 | import org.elasticsearch.cluster.metadata.IndexMetadata;
|
30 | 19 | import org.elasticsearch.cluster.metadata.IndexNameExpressionResolver;
|
| 20 | +import org.elasticsearch.cluster.metadata.RepositoriesMetadata; |
| 21 | +import org.elasticsearch.cluster.metadata.RepositoryMetadata; |
31 | 22 | import org.elasticsearch.cluster.node.DiscoveryNode;
|
32 | 23 | import org.elasticsearch.cluster.node.DiscoveryNodes;
|
| 24 | +import org.elasticsearch.cluster.routing.RerouteService; |
33 | 25 | import org.elasticsearch.cluster.routing.allocation.ExistingShardsAllocator;
|
34 | 26 | import org.elasticsearch.cluster.routing.allocation.decider.AllocationDecider;
|
35 | 27 | import org.elasticsearch.cluster.service.ClusterService;
|
36 | 28 | import org.elasticsearch.core.Nullable;
|
37 | 29 | import org.elasticsearch.common.inject.Module;
|
| 30 | +import org.elasticsearch.common.Priority; |
38 | 31 | import org.elasticsearch.common.io.stream.NamedWriteableRegistry;
|
39 |
| -import org.elasticsearch.core.Releasables; |
40 | 32 | import org.elasticsearch.common.settings.ClusterSettings;
|
41 | 33 | import org.elasticsearch.common.settings.IndexScopedSettings;
|
42 | 34 | import org.elasticsearch.common.settings.Setting;
|
43 | 35 | import org.elasticsearch.common.settings.Settings;
|
44 | 36 | import org.elasticsearch.common.settings.SettingsFilter;
|
45 | 37 | import org.elasticsearch.common.unit.ByteSizeUnit;
|
46 | 38 | import org.elasticsearch.common.unit.ByteSizeValue;
|
47 |
| -import org.elasticsearch.core.TimeValue; |
| 39 | +import org.elasticsearch.common.util.concurrent.EsExecutors; |
48 | 40 | import org.elasticsearch.common.xcontent.NamedXContentRegistry;
|
49 | 41 | import org.elasticsearch.common.xcontent.XContentBuilder;
|
| 42 | +import org.elasticsearch.core.Nullable; |
| 43 | +import org.elasticsearch.core.Releasables; |
| 44 | +import org.elasticsearch.core.TimeValue; |
50 | 45 | import org.elasticsearch.env.Environment;
|
51 | 46 | import org.elasticsearch.env.NodeEnvironment;
|
52 | 47 | import org.elasticsearch.index.IndexModule;
|
|
55 | 50 | import org.elasticsearch.index.engine.EngineFactory;
|
56 | 51 | import org.elasticsearch.index.engine.FrozenEngine;
|
57 | 52 | import org.elasticsearch.index.engine.ReadOnlyEngine;
|
58 |
| -import org.elasticsearch.xpack.searchablesnapshots.rest.RestSearchableSnapshotsNodeCachesStatsAction; |
59 |
| -import org.elasticsearch.xpack.searchablesnapshots.store.SearchableSnapshotDirectory; |
60 | 53 | import org.elasticsearch.index.store.Store;
|
61 | 54 | import org.elasticsearch.index.translog.Translog;
|
62 | 55 | import org.elasticsearch.index.translog.TranslogStats;
|
|
71 | 64 | import org.elasticsearch.plugins.SystemIndexPlugin;
|
72 | 65 | import org.elasticsearch.repositories.RepositoriesService;
|
73 | 66 | import org.elasticsearch.repositories.Repository;
|
| 67 | +import org.elasticsearch.repositories.RepositoryData; |
74 | 68 | import org.elasticsearch.repositories.blobstore.BlobStoreRepository;
|
75 | 69 | import org.elasticsearch.rest.RestController;
|
76 | 70 | import org.elasticsearch.rest.RestHandler;
|
77 | 71 | import org.elasticsearch.script.ScriptService;
|
78 |
| -import org.elasticsearch.snapshots.SourceOnlySnapshotRepository; |
| 72 | +import org.elasticsearch.snapshots.sourceonly.SourceOnlySnapshotRepository; |
79 | 73 | import org.elasticsearch.threadpool.ExecutorBuilder;
|
80 | 74 | import org.elasticsearch.threadpool.ScalingExecutorBuilder;
|
81 | 75 | import org.elasticsearch.threadpool.ThreadPool;
|
|
86 | 80 | import org.elasticsearch.xpack.core.searchablesnapshots.MountSearchableSnapshotAction;
|
87 | 81 | import org.elasticsearch.xpack.core.searchablesnapshots.MountSearchableSnapshotRequest;
|
88 | 82 | import org.elasticsearch.xpack.core.searchablesnapshots.SearchableSnapshotsFeatureSet;
|
| 83 | +import org.elasticsearch.xpack.core.searchablesnapshots.SearchableSnapshotsConstants; |
89 | 84 | import org.elasticsearch.xpack.searchablesnapshots.action.ClearSearchableSnapshotsCacheAction;
|
90 | 85 | import org.elasticsearch.xpack.searchablesnapshots.action.RepositoryStatsAction;
|
91 | 86 | import org.elasticsearch.xpack.searchablesnapshots.action.SearchableSnapshotsStatsAction;
|
|
96 | 91 | import org.elasticsearch.xpack.searchablesnapshots.action.cache.FrozenCacheInfoAction;
|
97 | 92 | import org.elasticsearch.xpack.searchablesnapshots.action.cache.FrozenCacheInfoNodeAction;
|
98 | 93 | import org.elasticsearch.xpack.searchablesnapshots.action.cache.TransportSearchableSnapshotCacheStoresAction;
|
| 94 | +import org.elasticsearch.xpack.searchablesnapshots.action.cache.TransportSearchableSnapshotsNodeCachesStatsAction; |
99 | 95 | import org.elasticsearch.xpack.searchablesnapshots.allocation.FailShardsOnInvalidLicenseClusterListener;
|
100 | 96 | import org.elasticsearch.xpack.searchablesnapshots.allocation.SearchableSnapshotAllocator;
|
101 | 97 | import org.elasticsearch.xpack.searchablesnapshots.allocation.SearchableSnapshotIndexEventListener;
|
102 | 98 | import org.elasticsearch.xpack.searchablesnapshots.allocation.SearchableSnapshotIndexFoldersDeletionListener;
|
| 99 | +import org.elasticsearch.xpack.searchablesnapshots.allocation.decider.DedicatedFrozenNodeAllocationDecider; |
103 | 100 | import org.elasticsearch.xpack.searchablesnapshots.allocation.decider.HasFrozenCacheAllocationDecider;
|
104 | 101 | import org.elasticsearch.xpack.searchablesnapshots.allocation.decider.SearchableSnapshotAllocationDecider;
|
105 | 102 | import org.elasticsearch.xpack.searchablesnapshots.allocation.decider.SearchableSnapshotEnableAllocationDecider;
|
| 103 | +import org.elasticsearch.xpack.searchablesnapshots.allocation.decider.SearchableSnapshotRepositoryExistsAllocationDecider; |
| 104 | +import org.elasticsearch.xpack.searchablesnapshots.cache.blob.BlobStoreCacheService; |
106 | 105 | import org.elasticsearch.xpack.searchablesnapshots.cache.full.CacheService;
|
107 | 106 | import org.elasticsearch.xpack.searchablesnapshots.cache.full.PersistentCache;
|
108 | 107 | import org.elasticsearch.xpack.searchablesnapshots.cache.shared.FrozenCacheInfoService;
|
|
111 | 110 | import org.elasticsearch.xpack.searchablesnapshots.rest.RestClearSearchableSnapshotsCacheAction;
|
112 | 111 | import org.elasticsearch.xpack.searchablesnapshots.rest.RestMountSearchableSnapshotAction;
|
113 | 112 | import org.elasticsearch.xpack.searchablesnapshots.rest.RestRepositoryStatsAction;
|
| 113 | +import org.elasticsearch.xpack.searchablesnapshots.rest.RestSearchableSnapshotsNodeCachesStatsAction; |
114 | 114 | import org.elasticsearch.xpack.searchablesnapshots.rest.RestSearchableSnapshotsStatsAction;
|
| 115 | +import org.elasticsearch.xpack.searchablesnapshots.store.SearchableSnapshotDirectory; |
115 | 116 | import org.elasticsearch.xpack.searchablesnapshots.upgrade.SearchableSnapshotIndexMetadataUpgrader;
|
116 | 117 |
|
117 | 118 | import java.io.IOException;
|
|
0 commit comments