1 | for (int idx = 0; idx < attributes.getLength(); idx++) {↵ | | |
|
2 | String attr = ↵ | | 1 | if (attr.equals(Constants.MAXTIME)) {↵
|
3 | attributes.getQName(idx);↵ | | 2 | requestinfo.setMaxTime(parseInt(attributes.getValue(idx)));↵
|
4 | if (attr.equals(Constants.MAXTHREADS)) {↵ | | 3 | } else if (attr.equals(Constants.PROCESSINGTIME)) {↵
|
5 | threadinfo.setMaxThreads(parseInt(attributes.getValue(idx)));↵ | | 4 | requestinfo.setProcessingTime(parseInt(attributes.getValue(idx)));↵
|
6 | } else if (attr.equals(Constants.MINSPARETHREADS)) {↵ | | 5 | } else if (attr.equals(Constants.REQUESTCOUNT)) {↵
|
7 | threadinfo.setMinSpareThreads(parseInt(attributes.getValue(idx)));↵ | | 6 | requestinfo.setRequestCount(parseInt(attributes.getValue(idx)));↵
|
8 | } else if (attr.equals(Constants.MAXSPARETHREADS)) {↵ | | 7 | } else if (attr.equals(Constants.ERRORCOUNT)) {↵
|
9 | threadinfo.setMaxSpareThreads(parseInt(attributes.getValue(idx)));↵ | | 8 | requestinfo.setErrorCount(parseInt(attributes.getValue(idx)));↵
|
10 | } else if (attr.equals(Constants.CURRENTTHREADCOUNT)) {↵ | | 9 | } else if (attr.equals(Constants.BYTESRECEIVED)) {↵
|
11 | threadinfo.setCurrentThreadCount(parseInt(attributes.getValue(idx)));↵ | | 10 | requestinfo.setBytesReceived(parseLong(attributes.getValue(idx)));↵
|
12 | } else if (attr.equals(Constants.CURRENTBUSYTHREADS)) {↵ | | 11 | } else if (attr.equals(Constants.BYTESSENT)) {↵
|
13 | threadinfo.setCurrentThreadsBusy(parseInt(attributes.getValue(idx)));↵ | | 12 | requestinfo.setBytesSent(parseLong(attributes.getValue(idx)));↵
|
14 | }↵ | | 13 | }
|
15 | } | | | |