mirror of
https://github.com/wassname/ray.git
synced 2026-07-01 15:27:47 +08:00
[Java] Add Plasma Free to Java code path (#2802)
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user