diff options
Diffstat (limited to 'jdisc_core/src/main/java/com/yahoo/jdisc')
3 files changed, 11 insertions, 9 deletions
diff --git a/jdisc_core/src/main/java/com/yahoo/jdisc/AbstractResource.java b/jdisc_core/src/main/java/com/yahoo/jdisc/AbstractResource.java index b561f08af92..05c3582a541 100644 --- a/jdisc_core/src/main/java/com/yahoo/jdisc/AbstractResource.java +++ b/jdisc_core/src/main/java/com/yahoo/jdisc/AbstractResource.java @@ -63,9 +63,8 @@ public abstract class AbstractResource implements SharedResource { activeReferences.add(referenceStack); state = currentStateDebugWithLock(); } - log.log(Level.WARNING, - getClass().getName() + "@" + System.identityHashCode(this) + ".refer(): state={ " + state + " }", - referenceStack); + log.log(Level.FINE, referenceStack, () -> + getClass().getName() + "@" + System.identityHashCode(this) + ".refer(): state={ " + state + " }"); return new DebugResourceReference(this, referenceStack); } @@ -87,9 +86,8 @@ public abstract class AbstractResource implements SharedResource { } doDestroy = activeReferences.isEmpty(); } - log.log(Level.WARNING, - getClass().getName() + "@" + System.identityHashCode(this) + " release: state={ " + state + " }", - releaseStack); + log.log(Level.FINE, releaseStack, + () ->getClass().getName() + "@" + System.identityHashCode(this) + " release: state={ " + state + " }"); if (doDestroy) { destroy(); } diff --git a/jdisc_core/src/main/java/com/yahoo/jdisc/service/ClientProvider.java b/jdisc_core/src/main/java/com/yahoo/jdisc/service/ClientProvider.java index c178147a952..a47c6b06321 100644 --- a/jdisc_core/src/main/java/com/yahoo/jdisc/service/ClientProvider.java +++ b/jdisc_core/src/main/java/com/yahoo/jdisc/service/ClientProvider.java @@ -2,7 +2,11 @@ package com.yahoo.jdisc.service; import com.yahoo.jdisc.Container; -import com.yahoo.jdisc.application.*; +import com.yahoo.jdisc.application.BindingRepository; +import com.yahoo.jdisc.application.ContainerActivator; +import com.yahoo.jdisc.application.ContainerBuilder; +import com.yahoo.jdisc.application.Application; +import com.yahoo.jdisc.application.UriPattern; import com.yahoo.jdisc.handler.RequestHandler; /** diff --git a/jdisc_core/src/main/java/com/yahoo/jdisc/service/ServerProvider.java b/jdisc_core/src/main/java/com/yahoo/jdisc/service/ServerProvider.java index b58f3bc5138..3b5cbfd9cbc 100644 --- a/jdisc_core/src/main/java/com/yahoo/jdisc/service/ServerProvider.java +++ b/jdisc_core/src/main/java/com/yahoo/jdisc/service/ServerProvider.java @@ -37,7 +37,7 @@ public interface ServerProvider extends SharedResource { * {@link Container} does <em>not</em> call this method, instead it is a required step in the {@link Application} * initialization code.</p> */ - public void start(); + void start(); /** * <p>This is a synchronous method to close the listen port (or equivalent) of this ServerProvider and flush any @@ -48,5 +48,5 @@ public interface ServerProvider extends SharedResource { * <p>The {@link Container} does <em>not</em> call this method, instead it is a required step in the {@link * Application} shutdown code.</p> */ - public void close(); + void close(); } |