mirror of
https://github.com/vale981/ray
synced 2025-03-04 17:41:43 -05:00
![]() This PR supports setting the jars for an actor in Ray API. The API looks like: ```java class A { public boolean findClass(String className) { try { Class.forName(className); } catch (ClassNotFoundException e) { return false; } return true; } } RuntimeEnv runtimeEnv = new RuntimeEnv.Builder() .addJars(ImmutableList.of("https://github.com/ray-project/test_packages/raw/main/raw_resources/java-1.0-SNAPSHOT.jar")) .build(); ActorHandle<A> actor1 = Ray.actor(A::new).setRuntimeEnv(runtimeEnv).remote(); boolean ret = actor1.task(A::findClass, "io.testpackages.Foo").remote().get(); System.out.println(ret); // true ``` |
||
---|---|---|
.. | ||
api | ||
performance_test | ||
runtime | ||
serve | ||
test | ||
build-jar-multiplatform.sh | ||
BUILD.bazel | ||
checkstyle-suppressions.xml | ||
checkstyle.xml | ||
cleanup.sh | ||
dependencies.bzl | ||
generate_jni_header_files.sh | ||
java-release-guide.md | ||
pom.xml | ||
shade_rule | ||
test.sh | ||
testng.xml |