/** * Dump this object to an Appendable with no indent. * @param out The appendable to dump to. * @throws IOException May be thrown by the Appendable */ public void dump(Appendable out) throws IOException { dump(out, ""); }
@Override public void dump(Appendable out, String indent) throws IOException { ContainerLifeCycle.dumpObject(out,this); ContainerLifeCycle.dump(out,indent,Arrays.asList(new String[]{"connections="+_connectionStats,"duration="+_connectionDurationStats,"in="+_messagesIn,"out="+_messagesOut})); }
@Override public void dump(Appendable out, String indent) throws IOException { ContainerLifeCycle.dumpObject(out,this); ContainerLifeCycle.dump(out, indent, _beans.entrySet()); }
/** * @param out The appendable to dump to * @param indent The indent to apply after any new lines * @param items Additional collections to be dumped * @throws IOException May be thrown by the Appendable * @deprecated use {@link #dumpObjects(Appendable, String, Object...)} */ @Deprecated protected void dumpBeans(Appendable out, String indent, Collection<?>... items) throws IOException { dump(out, indent, items); }
@Override public void dump(Appendable out, String indent) throws IOException { ContainerLifeCycle.dumpObject(out, this + " - requests queued: " + exchanges.size()); List<String> connections = new ArrayList<>(); for (Connection connection : idleConnections) connections.add(connection + " - IDLE"); for (Connection connection : activeConnections) connections.add(connection + " - ACTIVE"); ContainerLifeCycle.dump(out, indent, connections); }
/** * Dumps to {@link System#err}. * @see #dump() */ @ManagedOperation("Dump the object to stderr") public void dumpStdErr() { try { dump(System.err, ""); System.err.println(Dumpable.KEY); } catch (IOException e) { LOG.warn(e); } }
@Override public void dump(Appendable out, String indent) throws IOException { Set<String> channels = _channels.keySet(); ContainerLifeCycle.dumpObject(out, "channels: " + channels.size()); if (isDetailedDump()) { ContainerLifeCycle.dump(out, indent, new TreeSet<>(channels)); } } });
@Override public String dump() { return ContainerLifeCycle.dump(this); }
@Override public void dump(Appendable out, String indent) throws IOException { List<ServerSessionListener> listeners = getListeners(); ContainerLifeCycle.dumpObject(out, "listeners: " + listeners.size()); if (_bayeux.isDetailedDump()) { ContainerLifeCycle.dump(out, indent, listeners); } } });
@Override public String dump() { return ContainerLifeCycle.dump(this); }
@Override public void dump(Appendable out, String indent) throws IOException { Set<ServerSession> subscribers = getSubscribers(); ContainerLifeCycle.dumpObject(out, "subscribers: " + subscribers.size()); if (_bayeux.isDetailedDump()) { ContainerLifeCycle.dump(out, indent, subscribers); } } });
@Override public String dump() { return ContainerLifeCycle.dump(this); }
public String dump() { return ContainerLifeCycle.dump(this); } }
public String dump() { return ContainerLifeCycle.dump(this); } }
@Override public void dump(Appendable out, String indent) throws IOException { out.append(String.valueOf(thread.getId())).append(' ').append(thread.getName()).append(' ').append(thread.getState().toString()).append(idle ? " IDLE" : "").append('\n'); if (!idle) ContainerLifeCycle.dump(out, indent, Arrays.asList(trace)); }
@Override @ManagedOperation("Dump the object to a string") public String dump() { return dump(this); }
@Override @ManagedOperation("Dump the object to a string") public String dump() { return dump(this); }
@ManagedOperation(value = "Dumps the BayeuxServer state", impact = "INFO") @Override public String dump() { return ContainerLifeCycle.dump(this); }
@Override @ManagedOperation("Dump the object to a string") public String dump() { return dump(this); }
@Override public void dump(Appendable out, String indent) throws IOException { out.append(toString()) .append(" - ").append(AbstractLifeCycle.getState(this)).append("\n"); ContainerLifeCycle.dump(out,indent,_initParams.entrySet()); }