| Line 96... |
Line 96... |
| 96 |
String response = restClient.post(SchemeType.HTTP, "103.15.179.45", 8085, uri, params, new HashMap<>());
|
96 |
String response = restClient.post(SchemeType.HTTP, "103.15.179.45", 8085, uri, params, new HashMap<>());
|
| 97 |
// System.out.println("response Html"+response);
|
97 |
// System.out.println("response Html"+response);
|
| 98 |
if (response.length() > 0) {
|
98 |
if (response.length() > 0) {
|
| 99 |
htmlpage = response.substring(response.indexOf("=")+1);
|
99 |
htmlpage = response.substring(response.indexOf("=")+1);
|
| 100 |
System.out.println(htmlpage);
|
100 |
System.out.println(htmlpage);
|
| 101 |
currentSmsCount = Integer.parseInt(htmlpage);
|
101 |
currentSmsCount = Integer.parseInt(htmlpage.trim());
|
| 102 |
log.info("Got successfully parsed {}", currentSmsCount);
|
102 |
log.info("Got successfully parsed {}", currentSmsCount);
|
| 103 |
propertiesDetails.put("currentSmsCount", Integer.toString(currentSmsCount));
|
103 |
propertiesDetails.put("currentSmsCount", Integer.toString(currentSmsCount));
|
| 104 |
writeToPropertiesFile.saveParamChanges(propertiesDetails, nagiosPropertiesFile);
|
104 |
writeToPropertiesFile.saveParamChanges(propertiesDetails, nagiosPropertiesFile);
|
| 105 |
|
105 |
|
| 106 |
}
|
106 |
}
|