Issue #3242 - Post-review cleanup of WebSocket dump

Signed-off-by: Joakim Erdfelt <joakim.erdfelt@gmail.com>
This commit is contained in:
Joakim Erdfelt 2019-01-11 10:16:46 -06:00
parent aad5e97336
commit 478e5ac593
3 changed files with 4 additions and 5 deletions

View File

@ -279,7 +279,7 @@ public class WebSocketSession extends ContainerLifeCycle implements Session, Rem
@Override
public String dumpSelf() {
return String.format("%s@%x[behavior=%s,batchMode=%s,idleTimeout=%,d,requestURI=%s]",
return String.format("%s@%x[behavior=%s,batchMode=%s,idleTimeout=%d,requestURI=%s]",
this.getClass().getSimpleName(), hashCode(),
getPolicy().getBehavior(),
getBatchMode(),

View File

@ -110,7 +110,7 @@ public class ExtensionStack extends ContainerLifeCycle implements IncomingFrames
@Override
public String dumpSelf() {
return String.format("ExtensionStack%x [size=%d]", hashCode(), extensions.size());
return String.format("%s@%x[size=%d,queueSize=%d]", getClass().getSimpleName(), hashCode(), extensions.size(), getQueueSize());
}
@ManagedAttribute(name = "Extension List", readonly = true)

View File

@ -337,9 +337,8 @@ public class FrameFlusher extends IteratingCallback
ByteBuffer agg = aggregate;
if (agg != null)
aggSize = agg.position();
return String.format("%s@%x[queueSize=%d,aggregateSize=%d,terminated=%s]",
getClass().getSimpleName(),
hashCode(),
return String.format("%s[queueSize=%d,aggregateSize=%d,terminated=%s]",
super.toString(),
getQueueSize(),
aggSize,
terminated);