int maxThreadCount = this.storageService.getJetS3tProperties()
.getIntProperty("threaded-service.max-thread-count", 2);
int maxConnectionCount = this.storageService.getJetS3tProperties()
.getIntProperty("httpclient.max-connections", 20);
if (maxConnectionCount < maxThreadCount) {
throw new ServiceException(
"Insufficient connections available (httpclient.max-connections="
+ maxConnectionCount + ") to run (threaded-service.max-thread-count="
+ maxThreadCount + ") simultaneous threads - please adjust JetS3t properties");
}
if (maxConnectionCount < adminMaxThreadCount) {
throw new ServiceException(
"Insufficient connections available (httpclient.max-connections="
+ maxConnectionCount + ") to run (threaded-service.admin-max-thread-count="
+ adminMaxThreadCount
+ ") simultaneous admin threads - please adjust JetS3t properties");
}