@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);
 }
  @Override
  public void dump(Appendable out, String indent) throws IOException {
    super.dump(out, indent);
    out.append(indent).append(" +- incomingHandler : ");
    if (incomingHandler instanceof Dumpable) {
      ((Dumpable) incomingHandler).dump(out, indent + "    ");
    } else {
      out.append(incomingHandler.toString()).append('\n');
    }

    out.append(indent).append(" +- outgoingHandler : ");
    if (outgoingHandler instanceof Dumpable) {
      ((Dumpable) outgoingHandler).dump(out, indent + "    ");
    } else {
      out.append(outgoingHandler.toString()).append('\n');
    }
  }
Beispiel #3
0
 /* ------------------------------------------------------------ */
 @Override
 public String dump() {
   return ContainerLifeCycle.dump(this);
 }
Beispiel #4
0
 /* ------------------------------------------------------------ */
 @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());
 }
 @Override
 public void dump(Appendable out, String indent) throws IOException {
   ContainerLifeCycle.dumpObject(out, this);
   ContainerLifeCycle.dump(out, indent, Collections.singletonList(controller), streams.values());
 }
 @Override
 public void dump(Appendable out, String indent) throws IOException {
   super.dump(out, indent);
   ContainerLifeCycle.dump(out, indent, Collections.singletonList(connectionPool));
 }