[Java] Add Plasma Free to Java code path (#2802)

This commit is contained in:
Yuhong Guo
2018-09-04 15:28:23 +08:00
committed by Hao Chen
parent 25ffe57a5c
commit dfb7c2be1e
9 changed files with 125 additions and 4 deletions
@@ -305,6 +305,11 @@ public abstract class AbstractRayRuntime implements RayRuntime {
}
}
@Override
public void free(List<UniqueId> objectIds, boolean localOnly) {
localSchedulerClient.freePlasmaObjects(objectIds, localOnly);
}
private List<List<UniqueId>> splitIntoBatches(List<UniqueId> objectIds, int batchSize) {
List<List<UniqueId>> batches = new ArrayList<>();
int objectsSize = objectIds.size();
@@ -24,4 +24,6 @@ public interface LocalSchedulerLink {
UniqueId generateTaskId(UniqueId driverId, UniqueId parentTaskId, int taskIndex);
List<byte[]> wait(byte[][] objectIds, int timeoutMs, int numReturns);
void freePlasmaObjects(List<UniqueId> objectIds, boolean localOnly);
}