Elffuss BraidHub

kikocis/java-driver public

JAVA-1245 Remove LifecycleAwareLatencyTracker (#711)

This was a merge error, we don't need this interface in 3.0 since
LatencyTracker already has the appropriate methods.

No changelog entry since this bug didn't make it to any released
version.
Changesetd66ff12cdb1a81e6aa158fd91003a426ebbad6c8817ddc792b16ef09541c2ac6
AuthorOlivier Michallat <olim7t@users.noreply.github.com> · 2016-07-18 09:43 -07:00
CommitterGitHub <noreply@github.com> · 2016-07-18 09:43 -07:00
Parentsa9bf8f24e394

Browse the files at this changeset

3 files changed

deleted driver-core/src/main/java/com/datastax/driver/core/LifecycleAwareLatencyTracker.java +0 −41
@@ -1,41 +0,0 @@
1-/*
2- * Copyright (C) 2012-2015 DataStax Inc.
3- *
4- * Licensed under the Apache License, Version 2.0 (the "License");
5- * you may not use this file except in compliance with the License.
6- * You may obtain a copy of the License at
7- *
8- * http://www.apache.org/licenses/LICENSE-2.0
9- *
10- * Unless required by applicable law or agreed to in writing, software
11- * distributed under the License is distributed on an "AS IS" BASIS,
12- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13- * See the License for the specific language governing permissions and
14- * limitations under the License.
15- */
16-package com.datastax.driver.core;
17-
18-/**
19- * A {@code LatencyTracker} that tracks when it gets registered or unregistered with a cluster.
20- * <p/>
21- * This interface exists only for backward-compatibility reasons: starting with the 3.0 branch of the driver, its
22- * methods are on the parent interface directly.
23- */
24-public interface LifecycleAwareLatencyTracker extends LatencyTracker {
25- /**
26- * Gets invoked when the tracker is registered with a cluster, or at cluster startup if the
27- * tracker was registered at initialization with
28- * {@link com.datastax.driver.core.Cluster.Initializer#register(LatencyTracker)}.
29- *
30- * @param cluster the cluster that this tracker is registered with.
31- */
32- void onRegister(Cluster cluster);
33-
34- /**
35- * Gets invoked when the tracker is unregistered from a cluster, or at cluster shutdown if
36- * the tracker was not unregistered.
37- *
38- * @param cluster the cluster that this tracker was registered with.
39- */
40- void onUnregister(Cluster cluster);
41-}
modified driver-core/src/main/java/com/datastax/driver/core/PercentileTracker.java +1 −1
@@ -48,7 +48,7 @@
4848 * time the cached histogram becomes older than the interval, the two histograms are switched. Statistics will not be
4949 * available during the first interval at cluster startup, since we don't have a cached histogram yet.
5050 */
51-public abstract class PercentileTracker implements LifecycleAwareLatencyTracker {
51+public abstract class PercentileTracker implements LatencyTracker {
5252 private static final Logger logger = LoggerFactory.getLogger(PercentileTracker.class);
5353
5454 private final long highestTrackableLatencyMillis;
modified driver-core/src/main/java/com/datastax/driver/core/QueryLogger.java +1 −1
@@ -88,7 +88,7 @@
8888 *
8989 * @since 2.0.10
9090 */
91-public abstract class QueryLogger implements LifecycleAwareLatencyTracker {
91+public abstract class QueryLogger implements LatencyTracker {
9292
9393 /**
9494 * The default latency threshold in milliseconds beyond which queries are considered 'slow'