@Override public void dump(Appendable out, String indent) throws IOException { Dumpable.dumpObjects(out, indent, this, enabled, disabled); }
/** Dump this object, it's contained beans and additional items to an Appendable * @param out The appendable to dump to * @param indent The indent to apply after any new lines * @param items Additional items to be dumped as contained. * @throws IOException May be thrown by the Appendable */ protected void dumpObjects(Appendable out, String indent, Object... items) throws IOException { Dumpable.dumpObjects(out,indent,this, items); }
@Override public void dump(Appendable out, String indent) throws IOException { Object[] array = _collection.toArray(); Dumpable.dumpObjects(out,indent,_name + " size="+array.length, array); } }
@Override public void dump(Appendable out, String indent) throws IOException { String s = thread.getId()+" "+thread.getName()+" "+thread.getState()+" "+thread.getPriority(); if (known.length()==0) Dumpable.dumpObjects(out, indent, s, (Object[])trace); else Dumpable.dumpObjects(out, indent, s); }
@Override public void dump(Appendable out, String indent) throws IOException { Thread thread = this.thread; if (thread == null) Dumpable.dumpObject(out, this); else Dumpable.dumpObjects(out,indent,this, (Object[])thread.getStackTrace()); }
@Override public void dump(Appendable out, String indent) throws IOException { Object[] array = toArray(); Dumpable.dumpObjects(out, indent, caption + " size="+array.length, array); } }
@Override public void dump(Appendable out, String indent) throws IOException { Dumpable.dumpObjects(out,indent,String.format("%s@%x",this.getClass().getSimpleName(),hashCode()),map()); } }
@Deprecated public static void dump(Appendable out, String indent, Collection<?>... collections) throws IOException { if (collections.length == 0) return; int size = 0; for (Collection<?> c : collections) size += c.size(); if (size == 0) return; int i = 0; for (Collection<?> c : collections) { for (Object o : c) { i++; out.append(indent).append(" +- "); Dumpable.dumpObjects(out,indent + (i<size ? " | " : " "), o); } } }
((Dumpable)bean).dump(out,nextIndent); else dumpObjects(out, nextIndent, bean); ((Dumpable)bean).dump(out,nextIndent); else dumpObjects(out, nextIndent, bean); ((Dumpable)bean).dump(out,nextIndent); else dumpObjects(out, nextIndent, bean); ((Dumpable)item).dump(out,nextIndent); else dumpObjects(out,nextIndent, item); ((Dumpable)item).dump(out,nextIndent); else dumpObjects(out,nextIndent, item); ((Dumpable)item).dump(out,nextIndent); else dumpObjects(out, nextIndent, item);
@Override public void dump(Appendable out, String indent) throws IOException { try { SSLEngine sslEngine = SSLContext.getDefault().createSSLEngine(); Dumpable.dumpObjects(out, indent, this, "trustAll=" + _trustAll, new SslSelectionDump("Protocol", sslEngine.getSupportedProtocols(), sslEngine.getEnabledProtocols(), getExcludeProtocols(), getIncludeProtocols()), new SslSelectionDump("Cipher Suite", sslEngine.getSupportedCipherSuites(), sslEngine.getEnabledCipherSuites(), getExcludeCipherSuites(), getIncludeCipherSuites())); } catch (NoSuchAlgorithmException ignore) { LOG.ignore(ignore); } }
@Override public void dump(Appendable out, String indent) throws IOException { Dumpable.dumpObjects(out, indent, this, handlers); } }
@Override public void dump(Appendable out, String indent) throws IOException { Dumpable.dumpObjects(out,indent,this,configuration); }
protected void dump(Appendable out, String indent, Object... items) throws IOException { Dumpable.dumpObjects(out, indent, this, items); }
@Override public void dump(Appendable out, String indent) throws IOException { Dumpable.dumpObjects(out, indent, this, _mbeans.entrySet()); }
@Override public void dump(Appendable out, String indent) throws IOException { List<Entry> connections; synchronized (this) { connections = new ArrayList<>(entries); } Dumpable.dumpObjects(out, indent, out, connections); }
@Override public void dump(Appendable out, String indent) throws IOException { Dumpable.dumpObjects(out, indent, toString(), _mappings); }
@Override public void dump(Appendable out, String indent) throws IOException { Dumpable.dumpObjects(out,indent,this, String.format("connections=%s", _connections), String.format("durations=%s", _connectionsDuration), String.format("bytes in/out=%s/%s", getReceivedBytes(), getSentBytes()), String.format("messages in/out=%s/%s", getReceivedMessages(), getSentMessages())); }
@Override public void dump(Appendable out, String indent) throws IOException { DumpableCollection busy; DumpableCollection muxed; DumpableCollection idle; lock(); try { busy = new DumpableCollection("busy", new ArrayList<>(busyConnections.values())); muxed = new DumpableCollection("muxed", new ArrayList<>(muxedConnections.values())); idle = new DumpableCollection("idle", new ArrayList<>(idleConnections)); } finally { unlock(); } Dumpable.dumpObjects(out, indent, this, busy, muxed, idle); }