Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove unimplememnted methods #969

Closed
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@
import com.uber.cadence.GetTaskListsByDomainRequest;
import com.uber.cadence.GetTaskListsByDomainResponse;
import com.uber.cadence.activity.ActivityOptions;
import com.uber.cadence.activity.LocalActivityOptions;
import com.uber.cadence.internal.metrics.NoopScope;
import com.uber.cadence.internal.worker.ActivityTaskHandler;
import com.uber.cadence.internal.worker.ActivityTaskHandler.Result;
Expand All @@ -31,26 +30,19 @@
import com.uber.cadence.testing.TestActivityEnvironment;
import com.uber.cadence.testing.TestEnvironmentOptions;
import com.uber.cadence.workflow.*;
import com.uber.cadence.workflow.Functions.Func;
import com.uber.cadence.workflow.Functions.Func1;
import java.lang.reflect.InvocationHandler;
import java.lang.reflect.Proxy;
import java.lang.reflect.Type;
import java.nio.charset.StandardCharsets;
import java.time.Duration;
import java.util.Map;
import java.util.Objects;
import java.util.Optional;
import java.util.Random;
import java.util.UUID;
import java.util.concurrent.CancellationException;
import java.util.concurrent.CompletableFuture;
import java.util.concurrent.Executors;
import java.util.concurrent.ScheduledExecutorService;
import java.util.concurrent.atomic.AtomicInteger;
import java.util.function.BiPredicate;
import java.util.function.Consumer;
import java.util.function.Supplier;
import org.apache.thrift.TException;
import org.apache.thrift.async.AsyncMethodCallback;

Expand Down Expand Up @@ -164,105 +156,6 @@ public <T> Promise<T> executeActivity(
return Workflow.newPromise(getReply(task, taskResult, resultClass, resultType));
}

@Override
public <R> Promise<R> executeLocalActivity(
String activityName,
Class<R> resultClass,
Type resultType,
Object[] args,
LocalActivityOptions options) {
throw new UnsupportedOperationException("not implemented");
}

@Override
public <R> WorkflowResult<R> executeChildWorkflow(
String workflowType,
Class<R> resultClass,
Type resultType,
Object[] args,
ChildWorkflowOptions options) {
throw new UnsupportedOperationException("not implemented");
}

@Override
public Random newRandom() {
throw new UnsupportedOperationException("not implemented");
}

@Override
public Promise<Void> signalExternalWorkflow(
String domain, WorkflowExecution execution, String signalName, Object[] args) {
throw new UnsupportedOperationException("not implemented");
}

@Override
public Promise<Void> signalExternalWorkflow(
WorkflowExecution execution, String signalName, Object[] args) {
throw new UnsupportedOperationException("not implemented");
}

@Override
public Promise<Void> cancelWorkflow(WorkflowExecution execution) {
throw new UnsupportedOperationException("not implemented");
}

@Override
public void sleep(Duration duration) {
throw new UnsupportedOperationException("not implemented");
}

@Override
public boolean await(Duration timeout, String reason, Supplier<Boolean> unblockCondition) {
throw new UnsupportedOperationException("not implemented");
}

@Override
public void await(String reason, Supplier<Boolean> unblockCondition) {
throw new UnsupportedOperationException("not implemented");
}

@Override
public Promise<Void> newTimer(Duration duration) {
throw new UnsupportedOperationException("not implemented");
}

@Override
public <R> R sideEffect(Class<R> resultClass, Type resultType, Func<R> func) {
throw new UnsupportedOperationException("not implemented");
}

@Override
public <R> R mutableSideEffect(
String id, Class<R> resultClass, Type resultType, BiPredicate<R, R> updated, Func<R> func) {
throw new UnsupportedOperationException("not implemented");
}

@Override
public int getVersion(String changeID, int minSupported, int maxSupported) {
throw new UnsupportedOperationException("not implemented");
}

@Override
public void continueAsNew(
Optional<String> workflowType, Optional<ContinueAsNewOptions> options, Object[] args) {
throw new UnsupportedOperationException("not implemented");
}

@Override
public void registerQuery(String queryType, Type[] argTypes, Func1<Object[], Object> callback) {
throw new UnsupportedOperationException("not implemented");
}

@Override
public UUID randomUUID() {
throw new UnsupportedOperationException("not implemented");
}

@Override
public void upsertSearchAttributes(Map<String, Object> searchAttributes) {
throw new UnsupportedOperationException("not implemented");
}

private <T> T getReply(
PollForActivityTaskResponse task,
ActivityTaskHandler.Result response,
Expand Down