|
28 | 28 | import org.elasticsearch.cluster.ClusterStateTaskListener; |
29 | 29 | import org.elasticsearch.cluster.LocalNodeMasterListener; |
30 | 30 | import org.elasticsearch.cluster.NodeConnectionsService; |
31 | | -import org.elasticsearch.cluster.TimeoutClusterStateListener; |
32 | 31 | import org.elasticsearch.cluster.node.DiscoveryNode; |
33 | 32 | import org.elasticsearch.cluster.routing.OperationRouting; |
34 | | -import org.elasticsearch.common.Nullable; |
35 | 33 | import org.elasticsearch.common.component.AbstractLifecycleComponent; |
36 | 34 | import org.elasticsearch.common.settings.ClusterSettings; |
37 | 35 | import org.elasticsearch.common.settings.Setting; |
@@ -177,37 +175,13 @@ public void removeListener(ClusterStateListener listener) { |
177 | 175 | clusterApplierService.removeListener(listener); |
178 | 176 | } |
179 | 177 |
|
180 | | - /** |
181 | | - * Removes a timeout listener for updated cluster states. |
182 | | - */ |
183 | | - public void removeTimeoutListener(TimeoutClusterStateListener listener) { |
184 | | - clusterApplierService.removeTimeoutListener(listener); |
185 | | - } |
186 | | - |
187 | 178 | /** |
188 | 179 | * Add a listener for on/off local node master events |
189 | 180 | */ |
190 | 181 | public void addLocalNodeMasterListener(LocalNodeMasterListener listener) { |
191 | 182 | clusterApplierService.addLocalNodeMasterListener(listener); |
192 | 183 | } |
193 | 184 |
|
194 | | - /** |
195 | | - * Remove the given listener for on/off local master events |
196 | | - */ |
197 | | - public void removeLocalNodeMasterListener(LocalNodeMasterListener listener) { |
198 | | - clusterApplierService.removeLocalNodeMasterListener(listener); |
199 | | - } |
200 | | - |
201 | | - /** |
202 | | - * Adds a cluster state listener that is expected to be removed during a short period of time. |
203 | | - * If provided, the listener will be notified once a specific time has elapsed. |
204 | | - * |
205 | | - * NOTE: the listener is not removed on timeout. This is the responsibility of the caller. |
206 | | - */ |
207 | | - public void addTimeoutListener(@Nullable final TimeValue timeout, final TimeoutClusterStateListener listener) { |
208 | | - clusterApplierService.addTimeoutListener(timeout, listener); |
209 | | - } |
210 | | - |
211 | 185 | public MasterService getMasterService() { |
212 | 186 | return masterService; |
213 | 187 | } |
|
0 commit comments