New paste Repaste Download
protected int saveResponseList(Map<String, Response> responseList, int counter,
int pendingRequestCount) {
AggregatedDataHelper aggregatedDataHelper = new AggregatedDataHelper();
String isDeleteEnabledFromVm = null;
int ret=aggregatedDataHelper.saveResponseList(responseList, counter, pendingRequestCount, CHUNKSIZE, this);
try {
String finalAgentName =this.getClass().getSimpleName();
Map<String, String> arpaAgentConfigMap =this.getArpaAgentConfigEntries(finalAgentName, StringConstants.CONFIG_TYPE_UNCATEGORIZED, StringConstants.DELETE_FILES_FROM_VM_IN_RUNNING);
         if(arpaAgentConfigMap != null && !arpaAgentConfigMap.isEmpty() ) {
         isDeleteEnabledFromVm =  arpaAgentConfigMap.get(StringConstants.DELETE_FILES_FROM_VM_IN_RUNNING);
         isDeleteEnabledFromVm = StringUtils.lowerCase(isDeleteEnabledFromVm);
         }
if (isDeleteEnabledFromVm.equalsIgnoreCase("true")) {
if (CHUNKSIZE==counter) {
FileUtils.deleteQuietly(new File(physicalDIRPathLocal));
}
}
}
catch (Exception e) {
}
return ret;
}
Filename: None. Size: 1kb. View raw, , hex, or download this file.

This paste expires on 2025-02-26 19:20:08.564521. Pasted through web.