@Override public void dump(Appendable out, String indent) throws IOException { List<String> system_classes=null; if (_systemClasses!=null) { system_classes=new ArrayList<>(_systemClasses); Collections.sort(system_classes); } List<String> server_classes=null; if (_serverClasses!=null) { server_classes=new ArrayList<>(_serverClasses); Collections.sort(server_classes); } dumpObjects(out,indent, new ClassLoaderDump(getClassLoader()), new DumpableCollection("Systemclasses "+this,system_classes), new DumpableCollection("Serverclasses "+this,server_classes), new DumpableCollection("Configurations "+this,_configurations), new DumpableCollection("Handler attributes "+this,((AttributesMap)getAttributes()).getAttributeEntrySet()), new DumpableCollection("Context attributes "+this,((Context)getServletContext()).getAttributeEntrySet()), new DumpableCollection("Initparams "+this,getInitParams().entrySet()) ); }
public static DumpableCollection from(String name, Object... items) { return new DumpableCollection(name,items==null?Collections.emptyList():Arrays.asList(items)); }
public static DumpableCollection fromArray(String name, Object[] array) { return new DumpableCollection(name,array==null?Collections.emptyList():Arrays.asList(array)); }
if (isDetailedDump()) jobs = new ArrayList<>(_executor.getQueue()); dumpObjects(out, indent, threads, new DumpableCollection("jobs", jobs));
dumpObjects(out, indent, new DumpableCollection("threads", threads), new DumpableCollection("jobs", jobs)); dumpObjects(out, indent, new DumpableCollection("threads", threads));
@Override public void dump(Appendable out, String indent) throws IOException { dumpObjects(out, indent, new DumpableCollection("streams", streams.values())); }
@Override public void dump(Appendable out, String indent) throws IOException { dumpObjects(out, indent, new DumpableCollection("exchanges", exchanges)); }
@Override public void dump(Appendable out, String indent) throws IOException { dumpObjects(out, indent, new DumpableCollection("requestListeners", requestListeners)); }
@Override protected void dump(Appendable out, String indent, Object... items) throws IOException { DumpableCollection toDump = new DumpableCollection("quarantine", quarantine.values()); super.dump(out, indent, Stream.concat(Stream.of(items), Stream.of(toDump))); }
@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); }
@Override public void dump(Appendable out, String indent) throws IOException { super.dump(out, indent); dump(out, indent, Collections.singleton(new DumpableCollection("streams", streams.values()))); }
@Override public void dump(Appendable out, String indent) throws IOException { DumpableCollection active; DumpableCollection idle; lock(); try { active = new DumpableCollection("active",new ArrayList<>(activeConnections)); idle = new DumpableCollection("idle",new ArrayList<>(idleConnections)); } finally { unlock(); } dump(out, indent, active, idle); }
@Override public void dump(Appendable out, String indent) throws IOException { dumpBeans(out,indent, Collections.singletonList(new ClassLoaderDump(getClassLoader())), Collections.singletonList(new DumpableCollection("Handler attributes "+this,((AttributesMap)getAttributes()).getAttributeEntrySet())), Collections.singletonList(new DumpableCollection("Context attributes "+this,((Context)getServletContext()).getAttributeEntrySet())), Collections.singletonList(new DumpableCollection("Initparams "+this,getInitParams().entrySet())) ); }
@Override public void dump(Appendable out, String indent) throws IOException { dumpBeans(out,indent,Collections.singletonList(new ClassLoaderDump(getClassLoader())), Collections.singletonList(new DumpableCollection("Handler attributes " + this,((AttributesMap)getAttributes()).getAttributeEntrySet())), Collections.singletonList(new DumpableCollection("Context attributes " + this,((Context)getServletContext()).getAttributeEntrySet())), Collections.singletonList(new DumpableCollection("Initparams " + this,getInitParams().entrySet()))); }
@Override public void dump(Appendable out, String indent) throws IOException { List<String> system_classes=null; if (_systemClasses!=null) { system_classes=new ArrayList<>(_systemClasses); Collections.sort(system_classes); } List<String> server_classes=null; if (_serverClasses!=null) { server_classes=new ArrayList<>(_serverClasses); Collections.sort(server_classes); } dumpBeans(out,indent, Collections.singletonList(new ClassLoaderDump(getClassLoader())), Collections.singletonList(new DumpableCollection("Systemclasses "+this,system_classes)), Collections.singletonList(new DumpableCollection("Serverclasses "+this,server_classes)), Collections.singletonList(new DumpableCollection("Configurations "+this,_configurations)), Collections.singletonList(new DumpableCollection("Handler attributes "+this,((AttributesMap)getAttributes()).getAttributeEntrySet())), Collections.singletonList(new DumpableCollection("Context attributes "+this,((Context)getServletContext()).getAttributeEntrySet())), Collections.singletonList(new DumpableCollection("Initparams "+this,getInitParams().entrySet())) ); }
if (isDetailedDump()) jobs = new ArrayList<>(_executor.getQueue()); dumpBeans(out, indent, threads, Collections.singletonList(new DumpableCollection("jobs - size=" + jobs.size(), jobs)));
new DumpableCollection("updates @ "+updatesAt, updates), new DumpableCollection("keys @ "+keysAt, keys));
if (keys==null) keys = Collections.singletonList("No dump keys retrieved"); dumpBeans(out, indent, Arrays.asList(new DumpableCollection("updates @ "+updatesAt, updates), new DumpableCollection("keys @ "+keysAt, keys)));
jobs = new ArrayList<>(getQueue()); dumpBeans(out, indent, threads, Collections.singletonList(new DumpableCollection("jobs - size=" + jobs.size(), jobs)));