Skip to content

Commit 16d1374

Browse files
committed
Add necessary reachability metadata for Petclinic with complete reflection types
1 parent acac51d commit 16d1374

File tree

2 files changed

+43
-0
lines changed

2 files changed

+43
-0
lines changed

sdk/mx.sdk/mx_sdk_benchmark.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5613,6 +5613,12 @@ def version(self):
56135613
def applicationDist(self):
56145614
return mx.library("PETCLINIC_" + self.version(), True).get_path(True)
56155615

5616+
def extra_image_build_argument(self, benchmark, args):
5617+
additional_configuration = os.path.join(getattr(self, '.mxsuite').mxDir, "petclinic-config")
5618+
return [
5619+
f"-H:ConfigurationFileDirectories={additional_configuration}",
5620+
] + super(BasePetClinicBenchmarkSuite, self).extra_image_build_argument(benchmark, args)
5621+
56165622

56175623
class PetClinicWrkBenchmarkSuite(BasePetClinicBenchmarkSuite, BaseWrkBenchmarkSuite):
56185624
"""PetClinic benchmark suite that measures throughput using Wrk."""
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
{
2+
"reflection": [
3+
{
4+
"type": "org.apache.coyote.AbstractProtocol",
5+
"methods": [
6+
{
7+
"name": "setProperty",
8+
"parameterTypes": [
9+
"java.lang.String",
10+
"java.lang.String"
11+
]
12+
},
13+
{
14+
"name": "getAddress",
15+
"parameterTypes": []
16+
}
17+
]
18+
},
19+
{
20+
"type": "org.apache.coyote.http11.AbstractHttp11Protocol",
21+
"methods": [
22+
{
23+
"name": "isSSLEnabled",
24+
"parameterTypes": []
25+
}
26+
]
27+
},
28+
{
29+
"type": "com.zaxxer.hikari.HikariDataSource",
30+
"fields": [
31+
{
32+
"name": "pool"
33+
}
34+
]
35+
}
36+
]
37+
}

0 commit comments

Comments
 (0)