[Java] Rename java ObjectRef/ActorHandle (#8799)

This commit is contained in:
chaokunyang
2020-06-09 11:40:43 +08:00
committed by GitHub
parent c1e6813cea
commit 31a4d07bc4
88 changed files with 1551 additions and 1544 deletions
@@ -12,7 +12,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.
#include "ray/core_worker/lib/java/io_ray_runtime_actor_NativeRayActor.h"
#include "ray/core_worker/lib/java/io_ray_runtime_actor_NativeActorHandle.h"
#include <jni.h>
#include "ray/common/id.h"
#include "ray/core_worker/actor_handle.h"
@@ -24,7 +24,7 @@
extern "C" {
#endif
JNIEXPORT jint JNICALL Java_io_ray_runtime_actor_NativeRayActor_nativeGetLanguage(
JNIEXPORT jint JNICALL Java_io_ray_runtime_actor_NativeActorHandle_nativeGetLanguage(
JNIEnv *env, jclass o, jbyteArray actorId) {
auto actor_id = JavaByteArrayToId<ray::ActorID>(env, actorId);
ray::ActorHandle *native_actor_handle = nullptr;
@@ -35,7 +35,7 @@ JNIEXPORT jint JNICALL Java_io_ray_runtime_actor_NativeRayActor_nativeGetLanguag
}
JNIEXPORT jobject JNICALL
Java_io_ray_runtime_actor_NativeRayActor_nativeGetActorCreationTaskFunctionDescriptor(
Java_io_ray_runtime_actor_NativeActorHandle_nativeGetActorCreationTaskFunctionDescriptor(
JNIEnv *env, jclass o, jbyteArray actorId) {
auto actor_id = JavaByteArrayToId<ray::ActorID>(env, actorId);
ray::ActorHandle *native_actor_handle = nullptr;
@@ -46,7 +46,7 @@ Java_io_ray_runtime_actor_NativeRayActor_nativeGetActorCreationTaskFunctionDescr
return NativeRayFunctionDescriptorToJavaStringList(env, function_descriptor);
}
JNIEXPORT jbyteArray JNICALL Java_io_ray_runtime_actor_NativeRayActor_nativeSerialize(
JNIEXPORT jbyteArray JNICALL Java_io_ray_runtime_actor_NativeActorHandle_nativeSerialize(
JNIEnv *env, jclass o, jbyteArray actorId) {
auto actor_id = JavaByteArrayToId<ray::ActorID>(env, actorId);
std::string output;
@@ -59,7 +59,7 @@ JNIEXPORT jbyteArray JNICALL Java_io_ray_runtime_actor_NativeRayActor_nativeSeri
return bytes;
}
JNIEXPORT jbyteArray JNICALL Java_io_ray_runtime_actor_NativeRayActor_nativeDeserialize(
JNIEXPORT jbyteArray JNICALL Java_io_ray_runtime_actor_NativeActorHandle_nativeDeserialize(
JNIEnv *env, jclass o, jbyteArray data) {
auto buffer = JavaByteArrayToNativeBuffer(env, data);
RAY_CHECK(buffer->Size() > 0);
@@ -14,45 +14,44 @@
/* DO NOT EDIT THIS FILE - it is machine generated */
#include <jni.h>
/* Header for class io_ray_runtime_actor_NativeRayActor */
/* Header for class io_ray_runtime_actor_NativeActorHandle */
#ifndef _Included_io_ray_runtime_actor_NativeRayActor
#define _Included_io_ray_runtime_actor_NativeRayActor
#ifndef _Included_io_ray_runtime_actor_NativeActorHandle
#define _Included_io_ray_runtime_actor_NativeActorHandle
#ifdef __cplusplus
extern "C" {
#endif
/*
* Class: io_ray_runtime_actor_NativeRayActor
* Class: io_ray_runtime_actor_NativeActorHandle
* Method: nativeGetLanguage
* Signature: ([B)I
*/
JNIEXPORT jint JNICALL
Java_io_ray_runtime_actor_NativeRayActor_nativeGetLanguage(JNIEnv *, jclass, jbyteArray);
JNIEXPORT jint JNICALL Java_io_ray_runtime_actor_NativeActorHandle_nativeGetLanguage
(JNIEnv *, jclass, jbyteArray);
/*
* Class: io_ray_runtime_actor_NativeRayActor
* Class: io_ray_runtime_actor_NativeActorHandle
* Method: nativeGetActorCreationTaskFunctionDescriptor
* Signature: ([B)Ljava/util/List;
*/
JNIEXPORT jobject JNICALL
Java_io_ray_runtime_actor_NativeRayActor_nativeGetActorCreationTaskFunctionDescriptor(
JNIEnv *, jclass, jbyteArray);
JNIEXPORT jobject JNICALL Java_io_ray_runtime_actor_NativeActorHandle_nativeGetActorCreationTaskFunctionDescriptor
(JNIEnv *, jclass, jbyteArray);
/*
* Class: io_ray_runtime_actor_NativeRayActor
* Class: io_ray_runtime_actor_NativeActorHandle
* Method: nativeSerialize
* Signature: ([B)[B
*/
JNIEXPORT jbyteArray JNICALL
Java_io_ray_runtime_actor_NativeRayActor_nativeSerialize(JNIEnv *, jclass, jbyteArray);
JNIEXPORT jbyteArray JNICALL Java_io_ray_runtime_actor_NativeActorHandle_nativeSerialize
(JNIEnv *, jclass, jbyteArray);
/*
* Class: io_ray_runtime_actor_NativeRayActor
* Class: io_ray_runtime_actor_NativeActorHandle
* Method: nativeDeserialize
* Signature: ([B)[B
*/
JNIEXPORT jbyteArray JNICALL
Java_io_ray_runtime_actor_NativeRayActor_nativeDeserialize(JNIEnv *, jclass, jbyteArray);
JNIEXPORT jbyteArray JNICALL Java_io_ray_runtime_actor_NativeActorHandle_nativeDeserialize
(JNIEnv *, jclass, jbyteArray);
#ifdef __cplusplus
}