[Java Worker] Support raylet on Java (#2479)

This commit is contained in:
Wang Qing
2018-08-02 08:52:49 +08:00
committed by Robert Nishihara
parent 9a479b3a63
commit e4f68ff8cf
41 changed files with 916 additions and 303 deletions
+2 -2
View File
@@ -85,8 +85,8 @@ public final class Ray extends Rpc {
if (cls.getConstructor() == null) {
System.err.println("class " + cls.getName()
+ " does not (actors must) have a constructor with no arguments");
RayLog.core.error("class " + cls.getName()
+ " does not (actors must) have a constructor with no arguments");
RayLog.core.error("class {} does not (actors must) have a constructor with no arguments",
cls.getName());
}
} catch (Exception e) {
System.exit(1);
@@ -19,7 +19,7 @@ public class RayConnector {
m.setAccessible(false);
return api;
} catch (ReflectiveOperationException | IllegalArgumentException | SecurityException e) {
RayLog.core.error("Load " + className + " class failed.", e);
RayLog.core.error("Load {} class failed.", className, e);
throw new Error("RayApi is not successfully initiated.");
}
}