if (controller != null) {
try {
final Connector connector = (Connector) controller.getValue();
final ModelNode result = new ModelNode();
if (connector.getProtocolHandler() != null && connector.getProtocolHandler().getRequestGroupInfo() != null) {
RequestGroupInfo info = connector.getProtocolHandler().getRequestGroupInfo();
if (BYTES_SENT.equals(attributeName)) {
result.set("" + info.getBytesSent());
} else if (BYTES_RECEIVED.equals(attributeName)) {
result.set("" + info.getBytesReceived());
} else if (PROCESSING_TIME.equals(attributeName)) {
result.set("" + info.getProcessingTime());
} else if (ERROR_COUNT.equals(attributeName)) {
result.set("" + info.getErrorCount());
} else if (MAX_TIME.equals(attributeName)) {
result.set("" + info.getMaxTime());
} else if (REQUEST_COUNT.equals(attributeName)) {
result.set("" + info.getRequestCount());
}
}
resultHandler.handleResultFragment(new String[0], result);
resultHandler.handleResultComplete();
} catch (Exception e) {