}
@Override
public CallResponse refreshAllCaches(RequestContext ctx, TimeConstraints timeConstraints)
throws TestingException {
CallResponse response = new CallResponse();
boolean done = false;
for (CacheFrameworkIntegration framework : cacheFrameworkRegistry.getFrameworks()) {
done = true;
framework.refreshAllCaches();
}
if (done) {
logger.log(Level.INFO, "Refreshed all caches");
response.setResult("OK");
return response;
}
logger.log(Level.INFO, "No cache frameworks found");
throw new TestingException(ResponseCode.InternalError,
TestingExceptionErrorCodeEnum.GENERIC);