Skip to content
This repository was archived by the owner on May 28, 2018. It is now read-only.

Commit 85bdd94

Browse files
committed
Put files inspired by Dropwizard Metrics into a separate package with Apache License
Change-Id: I15b2981894b4aa9e974ee64bb06b840f65642a2c
1 parent 88c6d7d commit 85bdd94

22 files changed

+264
-511
lines changed

core-server/src/main/java/org/glassfish/jersey/server/internal/monitoring/AbstractTimeSnapshot.java

Lines changed: 0 additions & 77 deletions
This file was deleted.

core-server/src/main/java/org/glassfish/jersey/server/internal/monitoring/AggregatedSlidingWindowTimeReservoir.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*
22
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
33
*
4-
* Copyright (c) 2015-2017 Oracle and/or its affiliates. All rights reserved.
4+
* Copyright (c) 2015-2018 Oracle and/or its affiliates. All rights reserved.
55
*
66
* The contents of this file are subject to the terms of either the GNU
77
* General Public License Version 2 only ("GPL") or the Common Development
@@ -40,6 +40,9 @@
4040

4141
package org.glassfish.jersey.server.internal.monitoring;
4242

43+
import org.glassfish.jersey.server.internal.monitoring.core.AbstractSlidingWindowTimeReservoir;
44+
import org.glassfish.jersey.server.internal.monitoring.core.UniformTimeSnapshot;
45+
4346
import java.util.Collection;
4447
import java.util.concurrent.TimeUnit;
4548

core-server/src/main/java/org/glassfish/jersey/server/internal/monitoring/AggregatingTrimmer.java

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*
22
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
33
*
4-
* Copyright (c) 2015-2017 Oracle and/or its affiliates. All rights reserved.
4+
* Copyright (c) 2015-2018 Oracle and/or its affiliates. All rights reserved.
55
*
66
* The contents of this file are subject to the terms of either the GNU
77
* General Public License Version 2 only ("GPL") or the Common Development
@@ -51,8 +51,10 @@
5151
import java.util.concurrent.atomic.AtomicBoolean;
5252

5353
import org.glassfish.jersey.internal.guava.TreeMultimap;
54+
import org.glassfish.jersey.server.internal.monitoring.core.SlidingWindowTrimmer;
55+
import org.glassfish.jersey.server.internal.monitoring.core.TimeReservoir;
5456

55-
import static org.glassfish.jersey.server.internal.monitoring.ReservoirConstants.COLLISION_BUFFER_POWER;
57+
import static org.glassfish.jersey.server.internal.monitoring.core.ReservoirConstants.COLLISION_BUFFER_POWER;
5658

5759
/**
5860
* An aggregating trimmer for sliding window measurements. This trimmer updates registered time reservoirs with the aggregated

core-server/src/main/java/org/glassfish/jersey/server/internal/monitoring/ExecutionStatisticsImpl.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*
22
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
33
*
4-
* Copyright (c) 2013-2017 Oracle and/or its affiliates. All rights reserved.
4+
* Copyright (c) 2013-2018 Oracle and/or its affiliates. All rights reserved.
55
*
66
* The contents of this file are subject to the terms of either the GNU
77
* General Public License Version 2 only ("GPL") or the Common Development
@@ -48,6 +48,7 @@
4848
import java.util.Map;
4949
import java.util.concurrent.TimeUnit;
5050

51+
import org.glassfish.jersey.server.internal.monitoring.core.UniformTimeReservoir;
5152
import org.glassfish.jersey.server.monitoring.ExecutionStatistics;
5253
import org.glassfish.jersey.server.monitoring.TimeWindowStatistics;
5354

core-server/src/main/java/org/glassfish/jersey/server/internal/monitoring/ReservoirConstants.java

Lines changed: 0 additions & 68 deletions
This file was deleted.

core-server/src/main/java/org/glassfish/jersey/server/internal/monitoring/SlidingWindowTimeReservoir.java

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*
22
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
33
*
4-
* Copyright (c) 2015-2017 Oracle and/or its affiliates. All rights reserved.
4+
* Copyright (c) 2015-2018 Oracle and/or its affiliates. All rights reserved.
55
*
66
* The contents of this file are subject to the terms of either the GNU
77
* General Public License Version 2 only ("GPL") or the Common Development
@@ -40,6 +40,11 @@
4040

4141
package org.glassfish.jersey.server.internal.monitoring;
4242

43+
import org.glassfish.jersey.server.internal.monitoring.core.AbstractSlidingWindowTimeReservoir;
44+
import org.glassfish.jersey.server.internal.monitoring.core.SlidingWindowTrimmer;
45+
import org.glassfish.jersey.server.internal.monitoring.core.UniformTimeSnapshot;
46+
import org.glassfish.jersey.server.internal.monitoring.core.UniformTimeValuesSnapshot;
47+
4348
import java.util.Collection;
4449
import java.util.concurrent.TimeUnit;
4550

core-server/src/main/java/org/glassfish/jersey/server/internal/monitoring/SlidingWindowTrimmer.java

Lines changed: 0 additions & 64 deletions
This file was deleted.

core-server/src/main/java/org/glassfish/jersey/server/internal/monitoring/TimeWindowStatisticsImpl.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*
22
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
33
*
4-
* Copyright (c) 2013-2017 Oracle and/or its affiliates. All rights reserved.
4+
* Copyright (c) 2013-2018 Oracle and/or its affiliates. All rights reserved.
55
*
66
* The contents of this file are subject to the terms of either the GNU
77
* General Public License Version 2 only ("GPL") or the Common Development
@@ -43,6 +43,8 @@
4343
import java.util.concurrent.ConcurrentHashMap;
4444
import java.util.concurrent.TimeUnit;
4545

46+
import org.glassfish.jersey.server.internal.monitoring.core.TimeReservoir;
47+
import org.glassfish.jersey.server.internal.monitoring.core.UniformTimeSnapshot;
4648
import org.glassfish.jersey.server.monitoring.TimeWindowStatistics;
4749

4850
/**

core-server/src/main/java/org/glassfish/jersey/server/internal/monitoring/UniformTimeSimpleSnapshot.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*
22
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
33
*
4-
* Copyright (c) 2015-2017 Oracle and/or its affiliates. All rights reserved.
4+
* Copyright (c) 2015-2018 Oracle and/or its affiliates. All rights reserved.
55
*
66
* The contents of this file are subject to the terms of either the GNU
77
* General Public License Version 2 only ("GPL") or the Common Development
@@ -41,6 +41,7 @@
4141
package org.glassfish.jersey.server.internal.monitoring;
4242

4343
import java.util.concurrent.TimeUnit;
44+
import org.glassfish.jersey.server.internal.monitoring.core.AbstractTimeSnapshot;
4445

4546
/**
4647
* A statistical snapshot of a {@link UniformTimeSimpleSnapshot}.

0 commit comments

Comments
 (0)