[Java] Remove non-raylet code in Java. (#2828)

This commit is contained in:
Wang Qing
2018-09-06 14:54:13 +08:00
committed by Hao Chen
parent d81605e9e7
commit 7e13e1fd49
23 changed files with 159 additions and 785 deletions
@@ -3,6 +3,9 @@ package org.ray.spi.impl;
import java.util.List;
import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;
import org.ray.api.RayObject;
import org.ray.api.WaitResult;
import org.ray.api.id.UniqueId;
import org.ray.core.LocalFunctionManager;
import org.ray.core.Worker;
@@ -70,16 +73,6 @@ public class MockLocalScheduler implements LocalSchedulerLink {
throw new RuntimeException("invalid execution flow here");
}
@Override
public void markTaskPutDependency(UniqueId taskId, UniqueId objectId) {
}
@Override
public void reconstructObject(UniqueId objectId, boolean fetchOnly) {
}
@Override
public void reconstructObjects(List<UniqueId> objectIds, boolean fetchOnly) {
@@ -96,8 +89,8 @@ public class MockLocalScheduler implements LocalSchedulerLink {
}
@Override
public List<byte[]> wait(byte[][] objectIds, int timeoutMs, int numReturns) {
return store.wait(objectIds, timeoutMs, numReturns);
public <T> WaitResult<T> wait(List<RayObject<T>> waitFor, int numReturns, int timeoutMs) {
throw new RuntimeException("Not implemented here.");
}
@Override