pw.println(HEADLINE);
pw.println();
final DefaultThreadPoolManager.Entry[] configs = this.mgr.getConfigurations();
if ( configs.length > 0 ) {
for(final DefaultThreadPoolManager.Entry entry : configs ) {
final ThreadPoolConfig config = entry.getConfig();
pw.print("Pool ");
pw.println(entry.getName());
if ( entry.getPid() != null ) {
pw.print("- from configuration : ");
pw.println(entry.getPid());
}
pw.print("- used : ");
pw.println(entry.isUsed());
pw.print("- min pool size : ");
pw.println(config.getMinPoolSize());
pw.print("- max pool size : ");
pw.println(config.getMaxPoolSize());
pw.print("- queue size : ");
pw.println(config.getQueueSize());
pw.print("- keep alive time : ");
pw.println(config.getKeepAliveTime());
pw.print("- block policy : ");
pw.println(config.getBlockPolicy());
pw.print("- priority : ");
pw.println(config.getPriority());
pw.print("- shutdown graceful : ");
pw.println(config.isShutdownGraceful());
pw.print("- shutdown wait time : ");
pw.println(config.getShutdownWaitTimeMs());
pw.print("- daemon : ");
pw.println(config.isDaemon());
final ThreadPoolExecutor tpe = entry.getExecutor();
if ( tpe != null ) {
pw.print("- active count : ");
pw.println(tpe.getActiveCount());
pw.print("- completed task count : ");