kikocis/java-driver public
Changesets · Branches · Tags · Compare
| Changeset | d66ff12cdb1a81e6aa158fd91003a426ebbad6c8817ddc792b16ef09541c2ac6 |
|---|---|
| Author | Olivier Michallat <olim7t@users.noreply.github.com> · 2016-07-18 09:43 -07:00 |
| Committer | GitHub <noreply@github.com> · 2016-07-18 09:43 -07:00 |
| Parents | a9bf8f24e394 |
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 @@ | ||
| 48 | 48 | * time the cached histogram becomes older than the interval, the two histograms are switched. Statistics will not be |
| 49 | 49 | * available during the first interval at cluster startup, since we don't have a cached histogram yet. |
| 50 | 50 | */ |
| 51 | -public abstract class PercentileTracker implements LifecycleAwareLatencyTracker { | |
| 51 | +public abstract class PercentileTracker implements LatencyTracker { | |
| 52 | 52 | private static final Logger logger = LoggerFactory.getLogger(PercentileTracker.class); |
| 53 | 53 | |
| 54 | 54 | private final long highestTrackableLatencyMillis; |
modified driver-core/src/main/java/com/datastax/driver/core/QueryLogger.java +1 −1
| @@ -88,7 +88,7 @@ | ||
| 88 | 88 | * |
| 89 | 89 | * @since 2.0.10 |
| 90 | 90 | */ |
| 91 | -public abstract class QueryLogger implements LifecycleAwareLatencyTracker { | |
| 91 | +public abstract class QueryLogger implements LatencyTracker { | |
| 92 | 92 | |
| 93 | 93 | /** |
| 94 | 94 | * The default latency threshold in milliseconds beyond which queries are considered 'slow' |