-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
some more tweaks to configuration and such
- Loading branch information
1 parent
8fc27f6
commit 021839b
Showing
25 changed files
with
263 additions
and
94 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
53 changes: 53 additions & 0 deletions
53
http/http-backpressure-tests/src/test/java/org/webpieces/throughput/AsyncConfig.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
package org.webpieces.throughput; | ||
|
||
import org.webpieces.nio.api.BackpressureConfig; | ||
|
||
public class AsyncConfig { | ||
|
||
private Integer clientThreadCount; | ||
private Integer serverThreadCount; | ||
private boolean isHttps; | ||
private int clientMaxConcurrentRequests; | ||
private BackpressureConfig backpressureConfig; | ||
|
||
public boolean isHttps() { | ||
return isHttps; | ||
} | ||
|
||
public void setHttps(boolean isHttps) { | ||
this.isHttps = isHttps; | ||
} | ||
|
||
public int getClientMaxConcurrentRequests() { | ||
return clientMaxConcurrentRequests; | ||
} | ||
|
||
public void setHttp2ClientMaxConcurrentRequests(int clientMaxConcurrentRequests) { | ||
this.clientMaxConcurrentRequests = clientMaxConcurrentRequests; | ||
} | ||
|
||
public void setBackPressureConfig(BackpressureConfig backpressureConfig) { | ||
this.backpressureConfig = backpressureConfig; | ||
} | ||
|
||
public BackpressureConfig getBackpressureConfig() { | ||
return backpressureConfig; | ||
} | ||
|
||
public Integer getClientThreadCount() { | ||
return clientThreadCount; | ||
} | ||
|
||
public void setClientThreadCount(Integer clientThreadCount) { | ||
this.clientThreadCount = clientThreadCount; | ||
} | ||
|
||
public Integer getServerThreadCount() { | ||
return serverThreadCount; | ||
} | ||
|
||
public void setServerThreadCount(Integer serverThreadCount) { | ||
this.serverThreadCount = serverThreadCount; | ||
} | ||
|
||
} |
20 changes: 19 additions & 1 deletion
20
...ttp-backpressure-tests/src/test/java/org/webpieces/throughput/SingleSocketThroughput.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
26 changes: 12 additions & 14 deletions
26
.../http-backpressure-tests/src/test/java/org/webpieces/throughput/client/Http11Clients.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 0 additions & 3 deletions
3
...pressure-tests/src/test/java/org/webpieces/throughput/client/ResponseCounterListener.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
32 changes: 32 additions & 0 deletions
32
http/http-frontend2/src/main/java/org/webpieces/frontend2/api/FrontendMgrConfig.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
package org.webpieces.frontend2.api; | ||
|
||
import org.webpieces.nio.api.BackpressureConfig; | ||
|
||
import com.webpieces.http2engine.api.client.Http2Config; | ||
|
||
public class FrontendMgrConfig { | ||
private int threadPoolSize = 20; | ||
private BackpressureConfig backpressureConfig = new BackpressureConfig(); | ||
private Http2Config http2Config = new Http2Config(); | ||
|
||
public int getThreadPoolSize() { | ||
return threadPoolSize; | ||
} | ||
public void setThreadPoolSize(int threadPoolSize) { | ||
this.threadPoolSize = threadPoolSize; | ||
} | ||
public BackpressureConfig getBackpressureConfig() { | ||
return backpressureConfig; | ||
} | ||
public void setBackpressureConfig(BackpressureConfig config) { | ||
this.backpressureConfig = config; | ||
} | ||
public Http2Config getHttp2Config() { | ||
return http2Config; | ||
} | ||
public void setHttp2Config(Http2Config http2Config) { | ||
this.http2Config = http2Config; | ||
} | ||
|
||
|
||
} |
Oops, something went wrong.