Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

optimize: add graalvm metadata #18

Merged
merged 36 commits into from
Apr 10, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
36 commits
Select commit Hold shift + click to select a range
bd41bdf
optimize: update README.md
funky-eyes Apr 8, 2024
bc98ee3
Merge branch 'main' of github.com:funky-eyes/redispike-proxy into 0408
funky-eyes Apr 8, 2024
589a6b2
optimize: update README.md
funky-eyes Apr 8, 2024
5369351
feature: support keys protocol
funky-eyes Apr 8, 2024
f7d6506
feature: support keys protocol
funky-eyes Apr 8, 2024
96d3450
feature: support keys protocol
funky-eyes Apr 8, 2024
03ffe17
feature: support keys protocol
funky-eyes Apr 8, 2024
3624af8
feature: support keys protocol
funky-eyes Apr 8, 2024
480a6a5
feature: support keys protocol
funky-eyes Apr 8, 2024
aafa4d2
test
funky-eyes Apr 8, 2024
69c9d63
test
funky-eyes Apr 8, 2024
51dbda6
test
funky-eyes Apr 8, 2024
1b03431
test
funky-eyes Apr 8, 2024
6d111db
test
funky-eyes Apr 8, 2024
a4babb5
test
funky-eyes Apr 8, 2024
7886891
test
funky-eyes Apr 8, 2024
ea0c0e0
test
funky-eyes Apr 8, 2024
12ab842
test
funky-eyes Apr 8, 2024
6622391
test
funky-eyes Apr 8, 2024
23c0c6f
test
funky-eyes Apr 8, 2024
d9530e7
Merge branch 'main' of github.com:funky-eyes/redispike-proxy into 0409
funky-eyes Apr 9, 2024
7c521c1
feature: support hgetall&hget protocol
funky-eyes Apr 9, 2024
36ef267
feature: support hgetall&hget protocol
funky-eyes Apr 9, 2024
a1a8784
feature: support hgetall&hget protocol
funky-eyes Apr 9, 2024
4882e36
feature: support hgetall&hget protocol
funky-eyes Apr 9, 2024
ca3fe6c
feature: support hgetall&hget protocol
funky-eyes Apr 9, 2024
786c453
Merge branch 'main' of github.com:funky-eyes/redispike-proxy into 0409
funky-eyes Apr 9, 2024
fd1b040
feature: support sadd&smemebers&spop protocol
funky-eyes Apr 9, 2024
f9efb70
feature: support sadd&smemebers&spop protocol
funky-eyes Apr 9, 2024
eb002e4
test: add pippline test case
funky-eyes Apr 9, 2024
02e700a
test: add pippline test case
funky-eyes Apr 9, 2024
4f70b62
test: add pippline test case
funky-eyes Apr 9, 2024
dde9cdd
test: add pippline test case
funky-eyes Apr 9, 2024
3220013
test: add pippline test case
funky-eyes Apr 9, 2024
931af9e
optimize: add graalvm metadata
funky-eyes Apr 10, 2024
420d620
Merge branch 'main' of github.com:funky-eyes/redispike-proxy into pip…
funky-eyes Apr 10, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
<mock-jedis.version>0.3.1</mock-jedis.version>
<junit-jupiter.version>5.8.2</junit-jupiter.version>
<commons-cli.version>1.6.0</commons-cli.version>
<log.version>1.2.9</log.version>
<log.version>1.2.13</log.version>
<p3c-pmd.version>1.3.6</p3c-pmd.version>
<maven-pmd-plugin.version>3.8</maven-pmd-plugin.version>
<asp-client.version>4.1.2</asp-client.version>
Expand All @@ -26,7 +26,7 @@
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-api</artifactId>
<version>1.7.6</version>
<version>1.7.36</version>
</dependency>
<dependency>
<groupId>ch.qos.logback</groupId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,8 @@ public void decode(ChannelHandlerContext ctx, ByteBuf in, List<Object> out) {

private RedisRequest<?> convert2RedisRequest(List<String> params) {
String cmd = params.get(0);
if (LOGGER.isInfoEnabled()) {
LOGGER.info("cmd: {}", params);
if (LOGGER.isDebugEnabled()) {
LOGGER.debug("cmd: {}", params);
}
switch (cmd) {
case "hdel":
Expand Down
26 changes: 26 additions & 0 deletions src/main/resources/META-INF/native-image/jni-config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
[
{
"name":"icu.funkye.redispike.ProxyMain",
"methods":[{"name":"main","parameterTypes":["java.lang.String[]"] }]
},
{
"name":"java.lang.Boolean",
"methods":[{"name":"getBoolean","parameterTypes":["java.lang.String"] }]
},
{
"name":"java.lang.InternalError",
"methods":[{"name":"<init>","parameterTypes":["java.lang.String"] }]
},
{
"name":"java.lang.String",
"methods":[{"name":"lastIndexOf","parameterTypes":["int"] }, {"name":"substring","parameterTypes":["int"] }]
},
{
"name":"java.lang.System",
"methods":[{"name":"getProperty","parameterTypes":["java.lang.String"] }, {"name":"setProperty","parameterTypes":["java.lang.String","java.lang.String"] }]
},
{
"name":"sun.instrument.InstrumentationImpl",
"methods":[{"name":"<init>","parameterTypes":["long","boolean","boolean","boolean"] }, {"name":"loadClassAndCallAgentmain","parameterTypes":["java.lang.String","java.lang.String"] }, {"name":"loadClassAndCallPremain","parameterTypes":["java.lang.String","java.lang.String"] }, {"name":"transform","parameterTypes":["java.lang.Module","java.lang.ClassLoader","java.lang.String","java.lang.Class","java.security.ProtectionDomain","byte[]","boolean"] }]
}
]
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
[
{
"type":"agent-extracted",
"classes":[
]
}
]

2 changes: 2 additions & 0 deletions src/main/resources/META-INF/native-image/proxy-config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[
]
405 changes: 405 additions & 0 deletions src/main/resources/META-INF/native-image/reflect-config.json

Large diffs are not rendered by default.

23 changes: 23 additions & 0 deletions src/main/resources/META-INF/native-image/resource-config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"resources":{
"includes":[{
"pattern":"\\QMETA-INF/services/java.lang.System$LoggerFinder\\E"
}, {
"pattern":"\\QMETA-INF/services/java.nio.channels.spi.SelectorProvider\\E"
}, {
"pattern":"\\QMETA-INF/services/java.time.zone.ZoneRulesProvider\\E"
}, {
"pattern":"\\QMETA-INF/services/javax.xml.parsers.SAXParserFactory\\E"
}, {
"pattern":"\\Qcom/alipay/remoting/log/logback/log-conf.xml\\E"
}, {
"pattern":"\\Qlogback-test.xml\\E"
}, {
"pattern":"\\Qlogback.xml\\E"
}, {
"pattern":"\\Qlua/spop.lua\\E"
}, {
"pattern":"\\Qorg/slf4j/impl/StaticLoggerBinder.class\\E"
}]},
"bundles":[]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"types":[
],
"lambdaCapturingTypes":[
],
"proxies":[
]
}