-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
#9145 fix ee8,ee9 and core stats modules
Signed-off-by: Ludovic Orban <[email protected]>
- Loading branch information
Showing
5 changed files
with
92 additions
and
7 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
21 changes: 21 additions & 0 deletions
21
jetty-ee8/jetty-ee8-nested/src/main/config/etc/ee8-jetty-stats.xml
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,21 @@ | ||
<?xml version="1.0"?> | ||
<!DOCTYPE Configure PUBLIC "-//Jetty//Configure//EN" "https://www.eclipse.org/jetty/configure_10_0.dtd"> | ||
|
||
<!-- =============================================================== --> | ||
<!-- Mixin the Statistics Handler --> | ||
<!-- =============================================================== --> | ||
|
||
<Configure id="Server" class="org.eclipse.jetty.server.Server"> | ||
<Call name="insertHandler"> | ||
<Arg> | ||
<New id="StatsHandler" class="org.eclipse.jetty.ee8.nested.StatisticsHandler"> | ||
<Set name="gracefulShutdownWaitsForRequests"><Property name="jetty.statistics.gracefulShutdownWaitsForRequests" default="true"/></Set> | ||
</New> | ||
</Arg> | ||
</Call> | ||
<Call name="addBeanToAllConnectors"> | ||
<Arg> | ||
<New class="org.eclipse.jetty.io.ConnectionStatistics"/> | ||
</Arg> | ||
</Call> | ||
</Configure> |
25 changes: 25 additions & 0 deletions
25
jetty-ee8/jetty-ee8-nested/src/main/config/modules/ee8-stats.mod
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,25 @@ | ||
# DO NOT EDIT - See: https://www.eclipse.org/jetty/documentation/current/startup-modules.html | ||
|
||
[description] | ||
Enables detailed statistics collection for the server. | ||
|
||
[environment] | ||
ee8 | ||
|
||
[depend] | ||
server | ||
ee8-servlet | ||
|
||
[lib] | ||
lib/jetty-util-ajax-${jetty.version}.jar | ||
|
||
[xml] | ||
etc/ee8-jetty-stats.xml | ||
|
||
[ini] | ||
jetty.webapp.addServerClasses+=,-org.eclipse.jetty.ee8.servlet.StatisticsServlet | ||
|
||
[ini-template] | ||
|
||
## If the Graceful shutdown should wait for async requests as well as the currently dispatched ones. | ||
# jetty.statistics.gracefulShutdownWaitsForRequests=true |
21 changes: 21 additions & 0 deletions
21
jetty-ee9/jetty-ee9-nested/src/main/config/etc/ee9-jetty-stats.xml
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,21 @@ | ||
<?xml version="1.0"?> | ||
<!DOCTYPE Configure PUBLIC "-//Jetty//Configure//EN" "https://www.eclipse.org/jetty/configure_10_0.dtd"> | ||
|
||
<!-- =============================================================== --> | ||
<!-- Mixin the Statistics Handler --> | ||
<!-- =============================================================== --> | ||
|
||
<Configure id="Server" class="org.eclipse.jetty.server.Server"> | ||
<Call name="insertHandler"> | ||
<Arg> | ||
<New id="StatsHandler" class="org.eclipse.jetty.ee9.nested.StatisticsHandler"> | ||
<Set name="gracefulShutdownWaitsForRequests"><Property name="jetty.statistics.gracefulShutdownWaitsForRequests" default="true"/></Set> | ||
</New> | ||
</Arg> | ||
</Call> | ||
<Call name="addBeanToAllConnectors"> | ||
<Arg> | ||
<New class="org.eclipse.jetty.io.ConnectionStatistics"/> | ||
</Arg> | ||
</Call> | ||
</Configure> |
25 changes: 25 additions & 0 deletions
25
jetty-ee9/jetty-ee9-nested/src/main/config/modules/ee9-stats.mod
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,25 @@ | ||
# DO NOT EDIT - See: https://www.eclipse.org/jetty/documentation/current/startup-modules.html | ||
|
||
[description] | ||
Enables detailed statistics collection for the server. | ||
|
||
[environment] | ||
ee9 | ||
|
||
[depend] | ||
server | ||
ee9-servlet | ||
|
||
[lib] | ||
lib/jetty-util-ajax-${jetty.version}.jar | ||
|
||
[xml] | ||
etc/ee9-jetty-stats.xml | ||
|
||
[ini] | ||
jetty.webapp.addServerClasses+=,-org.eclipse.jetty.ee9.servlet.StatisticsServlet | ||
|
||
[ini-template] | ||
|
||
## If the Graceful shutdown should wait for async requests as well as the currently dispatched ones. | ||
# jetty.statistics.gracefulShutdownWaitsForRequests=true |