368635 moved lifecycle state reporting from toString to dump
This commit is contained in:
parent
ef9ac7760d
commit
81c48518b6
|
@ -337,7 +337,7 @@ public class MBeanContainer extends AbstractLifeCycle implements Container.Liste
|
||||||
|
|
||||||
public void dump(Appendable out, String indent) throws IOException
|
public void dump(Appendable out, String indent) throws IOException
|
||||||
{
|
{
|
||||||
out.append(toString()).append("\n");
|
AggregateLifeCycle.dumpObject(out,this);
|
||||||
AggregateLifeCycle.dump(out, indent, _beans.entrySet());
|
AggregateLifeCycle.dump(out, indent, _beans.entrySet());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -260,7 +260,8 @@ public class Holder<T> extends AbstractLifeCycle implements Dumpable
|
||||||
/* ------------------------------------------------------------ */
|
/* ------------------------------------------------------------ */
|
||||||
public void dump(Appendable out, String indent) throws IOException
|
public void dump(Appendable out, String indent) throws IOException
|
||||||
{
|
{
|
||||||
out.append(_name).append("==").append(_className).append("\n");
|
out.append(_name).append("==").append(_className)
|
||||||
|
.append(" - ").append(AbstractLifeCycle.getState(this)).append("\n");
|
||||||
AggregateLifeCycle.dump(out,indent,_initParams.entrySet());
|
AggregateLifeCycle.dump(out,indent,_initParams.entrySet());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -498,7 +498,7 @@ public class QueuedThreadPool extends AbstractLifeCycle implements SizedThreadPo
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
out.append(String.valueOf(this)).append("\n");
|
AggregateLifeCycle.dumpObject(out,this);
|
||||||
AggregateLifeCycle.dump(out,indent,dump);
|
AggregateLifeCycle.dump(out,indent,dump);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue