Skip to content

feat: llama.cpp RPC — --rpc client and an in-JVM RpcServer - #461

Merged
bernardladenthin merged 6 commits into
mainfrom
claude/busy-archimedes-lo9uyy
Sep 28, 2026
Merged

bernardladenthin merged 6 commits into
mainfrom
claude/busy-archimedes-lo9uyy

LlamaLoader: skip the nested initialize() that JNI_OnLoad triggers

9c6caef
Select commit
Loading
Failed to load commit list.
SonarQubeCloud / SonarCloud Code Analysis succeeded Sep 27, 2026 in 32s

Annotations

Check warning on line 119 in llama/src/test/java/net/ladenthin/llama/RpcServerLifecycleTest.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Refactor the code of the lambda to have only one invocation possibly throwing a runtime exception.

See more on https://sonarcloud.io/project/issues?id=bernardladenthin_java-llama.cpp&issues=AaDkkV0R7VHKXLDThTnG&open=AaDkkV0R7VHKXLDThTnG&pullRequest=461

Check warning on line 406 in llama/src/main/java/net/ladenthin/llama/RpcServer.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Refactor the code in order to not assign to this loop counter from within the loop body.

See more on https://sonarcloud.io/project/issues?id=bernardladenthin_java-llama.cpp&issues=AaDki1YYAduN7hzMZ-aF&open=AaDki1YYAduN7hzMZ-aF&pullRequest=461

Check warning on line 132 in llama/src/test/java/net/ladenthin/llama/RpcServerTest.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Refactor the code of the lambda to have only one invocation possibly throwing a runtime exception.

See more on https://sonarcloud.io/project/issues?id=bernardladenthin_java-llama.cpp&issues=AaDkr4SiHGdXYMwaT4IT&open=AaDkr4SiHGdXYMwaT4IT&pullRequest=461

Check warning on line 149 in llama/src/test/java/net/ladenthin/llama/RpcServerTest.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Refactor the code of the lambda to have only one invocation possibly throwing a runtime exception.

See more on https://sonarcloud.io/project/issues?id=bernardladenthin_java-llama.cpp&issues=AaDki1XDAduN7hzMZ-aB&open=AaDki1XDAduN7hzMZ-aB&pullRequest=461

Check warning on line 38 in llama/src/test/java/net/ladenthin/llama/RpcServerLifecycleTest.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Remove redundant visibility modifiers from the methods of this test class.

See more on https://sonarcloud.io/project/issues?id=bernardladenthin_java-llama.cpp&issues=AaDkkV0R7VHKXLDThTnE&open=AaDkkV0R7VHKXLDThTnE&pullRequest=461

Check warning on line 261 in llama/src/test/java/net/ladenthin/llama/RpcServerLifecycleTest.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Refactor the code of the lambda to have only one invocation possibly throwing a runtime exception.

See more on https://sonarcloud.io/project/issues?id=bernardladenthin_java-llama.cpp&issues=AaDkr4U3HGdXYMwaT4IV&open=AaDkr4U3HGdXYMwaT4IV&pullRequest=461

Check warning on line 228 in llama/src/test/java/net/ladenthin/llama/RpcServerLifecycleTest.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Refactor the code of the lambda to have only one invocation possibly throwing a runtime exception.

See more on https://sonarcloud.io/project/issues?id=bernardladenthin_java-llama.cpp&issues=AaDkkV0R7VHKXLDThTnL&open=AaDkkV0R7VHKXLDThTnL&pullRequest=461

Check warning on line 202 in llama/src/test/java/net/ladenthin/llama/RpcServerLifecycleTest.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Refactor the code of the lambda to have only one invocation possibly throwing a runtime exception.

See more on https://sonarcloud.io/project/issues?id=bernardladenthin_java-llama.cpp&issues=AaDkkV0R7VHKXLDThTnJ&open=AaDkkV0R7VHKXLDThTnJ&pullRequest=461

Check warning on line 409 in llama/src/main/java/net/ladenthin/llama/RpcServer.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Refactor the code in order to not assign to this loop counter from within the loop body.

See more on https://sonarcloud.io/project/issues?id=bernardladenthin_java-llama.cpp&issues=AaDki1YYAduN7hzMZ-aG&open=AaDki1YYAduN7hzMZ-aG&pullRequest=461

Check warning on line 239 in llama/src/main/java/net/ladenthin/llama/RpcServer.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Catch Exception instead of Throwable.

See more on https://sonarcloud.io/project/issues?id=bernardladenthin_java-llama.cpp&issues=AaDki1YYAduN7hzMZ-aI&open=AaDki1YYAduN7hzMZ-aI&pullRequest=461

Check warning on line 92 in llama/src/test/java/net/ladenthin/llama/RpcIntegrationTest.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Refactor the code of the lambda to have only one invocation possibly throwing a runtime exception.

See more on https://sonarcloud.io/project/issues?id=bernardladenthin_java-llama.cpp&issues=AaDksyizMU_cNDfvRChl&open=AaDksyizMU_cNDfvRChl&pullRequest=461

Check warning on line 364 in llama/src/main/java/net/ladenthin/llama/RpcServer.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Replace this use of System.out by a logger.

See more on https://sonarcloud.io/project/issues?id=bernardladenthin_java-llama.cpp&issues=AaDki1YYAduN7hzMZ-aK&open=AaDki1YYAduN7hzMZ-aK&pullRequest=461

Check warning on line 402 in llama/src/main/java/net/ladenthin/llama/RpcServer.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Refactor the code in order to not assign to this loop counter from within the loop body.

See more on https://sonarcloud.io/project/issues?id=bernardladenthin_java-llama.cpp&issues=AaDki1YYAduN7hzMZ-aE&open=AaDki1YYAduN7hzMZ-aE&pullRequest=461

Check warning on line 271 in llama/src/test/java/net/ladenthin/llama/RpcServerLifecycleTest.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Refactor the code of the lambda to have only one invocation possibly throwing a runtime exception.

See more on https://sonarcloud.io/project/issues?id=bernardladenthin_java-llama.cpp&issues=AaDkr4U3HGdXYMwaT4IW&open=AaDkr4U3HGdXYMwaT4IW&pullRequest=461

Check warning on line 36 in llama/src/test/java/net/ladenthin/llama/RpcIntegrationTest.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Remove redundant visibility modifiers from the methods of this test class.

See more on https://sonarcloud.io/project/issues?id=bernardladenthin_java-llama.cpp&issues=AaDki1W7AduN7hzMZ-Z9&open=AaDki1W7AduN7hzMZ-Z9&pullRequest=461

Check warning on line 87 in llama/src/test/java/net/ladenthin/llama/RpcServerTest.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Refactor the code of the lambda to have only one invocation possibly throwing a runtime exception.

See more on https://sonarcloud.io/project/issues?id=bernardladenthin_java-llama.cpp&issues=AaDki1XDAduN7hzMZ-aA&open=AaDki1XDAduN7hzMZ-aA&pullRequest=461

Check warning on line 190 in llama/src/test/java/net/ladenthin/llama/RpcServerLifecycleTest.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Remove the declaration of thrown exception 'java.lang.Exception', as it cannot be thrown from method's body.

See more on https://sonarcloud.io/project/issues?id=bernardladenthin_java-llama.cpp&issues=AaDkkV0R7VHKXLDThTnI&open=AaDkkV0R7VHKXLDThTnI&pullRequest=461

Check warning on line 132 in llama/src/test/java/net/ladenthin/llama/RpcServerLifecycleTest.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Refactor the code of the lambda to have only one invocation possibly throwing a runtime exception.

See more on https://sonarcloud.io/project/issues?id=bernardladenthin_java-llama.cpp&issues=AaDkkV0R7VHKXLDThTnH&open=AaDkkV0R7VHKXLDThTnH&pullRequest=461

Check failure on line 230 in llama/src/main/java/net/ladenthin/llama/RpcServer.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Change this "try" to a try-with-resources.

See more on https://sonarcloud.io/project/issues?id=bernardladenthin_java-llama.cpp&issues=AaDki1YYAduN7hzMZ-aJ&open=AaDki1YYAduN7hzMZ-aJ&pullRequest=461

Check warning on line 211 in llama/src/test/java/net/ladenthin/llama/RpcServerLifecycleTest.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Refactor the code of the lambda to have only one invocation possibly throwing a runtime exception.

See more on https://sonarcloud.io/project/issues?id=bernardladenthin_java-llama.cpp&issues=AaDkkV0R7VHKXLDThTnK&open=AaDkkV0R7VHKXLDThTnK&pullRequest=461

Check warning on line 570 in llama/src/test/java/net/ladenthin/llama/parameters/ModelParametersExtendedTest.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Refactor the code of the lambda to have only one invocation possibly throwing a runtime exception.

See more on https://sonarcloud.io/project/issues?id=bernardladenthin_java-llama.cpp&issues=AaDki1VZAduN7hzMZ-Z8&open=AaDki1VZAduN7hzMZ-Z8&pullRequest=461

Check warning on line 143 in llama/src/test/java/net/ladenthin/llama/value/RpcEndpointTest.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Refactor the code of the lambda to have only one invocation possibly throwing a runtime exception.

See more on https://sonarcloud.io/project/issues?id=bernardladenthin_java-llama.cpp&issues=AaDki1PuAduN7hzMZ-Z7&open=AaDki1PuAduN7hzMZ-Z7&pullRequest=461

Check warning on line 371 in llama/src/main/java/net/ladenthin/llama/RpcServer.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Replace this use of System.out by a logger.

See more on https://sonarcloud.io/project/issues?id=bernardladenthin_java-llama.cpp&issues=AaDkr4XmHGdXYMwaT4IY&open=AaDkr4XmHGdXYMwaT4IY&pullRequest=461

Check warning on line 415 in llama/src/main/java/net/ladenthin/llama/RpcServer.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Refactor the code in order to not assign to this loop counter from within the loop body.

See more on https://sonarcloud.io/project/issues?id=bernardladenthin_java-llama.cpp&issues=AaDkr4XmHGdXYMwaT4IX&open=AaDkr4XmHGdXYMwaT4IX&pullRequest=461

Check warning on line 78 in llama/src/test/java/net/ladenthin/llama/RpcServerTest.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Refactor the code of the lambda to have only one invocation possibly throwing a runtime exception.

See more on https://sonarcloud.io/project/issues?id=bernardladenthin_java-llama.cpp&issues=AaDki1XDAduN7hzMZ-Z_&open=AaDki1XDAduN7hzMZ-Z_&pullRequest=461