for (Iterator it = poolNames.iterator(); it.hasNext();) {
ThreadPoolObjectName threadPoolObjectName = (ThreadPoolObjectName) it.next();
boolean remoteAddrAvailable = true;
try {
ObjectName poolName = threadPoolObjectName.getThreadPoolName();
Connector connector = new Connector();
connector.setName(poolName.getKeyProperty("name"));
ObjectName grpName = threadPoolObjectName.getGlobalRequestProcessorName();
connector.setMaxTime(JmxTools.getLongAttr(server, grpName, "maxTime"));
connector.setProcessingTime(JmxTools.getLongAttr(server, grpName, "processingTime"));
connector.setBytesReceived(JmxTools.getLongAttr(server, grpName, "bytesReceived"));
connector.setBytesSent(JmxTools.getLongAttr(server, grpName, "bytesSent"));
connector.setRequestCount(JmxTools.getIntAttr(server, grpName, "requestCount"));
connector.setErrorCount(JmxTools.getIntAttr(server, grpName, "errorCount"));
if (includeRequestProcessors) {
for (Iterator wrkIt = threadPoolObjectName.getRequestProcessorNames().iterator(); wrkIt.hasNext();) {
ObjectName wrkName = (ObjectName) wrkIt.next();
try {
RequestProcessor rp = new RequestProcessor();
rp.setName(wrkName.getKeyProperty("name"));
rp.setStage(JmxTools.getIntAttr(server, wrkName, "stage"));
rp.setProcessingTime(JmxTools.getLongAttr(server, wrkName, "requestProcessingTime"));
rp.setBytesSent(JmxTools.getLongAttr(server, wrkName, "requestBytesSent"));
rp.setBytesReceived(JmxTools.getLongAttr(server, wrkName, "requestBytesReceived"));
try {