public final class TestWorkflowService extends java.lang.Object implements IWorkflowService
TestWorkflowEnvironment
.Constructor and Description |
---|
TestWorkflowService() |
Modifier and Type | Method and Description |
---|---|
void |
close() |
java.lang.String |
continueAsNew(StartWorkflowExecutionRequest previousRunStartRequest,
WorkflowExecutionContinuedAsNewEventAttributes a,
java.util.Optional<com.uber.cadence.internal.testservice.RetryState> retryState,
java.lang.String identity,
com.uber.cadence.internal.testservice.ExecutionId executionId,
java.util.Optional<com.uber.cadence.internal.testservice.TestWorkflowMutableState> parent,
java.util.OptionalLong parentChildInitiatedEventId)
Creates next run of a workflow execution
|
CountWorkflowExecutionsResponse |
CountWorkflowExecutions(CountWorkflowExecutionsRequest countRequest)
CountWorkflowExecutions is a visibility API to count of workflow executions in a specific domain.
|
void |
CountWorkflowExecutions(CountWorkflowExecutionsRequest countRequest,
org.apache.thrift.async.AsyncMethodCallback resultHandler) |
long |
currentTimeMillis() |
void |
DeprecateDomain(DeprecateDomainRequest deprecateRequest)
DeprecateDomain us used to update status of a registered domain to DEPRECATED.
|
void |
DeprecateDomain(DeprecateDomainRequest deprecateRequest,
org.apache.thrift.async.AsyncMethodCallback resultHandler) |
DescribeDomainResponse |
DescribeDomain(DescribeDomainRequest describeRequest)
DescribeDomain returns the information and configuration for a registered domain.
|
void |
DescribeDomain(DescribeDomainRequest describeRequest,
org.apache.thrift.async.AsyncMethodCallback resultHandler) |
DescribeTaskListResponse |
DescribeTaskList(DescribeTaskListRequest request)
DescribeTaskList returns information about the target tasklist, right now this API returns the
pollers which polled this tasklist in last few minutes.
|
void |
DescribeTaskList(DescribeTaskListRequest request,
org.apache.thrift.async.AsyncMethodCallback resultHandler) |
DescribeWorkflowExecutionResponse |
DescribeWorkflowExecution(DescribeWorkflowExecutionRequest describeRequest)
DescribeWorkflowExecution returns information about the specified workflow execution.
|
void |
DescribeWorkflowExecution(DescribeWorkflowExecutionRequest describeRequest,
org.apache.thrift.async.AsyncMethodCallback resultHandler) |
ClusterInfo |
GetClusterInfo()
GetClusterInfo returns information about cadence cluster
|
void |
GetClusterInfo(org.apache.thrift.async.AsyncMethodCallback resultHandler) |
void |
getDiagnostics(java.lang.StringBuilder result)
Adds diagnostic data about internal service state to the provided
StringBuilder . |
GetSearchAttributesResponse |
GetSearchAttributes()
GetSearchAttributes is a visibility API to get all legal keys that could be used in list APIs
|
void |
GetSearchAttributes(org.apache.thrift.async.AsyncMethodCallback resultHandler) |
GetTaskListsByDomainResponse |
GetTaskListsByDomain(GetTaskListsByDomainRequest request)
GetTaskListsByDomain returns the list of all the task lists for a domainName.
|
void |
GetTaskListsByDomain(GetTaskListsByDomainRequest request,
org.apache.thrift.async.AsyncMethodCallback resultHandler) |
GetWorkflowExecutionHistoryResponse |
GetWorkflowExecutionHistory(GetWorkflowExecutionHistoryRequest getRequest)
Returns the history of specified workflow execution.
|
void |
GetWorkflowExecutionHistory(GetWorkflowExecutionHistoryRequest getRequest,
org.apache.thrift.async.AsyncMethodCallback resultHandler) |
void |
GetWorkflowExecutionHistoryWithTimeout(GetWorkflowExecutionHistoryRequest getRequest,
org.apache.thrift.async.AsyncMethodCallback resultHandler,
java.lang.Long timeoutInMillis)
GetWorkflowExecutionHistoryWithTimeout get workflow history asynchronously same as
GetWorkflowExecutionHistory but with timeout.
|
GetWorkflowExecutionHistoryResponse |
GetWorkflowExecutionHistoryWithTimeout(GetWorkflowExecutionHistoryRequest getRequest,
java.lang.Long timeoutInMillis)
GetWorkflowExecutionHistoryWithTimeout get workflow history same as GetWorkflowExecutionHistory
but with timeout.
|
java.util.concurrent.CompletableFuture<java.lang.Boolean> |
isHealthy()
Checks if we have a valid connection to the Cadence cluster, and potentially resets the peer
list
|
ListArchivedWorkflowExecutionsResponse |
ListArchivedWorkflowExecutions(ListArchivedWorkflowExecutionsRequest listRequest)
ListArchivedWorkflowExecutions is a visibility API to list archived workflow executions in a specific domain.
|
void |
ListArchivedWorkflowExecutions(ListArchivedWorkflowExecutionsRequest listRequest,
org.apache.thrift.async.AsyncMethodCallback resultHandler) |
ListClosedWorkflowExecutionsResponse |
ListClosedWorkflowExecutions(ListClosedWorkflowExecutionsRequest listRequest)
ListClosedWorkflowExecutions is a visibility API to list the closed executions in a specific domain.
|
void |
ListClosedWorkflowExecutions(ListClosedWorkflowExecutionsRequest listRequest,
org.apache.thrift.async.AsyncMethodCallback resultHandler) |
ListDomainsResponse |
ListDomains(ListDomainsRequest listRequest)
ListDomains returns the information and configuration for all domains.
|
void |
ListDomains(ListDomainsRequest listRequest,
org.apache.thrift.async.AsyncMethodCallback resultHandler) |
ListOpenWorkflowExecutionsResponse |
ListOpenWorkflowExecutions(ListOpenWorkflowExecutionsRequest listRequest)
ListOpenWorkflowExecutions is a visibility API to list the open executions in a specific domain.
|
void |
ListOpenWorkflowExecutions(ListOpenWorkflowExecutionsRequest listRequest,
org.apache.thrift.async.AsyncMethodCallback resultHandler) |
ListTaskListPartitionsResponse |
ListTaskListPartitions(ListTaskListPartitionsRequest request)
ReapplyEvents applies stale events to the current workflow and current run
|
void |
ListTaskListPartitions(ListTaskListPartitionsRequest request,
org.apache.thrift.async.AsyncMethodCallback resultHandler) |
ListWorkflowExecutionsResponse |
ListWorkflowExecutions(ListWorkflowExecutionsRequest listRequest)
ListWorkflowExecutions is a visibility API to list workflow executions in a specific domain.
|
void |
ListWorkflowExecutions(ListWorkflowExecutionsRequest listRequest,
org.apache.thrift.async.AsyncMethodCallback resultHandler) |
void |
lockTimeSkipping(java.lang.String caller)
Disables time skipping.
|
PollForActivityTaskResponse |
PollForActivityTask(PollForActivityTaskRequest pollRequest)
PollForActivityTask is called by application worker to process ActivityTask from a specific taskList.
|
void |
PollForActivityTask(PollForActivityTaskRequest pollRequest,
org.apache.thrift.async.AsyncMethodCallback resultHandler) |
PollForDecisionTaskResponse |
PollForDecisionTask(PollForDecisionTaskRequest pollRequest)
PollForDecisionTask is called by application worker to process DecisionTask from a specific taskList.
|
void |
PollForDecisionTask(PollForDecisionTaskRequest pollRequest,
org.apache.thrift.async.AsyncMethodCallback resultHandler) |
QueryWorkflowResponse |
QueryWorkflow(QueryWorkflowRequest queryRequest)
QueryWorkflow returns query result for a specified workflow execution
|
void |
QueryWorkflow(QueryWorkflowRequest queryRequest,
org.apache.thrift.async.AsyncMethodCallback resultHandler) |
RecordActivityTaskHeartbeatResponse |
RecordActivityTaskHeartbeat(RecordActivityTaskHeartbeatRequest heartbeatRequest)
RecordActivityTaskHeartbeat is called by application worker while it is processing an ActivityTask.
|
void |
RecordActivityTaskHeartbeat(RecordActivityTaskHeartbeatRequest heartbeatRequest,
org.apache.thrift.async.AsyncMethodCallback resultHandler) |
RecordActivityTaskHeartbeatResponse |
RecordActivityTaskHeartbeatByID(RecordActivityTaskHeartbeatByIDRequest heartbeatRequest)
RecordActivityTaskHeartbeatByID is called by application worker while it is processing an ActivityTask.
|
void |
RecordActivityTaskHeartbeatByID(RecordActivityTaskHeartbeatByIDRequest heartbeatRequest,
org.apache.thrift.async.AsyncMethodCallback resultHandler) |
void |
RefreshWorkflowTasks(RefreshWorkflowTasksRequest request)
RefreshWorkflowTasks refreshes all tasks of a workflow
|
void |
RefreshWorkflowTasks(RefreshWorkflowTasksRequest request,
org.apache.thrift.async.AsyncMethodCallback resultHandler) |
void |
registerDelayedCallback(java.time.Duration delay,
java.lang.Runnable r)
Invokes callback after the specified delay according to internal service clock.
|
void |
RegisterDomain(RegisterDomainRequest registerRequest)
RegisterDomain creates a new domain which can be used as a container for all resources.
|
void |
RegisterDomain(RegisterDomainRequest registerRequest,
org.apache.thrift.async.AsyncMethodCallback resultHandler) |
void |
RequestCancelWorkflowExecution(RequestCancelWorkflowExecutionRequest cancelRequest)
RequestCancelWorkflowExecution is called by application worker when it wants to request cancellation of a workflow instance.
|
void |
RequestCancelWorkflowExecution(RequestCancelWorkflowExecutionRequest cancelRequest,
org.apache.thrift.async.AsyncMethodCallback resultHandler) |
ResetStickyTaskListResponse |
ResetStickyTaskList(ResetStickyTaskListRequest resetRequest)
Reset the sticky tasklist related information in mutable state of a given workflow.
|
void |
ResetStickyTaskList(ResetStickyTaskListRequest resetRequest,
org.apache.thrift.async.AsyncMethodCallback resultHandler) |
ResetWorkflowExecutionResponse |
ResetWorkflowExecution(ResetWorkflowExecutionRequest resetRequest)
ResetWorkflowExecution reset an existing workflow execution to DecisionTaskCompleted event(exclusive).
|
void |
ResetWorkflowExecution(ResetWorkflowExecutionRequest resetRequest,
org.apache.thrift.async.AsyncMethodCallback resultHandler) |
void |
RespondActivityTaskCanceled(RespondActivityTaskCanceledRequest canceledRequest)
RespondActivityTaskCanceled is called by application worker when it is successfully canceled an ActivityTask.
|
void |
RespondActivityTaskCanceled(RespondActivityTaskCanceledRequest canceledRequest,
org.apache.thrift.async.AsyncMethodCallback resultHandler) |
void |
RespondActivityTaskCanceledByID(RespondActivityTaskCanceledByIDRequest canceledRequest)
RespondActivityTaskCanceledByID is called by application worker when it is successfully canceled an ActivityTask.
|
void |
RespondActivityTaskCanceledByID(RespondActivityTaskCanceledByIDRequest canceledRequest,
org.apache.thrift.async.AsyncMethodCallback resultHandler) |
void |
RespondActivityTaskCompleted(RespondActivityTaskCompletedRequest completeRequest)
RespondActivityTaskCompleted is called by application worker when it is done processing an ActivityTask.
|
void |
RespondActivityTaskCompleted(RespondActivityTaskCompletedRequest completeRequest,
org.apache.thrift.async.AsyncMethodCallback resultHandler) |
void |
RespondActivityTaskCompletedByID(RespondActivityTaskCompletedByIDRequest completeRequest)
RespondActivityTaskCompletedByID is called by application worker when it is done processing an ActivityTask.
|
void |
RespondActivityTaskCompletedByID(RespondActivityTaskCompletedByIDRequest completeRequest,
org.apache.thrift.async.AsyncMethodCallback resultHandler) |
void |
RespondActivityTaskFailed(RespondActivityTaskFailedRequest failRequest)
RespondActivityTaskFailed is called by application worker when it is done processing an ActivityTask.
|
void |
RespondActivityTaskFailed(RespondActivityTaskFailedRequest failRequest,
org.apache.thrift.async.AsyncMethodCallback resultHandler) |
void |
RespondActivityTaskFailedByID(RespondActivityTaskFailedByIDRequest failRequest)
RespondActivityTaskFailedByID is called by application worker when it is done processing an ActivityTask.
|
void |
RespondActivityTaskFailedByID(RespondActivityTaskFailedByIDRequest failRequest,
org.apache.thrift.async.AsyncMethodCallback resultHandler) |
RespondDecisionTaskCompletedResponse |
RespondDecisionTaskCompleted(RespondDecisionTaskCompletedRequest request)
RespondDecisionTaskCompleted is called by application worker to complete a DecisionTask handed as a result of
'PollForDecisionTask' API call.
|
void |
RespondDecisionTaskCompleted(RespondDecisionTaskCompletedRequest completeRequest,
org.apache.thrift.async.AsyncMethodCallback resultHandler) |
void |
RespondDecisionTaskFailed(RespondDecisionTaskFailedRequest failedRequest)
RespondDecisionTaskFailed is called by application worker to indicate failure.
|
void |
RespondDecisionTaskFailed(RespondDecisionTaskFailedRequest failedRequest,
org.apache.thrift.async.AsyncMethodCallback resultHandler) |
void |
RespondQueryTaskCompleted(RespondQueryTaskCompletedRequest completeRequest)
RespondQueryTaskCompleted is called by application worker to complete a QueryTask (which is a DecisionTask for query)
as a result of 'PollForDecisionTask' API call.
|
void |
RespondQueryTaskCompleted(RespondQueryTaskCompletedRequest completeRequest,
org.apache.thrift.async.AsyncMethodCallback resultHandler) |
ListWorkflowExecutionsResponse |
ScanWorkflowExecutions(ListWorkflowExecutionsRequest listRequest)
ScanWorkflowExecutions is a visibility API to list large amount of workflow executions in a specific domain without order.
|
void |
ScanWorkflowExecutions(ListWorkflowExecutionsRequest listRequest,
org.apache.thrift.async.AsyncMethodCallback resultHandler) |
void |
signalExternalWorkflowExecution(java.lang.String signalId,
SignalExternalWorkflowExecutionDecisionAttributes a,
com.uber.cadence.internal.testservice.TestWorkflowMutableState source) |
StartWorkflowExecutionResponse |
SignalWithStartWorkflowExecution(SignalWithStartWorkflowExecutionRequest r)
SignalWithStartWorkflowExecution is used to ensure sending signal to a workflow.
|
void |
SignalWithStartWorkflowExecution(SignalWithStartWorkflowExecutionRequest signalWithStartRequest,
org.apache.thrift.async.AsyncMethodCallback resultHandler) |
void |
SignalWorkflowExecution(SignalWorkflowExecutionRequest signalRequest)
SignalWorkflowExecution is used to send a signal event to running workflow execution.
|
void |
SignalWorkflowExecution(SignalWorkflowExecutionRequest signalRequest,
org.apache.thrift.async.AsyncMethodCallback resultHandler) |
void |
SignalWorkflowExecutionWithTimeout(SignalWorkflowExecutionRequest signalRequest,
org.apache.thrift.async.AsyncMethodCallback resultHandler,
java.lang.Long timeoutInMillis)
SignalWorkflowExecutionWithTimeout signal workflow same as SignalWorkflowExecution but with
timeout
|
void |
sleep(java.time.Duration duration)
Blocks calling thread until internal clock doesn't pass the current + duration time.
|
StartWorkflowExecutionResponse |
StartWorkflowExecution(StartWorkflowExecutionRequest startRequest)
StartWorkflowExecution starts a new long running workflow instance.
|
void |
StartWorkflowExecution(StartWorkflowExecutionRequest startRequest,
org.apache.thrift.async.AsyncMethodCallback resultHandler) |
void |
StartWorkflowExecutionWithTimeout(StartWorkflowExecutionRequest startRequest,
org.apache.thrift.async.AsyncMethodCallback resultHandler,
java.lang.Long timeoutInMillis)
StartWorkflowExecutionWithTimeout start workflow same as StartWorkflowExecution but with
timeout
|
void |
TerminateWorkflowExecution(TerminateWorkflowExecutionRequest terminateRequest)
TerminateWorkflowExecution terminates an existing workflow execution by recording WorkflowExecutionTerminated event
in the history and immediately terminating the execution instance.
|
void |
TerminateWorkflowExecution(TerminateWorkflowExecutionRequest terminateRequest,
org.apache.thrift.async.AsyncMethodCallback resultHandler) |
void |
unlockTimeSkipping(java.lang.String caller) |
UpdateDomainResponse |
UpdateDomain(UpdateDomainRequest updateRequest)
UpdateDomain is used to update the information and configuration for a registered domain.
|
void |
UpdateDomain(UpdateDomainRequest updateRequest,
org.apache.thrift.async.AsyncMethodCallback resultHandler) |
public void close()
close
in interface IWorkflowService
public void RegisterDomain(RegisterDomainRequest registerRequest) throws BadRequestError, InternalServiceError, DomainAlreadyExistsError, org.apache.thrift.TException
WorkflowService.Iface
RegisterDomain
in interface WorkflowService.Iface
BadRequestError
InternalServiceError
DomainAlreadyExistsError
org.apache.thrift.TException
public DescribeDomainResponse DescribeDomain(DescribeDomainRequest describeRequest) throws BadRequestError, InternalServiceError, EntityNotExistsError, org.apache.thrift.TException
WorkflowService.Iface
DescribeDomain
in interface WorkflowService.Iface
BadRequestError
InternalServiceError
EntityNotExistsError
org.apache.thrift.TException
public ListDomainsResponse ListDomains(ListDomainsRequest listRequest) throws BadRequestError, InternalServiceError, EntityNotExistsError, ServiceBusyError, org.apache.thrift.TException
WorkflowService.Iface
ListDomains
in interface WorkflowService.Iface
BadRequestError
InternalServiceError
EntityNotExistsError
ServiceBusyError
org.apache.thrift.TException
public UpdateDomainResponse UpdateDomain(UpdateDomainRequest updateRequest) throws BadRequestError, InternalServiceError, EntityNotExistsError, org.apache.thrift.TException
WorkflowService.Iface
UpdateDomain
in interface WorkflowService.Iface
BadRequestError
InternalServiceError
EntityNotExistsError
org.apache.thrift.TException
public void DeprecateDomain(DeprecateDomainRequest deprecateRequest) throws BadRequestError, InternalServiceError, EntityNotExistsError, org.apache.thrift.TException
WorkflowService.Iface
DeprecateDomain
in interface WorkflowService.Iface
BadRequestError
InternalServiceError
EntityNotExistsError
org.apache.thrift.TException
public GetTaskListsByDomainResponse GetTaskListsByDomain(GetTaskListsByDomainRequest request) throws BadRequestError, EntityNotExistsError, LimitExceededError, ServiceBusyError, ClientVersionNotSupportedError, org.apache.thrift.TException
WorkflowService.Iface
GetTaskListsByDomain
in interface WorkflowService.Iface
BadRequestError
EntityNotExistsError
LimitExceededError
ServiceBusyError
ClientVersionNotSupportedError
org.apache.thrift.TException
public StartWorkflowExecutionResponse StartWorkflowExecution(StartWorkflowExecutionRequest startRequest) throws org.apache.thrift.TException
WorkflowService.Iface
StartWorkflowExecution
in interface WorkflowService.Iface
org.apache.thrift.TException
public GetWorkflowExecutionHistoryResponse GetWorkflowExecutionHistory(GetWorkflowExecutionHistoryRequest getRequest) throws BadRequestError, InternalServiceError, EntityNotExistsError, ServiceBusyError, org.apache.thrift.TException
WorkflowService.Iface
GetWorkflowExecutionHistory
in interface WorkflowService.Iface
BadRequestError
InternalServiceError
EntityNotExistsError
ServiceBusyError
org.apache.thrift.TException
public GetWorkflowExecutionHistoryResponse GetWorkflowExecutionHistoryWithTimeout(GetWorkflowExecutionHistoryRequest getRequest, java.lang.Long timeoutInMillis) throws BadRequestError, InternalServiceError, EntityNotExistsError, ServiceBusyError, org.apache.thrift.TException
IWorkflowService
GetWorkflowExecutionHistoryWithTimeout
in interface IWorkflowService
org.apache.thrift.TException
BadRequestError
InternalServiceError
EntityNotExistsError
ServiceBusyError
public PollForDecisionTaskResponse PollForDecisionTask(PollForDecisionTaskRequest pollRequest) throws BadRequestError, InternalServiceError, ServiceBusyError, org.apache.thrift.TException
WorkflowService.Iface
PollForDecisionTask
in interface WorkflowService.Iface
BadRequestError
InternalServiceError
ServiceBusyError
org.apache.thrift.TException
public RespondDecisionTaskCompletedResponse RespondDecisionTaskCompleted(RespondDecisionTaskCompletedRequest request) throws BadRequestError, InternalServiceError, EntityNotExistsError, org.apache.thrift.TException
WorkflowService.Iface
RespondDecisionTaskCompleted
in interface WorkflowService.Iface
BadRequestError
InternalServiceError
EntityNotExistsError
org.apache.thrift.TException
public void RespondDecisionTaskFailed(RespondDecisionTaskFailedRequest failedRequest) throws BadRequestError, InternalServiceError, EntityNotExistsError, org.apache.thrift.TException
WorkflowService.Iface
RespondDecisionTaskFailed
in interface WorkflowService.Iface
BadRequestError
InternalServiceError
EntityNotExistsError
org.apache.thrift.TException
public PollForActivityTaskResponse PollForActivityTask(PollForActivityTaskRequest pollRequest) throws BadRequestError, InternalServiceError, ServiceBusyError, org.apache.thrift.TException
WorkflowService.Iface
PollForActivityTask
in interface WorkflowService.Iface
BadRequestError
InternalServiceError
ServiceBusyError
org.apache.thrift.TException
public RecordActivityTaskHeartbeatResponse RecordActivityTaskHeartbeat(RecordActivityTaskHeartbeatRequest heartbeatRequest) throws BadRequestError, InternalServiceError, EntityNotExistsError, org.apache.thrift.TException
WorkflowService.Iface
RecordActivityTaskHeartbeat
in interface WorkflowService.Iface
BadRequestError
InternalServiceError
EntityNotExistsError
org.apache.thrift.TException
public RecordActivityTaskHeartbeatResponse RecordActivityTaskHeartbeatByID(RecordActivityTaskHeartbeatByIDRequest heartbeatRequest) throws BadRequestError, InternalServiceError, EntityNotExistsError, DomainNotActiveError, LimitExceededError, ServiceBusyError, org.apache.thrift.TException
WorkflowService.Iface
RecordActivityTaskHeartbeatByID
in interface WorkflowService.Iface
BadRequestError
InternalServiceError
EntityNotExistsError
DomainNotActiveError
LimitExceededError
ServiceBusyError
org.apache.thrift.TException
public void RespondActivityTaskCompleted(RespondActivityTaskCompletedRequest completeRequest) throws BadRequestError, InternalServiceError, EntityNotExistsError, org.apache.thrift.TException
WorkflowService.Iface
RespondActivityTaskCompleted
in interface WorkflowService.Iface
BadRequestError
InternalServiceError
EntityNotExistsError
org.apache.thrift.TException
public void RespondActivityTaskCompletedByID(RespondActivityTaskCompletedByIDRequest completeRequest) throws BadRequestError, InternalServiceError, EntityNotExistsError, org.apache.thrift.TException
WorkflowService.Iface
RespondActivityTaskCompletedByID
in interface WorkflowService.Iface
BadRequestError
InternalServiceError
EntityNotExistsError
org.apache.thrift.TException
public void RespondActivityTaskFailed(RespondActivityTaskFailedRequest failRequest) throws BadRequestError, InternalServiceError, EntityNotExistsError, org.apache.thrift.TException
WorkflowService.Iface
RespondActivityTaskFailed
in interface WorkflowService.Iface
BadRequestError
InternalServiceError
EntityNotExistsError
org.apache.thrift.TException
public void RespondActivityTaskFailedByID(RespondActivityTaskFailedByIDRequest failRequest) throws BadRequestError, InternalServiceError, EntityNotExistsError, org.apache.thrift.TException
WorkflowService.Iface
RespondActivityTaskFailedByID
in interface WorkflowService.Iface
BadRequestError
InternalServiceError
EntityNotExistsError
org.apache.thrift.TException
public void RespondActivityTaskCanceled(RespondActivityTaskCanceledRequest canceledRequest) throws BadRequestError, InternalServiceError, EntityNotExistsError, org.apache.thrift.TException
WorkflowService.Iface
RespondActivityTaskCanceled
in interface WorkflowService.Iface
BadRequestError
InternalServiceError
EntityNotExistsError
org.apache.thrift.TException
public void RespondActivityTaskCanceledByID(RespondActivityTaskCanceledByIDRequest canceledRequest) throws BadRequestError, InternalServiceError, EntityNotExistsError, org.apache.thrift.TException
WorkflowService.Iface
RespondActivityTaskCanceledByID
in interface WorkflowService.Iface
BadRequestError
InternalServiceError
EntityNotExistsError
org.apache.thrift.TException
public void RequestCancelWorkflowExecution(RequestCancelWorkflowExecutionRequest cancelRequest) throws org.apache.thrift.TException
WorkflowService.Iface
RequestCancelWorkflowExecution
in interface WorkflowService.Iface
org.apache.thrift.TException
public void SignalWorkflowExecution(SignalWorkflowExecutionRequest signalRequest) throws org.apache.thrift.TException
WorkflowService.Iface
SignalWorkflowExecution
in interface WorkflowService.Iface
org.apache.thrift.TException
public StartWorkflowExecutionResponse SignalWithStartWorkflowExecution(SignalWithStartWorkflowExecutionRequest r) throws BadRequestError, InternalServiceError, EntityNotExistsError, ServiceBusyError, DomainNotActiveError, LimitExceededError, WorkflowExecutionAlreadyStartedError, org.apache.thrift.TException
WorkflowService.Iface
SignalWithStartWorkflowExecution
in interface WorkflowService.Iface
BadRequestError
InternalServiceError
EntityNotExistsError
ServiceBusyError
DomainNotActiveError
LimitExceededError
WorkflowExecutionAlreadyStartedError
org.apache.thrift.TException
public ResetWorkflowExecutionResponse ResetWorkflowExecution(ResetWorkflowExecutionRequest resetRequest) throws BadRequestError, InternalServiceError, EntityNotExistsError, ServiceBusyError, DomainNotActiveError, LimitExceededError, ClientVersionNotSupportedError, org.apache.thrift.TException
WorkflowService.Iface
ResetWorkflowExecution
in interface WorkflowService.Iface
BadRequestError
InternalServiceError
EntityNotExistsError
ServiceBusyError
DomainNotActiveError
LimitExceededError
ClientVersionNotSupportedError
org.apache.thrift.TException
public void signalExternalWorkflowExecution(java.lang.String signalId, SignalExternalWorkflowExecutionDecisionAttributes a, com.uber.cadence.internal.testservice.TestWorkflowMutableState source) throws InternalServiceError, EntityNotExistsError, WorkflowExecutionAlreadyCompletedError, BadRequestError
public void TerminateWorkflowExecution(TerminateWorkflowExecutionRequest terminateRequest) throws BadRequestError, InternalServiceError, EntityNotExistsError, ServiceBusyError, org.apache.thrift.TException
WorkflowService.Iface
TerminateWorkflowExecution
in interface WorkflowService.Iface
BadRequestError
InternalServiceError
EntityNotExistsError
ServiceBusyError
org.apache.thrift.TException
public java.lang.String continueAsNew(StartWorkflowExecutionRequest previousRunStartRequest, WorkflowExecutionContinuedAsNewEventAttributes a, java.util.Optional<com.uber.cadence.internal.testservice.RetryState> retryState, java.lang.String identity, com.uber.cadence.internal.testservice.ExecutionId executionId, java.util.Optional<com.uber.cadence.internal.testservice.TestWorkflowMutableState> parent, java.util.OptionalLong parentChildInitiatedEventId) throws InternalServiceError, BadRequestError
InternalServiceError
BadRequestError
public ListOpenWorkflowExecutionsResponse ListOpenWorkflowExecutions(ListOpenWorkflowExecutionsRequest listRequest) throws BadRequestError, InternalServiceError, EntityNotExistsError, ServiceBusyError, org.apache.thrift.TException
WorkflowService.Iface
ListOpenWorkflowExecutions
in interface WorkflowService.Iface
BadRequestError
InternalServiceError
EntityNotExistsError
ServiceBusyError
org.apache.thrift.TException
public ListClosedWorkflowExecutionsResponse ListClosedWorkflowExecutions(ListClosedWorkflowExecutionsRequest listRequest) throws BadRequestError, InternalServiceError, EntityNotExistsError, ServiceBusyError, org.apache.thrift.TException
WorkflowService.Iface
ListClosedWorkflowExecutions
in interface WorkflowService.Iface
BadRequestError
InternalServiceError
EntityNotExistsError
ServiceBusyError
org.apache.thrift.TException
public ListWorkflowExecutionsResponse ListWorkflowExecutions(ListWorkflowExecutionsRequest listRequest) throws BadRequestError, InternalServiceError, EntityNotExistsError, ServiceBusyError, ClientVersionNotSupportedError, org.apache.thrift.TException
WorkflowService.Iface
ListWorkflowExecutions
in interface WorkflowService.Iface
BadRequestError
InternalServiceError
EntityNotExistsError
ServiceBusyError
ClientVersionNotSupportedError
org.apache.thrift.TException
public ListArchivedWorkflowExecutionsResponse ListArchivedWorkflowExecutions(ListArchivedWorkflowExecutionsRequest listRequest) throws BadRequestError, EntityNotExistsError, ServiceBusyError, ClientVersionNotSupportedError, org.apache.thrift.TException
WorkflowService.Iface
ListArchivedWorkflowExecutions
in interface WorkflowService.Iface
BadRequestError
EntityNotExistsError
ServiceBusyError
ClientVersionNotSupportedError
org.apache.thrift.TException
public ListWorkflowExecutionsResponse ScanWorkflowExecutions(ListWorkflowExecutionsRequest listRequest) throws BadRequestError, InternalServiceError, EntityNotExistsError, ServiceBusyError, ClientVersionNotSupportedError, org.apache.thrift.TException
WorkflowService.Iface
ScanWorkflowExecutions
in interface WorkflowService.Iface
BadRequestError
InternalServiceError
EntityNotExistsError
ServiceBusyError
ClientVersionNotSupportedError
org.apache.thrift.TException
public CountWorkflowExecutionsResponse CountWorkflowExecutions(CountWorkflowExecutionsRequest countRequest) throws BadRequestError, InternalServiceError, EntityNotExistsError, ServiceBusyError, ClientVersionNotSupportedError, org.apache.thrift.TException
WorkflowService.Iface
CountWorkflowExecutions
in interface WorkflowService.Iface
BadRequestError
InternalServiceError
EntityNotExistsError
ServiceBusyError
ClientVersionNotSupportedError
org.apache.thrift.TException
public GetSearchAttributesResponse GetSearchAttributes() throws InternalServiceError, ServiceBusyError, ClientVersionNotSupportedError, org.apache.thrift.TException
WorkflowService.Iface
GetSearchAttributes
in interface WorkflowService.Iface
InternalServiceError
ServiceBusyError
ClientVersionNotSupportedError
org.apache.thrift.TException
public void RespondQueryTaskCompleted(RespondQueryTaskCompletedRequest completeRequest) throws BadRequestError, InternalServiceError, EntityNotExistsError, org.apache.thrift.TException
WorkflowService.Iface
RespondQueryTaskCompleted
in interface WorkflowService.Iface
BadRequestError
InternalServiceError
EntityNotExistsError
org.apache.thrift.TException
public ResetStickyTaskListResponse ResetStickyTaskList(ResetStickyTaskListRequest resetRequest) throws BadRequestError, InternalServiceError, EntityNotExistsError, LimitExceededError, ServiceBusyError, DomainNotActiveError, org.apache.thrift.TException
WorkflowService.Iface
ResetStickyTaskList
in interface WorkflowService.Iface
BadRequestError
InternalServiceError
EntityNotExistsError
LimitExceededError
ServiceBusyError
DomainNotActiveError
org.apache.thrift.TException
public QueryWorkflowResponse QueryWorkflow(QueryWorkflowRequest queryRequest) throws BadRequestError, InternalServiceError, EntityNotExistsError, QueryFailedError, org.apache.thrift.TException
WorkflowService.Iface
QueryWorkflow
in interface WorkflowService.Iface
BadRequestError
InternalServiceError
EntityNotExistsError
QueryFailedError
org.apache.thrift.TException
public DescribeWorkflowExecutionResponse DescribeWorkflowExecution(DescribeWorkflowExecutionRequest describeRequest) throws BadRequestError, InternalServiceError, EntityNotExistsError, org.apache.thrift.TException
WorkflowService.Iface
DescribeWorkflowExecution
in interface WorkflowService.Iface
BadRequestError
InternalServiceError
EntityNotExistsError
org.apache.thrift.TException
public DescribeTaskListResponse DescribeTaskList(DescribeTaskListRequest request) throws BadRequestError, InternalServiceError, EntityNotExistsError, org.apache.thrift.TException
WorkflowService.Iface
DescribeTaskList
in interface WorkflowService.Iface
BadRequestError
InternalServiceError
EntityNotExistsError
org.apache.thrift.TException
public ClusterInfo GetClusterInfo() throws InternalServiceError, ServiceBusyError, org.apache.thrift.TException
WorkflowService.Iface
GetClusterInfo
in interface WorkflowService.Iface
InternalServiceError
ServiceBusyError
org.apache.thrift.TException
public ListTaskListPartitionsResponse ListTaskListPartitions(ListTaskListPartitionsRequest request) throws BadRequestError, EntityNotExistsError, LimitExceededError, ServiceBusyError, org.apache.thrift.TException
WorkflowService.Iface
ListTaskListPartitions
in interface WorkflowService.Iface
BadRequestError
EntityNotExistsError
LimitExceededError
ServiceBusyError
org.apache.thrift.TException
public void RefreshWorkflowTasks(RefreshWorkflowTasksRequest request) throws BadRequestError, DomainNotActiveError, ServiceBusyError, EntityNotExistsError, org.apache.thrift.TException
WorkflowService.Iface
RefreshWorkflowTasks
in interface WorkflowService.Iface
BadRequestError
DomainNotActiveError
ServiceBusyError
EntityNotExistsError
org.apache.thrift.TException
public void RegisterDomain(RegisterDomainRequest registerRequest, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException
RegisterDomain
in interface WorkflowService.AsyncIface
org.apache.thrift.TException
public void DescribeDomain(DescribeDomainRequest describeRequest, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException
DescribeDomain
in interface WorkflowService.AsyncIface
org.apache.thrift.TException
public void ListDomains(ListDomainsRequest listRequest, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException
ListDomains
in interface WorkflowService.AsyncIface
org.apache.thrift.TException
public void UpdateDomain(UpdateDomainRequest updateRequest, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException
UpdateDomain
in interface WorkflowService.AsyncIface
org.apache.thrift.TException
public void DeprecateDomain(DeprecateDomainRequest deprecateRequest, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException
DeprecateDomain
in interface WorkflowService.AsyncIface
org.apache.thrift.TException
public void GetTaskListsByDomain(GetTaskListsByDomainRequest request, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException
GetTaskListsByDomain
in interface WorkflowService.AsyncIface
org.apache.thrift.TException
public void StartWorkflowExecution(StartWorkflowExecutionRequest startRequest, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException
StartWorkflowExecution
in interface WorkflowService.AsyncIface
org.apache.thrift.TException
public void StartWorkflowExecutionWithTimeout(StartWorkflowExecutionRequest startRequest, org.apache.thrift.async.AsyncMethodCallback resultHandler, java.lang.Long timeoutInMillis) throws org.apache.thrift.TException
IWorkflowService
StartWorkflowExecutionWithTimeout
in interface IWorkflowService
org.apache.thrift.TException
public void GetWorkflowExecutionHistory(GetWorkflowExecutionHistoryRequest getRequest, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException
GetWorkflowExecutionHistory
in interface WorkflowService.AsyncIface
org.apache.thrift.TException
public void GetWorkflowExecutionHistoryWithTimeout(GetWorkflowExecutionHistoryRequest getRequest, org.apache.thrift.async.AsyncMethodCallback resultHandler, java.lang.Long timeoutInMillis) throws org.apache.thrift.TException
IWorkflowService
GetWorkflowExecutionHistoryWithTimeout
in interface IWorkflowService
org.apache.thrift.TException
public java.util.concurrent.CompletableFuture<java.lang.Boolean> isHealthy()
IWorkflowService
isHealthy
in interface IWorkflowService
public void PollForDecisionTask(PollForDecisionTaskRequest pollRequest, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException
PollForDecisionTask
in interface WorkflowService.AsyncIface
org.apache.thrift.TException
public void RespondDecisionTaskCompleted(RespondDecisionTaskCompletedRequest completeRequest, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException
RespondDecisionTaskCompleted
in interface WorkflowService.AsyncIface
org.apache.thrift.TException
public void RespondDecisionTaskFailed(RespondDecisionTaskFailedRequest failedRequest, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException
RespondDecisionTaskFailed
in interface WorkflowService.AsyncIface
org.apache.thrift.TException
public void PollForActivityTask(PollForActivityTaskRequest pollRequest, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException
PollForActivityTask
in interface WorkflowService.AsyncIface
org.apache.thrift.TException
public void RecordActivityTaskHeartbeat(RecordActivityTaskHeartbeatRequest heartbeatRequest, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException
RecordActivityTaskHeartbeat
in interface WorkflowService.AsyncIface
org.apache.thrift.TException
public void RecordActivityTaskHeartbeatByID(RecordActivityTaskHeartbeatByIDRequest heartbeatRequest, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException
RecordActivityTaskHeartbeatByID
in interface WorkflowService.AsyncIface
org.apache.thrift.TException
public void RespondActivityTaskCompleted(RespondActivityTaskCompletedRequest completeRequest, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException
RespondActivityTaskCompleted
in interface WorkflowService.AsyncIface
org.apache.thrift.TException
public void RespondActivityTaskCompletedByID(RespondActivityTaskCompletedByIDRequest completeRequest, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException
RespondActivityTaskCompletedByID
in interface WorkflowService.AsyncIface
org.apache.thrift.TException
public void RespondActivityTaskFailed(RespondActivityTaskFailedRequest failRequest, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException
RespondActivityTaskFailed
in interface WorkflowService.AsyncIface
org.apache.thrift.TException
public void RespondActivityTaskFailedByID(RespondActivityTaskFailedByIDRequest failRequest, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException
RespondActivityTaskFailedByID
in interface WorkflowService.AsyncIface
org.apache.thrift.TException
public void RespondActivityTaskCanceled(RespondActivityTaskCanceledRequest canceledRequest, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException
RespondActivityTaskCanceled
in interface WorkflowService.AsyncIface
org.apache.thrift.TException
public void RespondActivityTaskCanceledByID(RespondActivityTaskCanceledByIDRequest canceledRequest, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException
RespondActivityTaskCanceledByID
in interface WorkflowService.AsyncIface
org.apache.thrift.TException
public void RequestCancelWorkflowExecution(RequestCancelWorkflowExecutionRequest cancelRequest, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException
RequestCancelWorkflowExecution
in interface WorkflowService.AsyncIface
org.apache.thrift.TException
public void SignalWorkflowExecution(SignalWorkflowExecutionRequest signalRequest, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException
SignalWorkflowExecution
in interface WorkflowService.AsyncIface
org.apache.thrift.TException
public void SignalWorkflowExecutionWithTimeout(SignalWorkflowExecutionRequest signalRequest, org.apache.thrift.async.AsyncMethodCallback resultHandler, java.lang.Long timeoutInMillis) throws org.apache.thrift.TException
IWorkflowService
SignalWorkflowExecutionWithTimeout
in interface IWorkflowService
org.apache.thrift.TException
public void SignalWithStartWorkflowExecution(SignalWithStartWorkflowExecutionRequest signalWithStartRequest, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException
SignalWithStartWorkflowExecution
in interface WorkflowService.AsyncIface
org.apache.thrift.TException
public void ResetWorkflowExecution(ResetWorkflowExecutionRequest resetRequest, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException
ResetWorkflowExecution
in interface WorkflowService.AsyncIface
org.apache.thrift.TException
public void TerminateWorkflowExecution(TerminateWorkflowExecutionRequest terminateRequest, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException
TerminateWorkflowExecution
in interface WorkflowService.AsyncIface
org.apache.thrift.TException
public void ListOpenWorkflowExecutions(ListOpenWorkflowExecutionsRequest listRequest, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException
ListOpenWorkflowExecutions
in interface WorkflowService.AsyncIface
org.apache.thrift.TException
public void ListClosedWorkflowExecutions(ListClosedWorkflowExecutionsRequest listRequest, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException
ListClosedWorkflowExecutions
in interface WorkflowService.AsyncIface
org.apache.thrift.TException
public void ListWorkflowExecutions(ListWorkflowExecutionsRequest listRequest, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException
ListWorkflowExecutions
in interface WorkflowService.AsyncIface
org.apache.thrift.TException
public void ListArchivedWorkflowExecutions(ListArchivedWorkflowExecutionsRequest listRequest, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException
ListArchivedWorkflowExecutions
in interface WorkflowService.AsyncIface
org.apache.thrift.TException
public void ScanWorkflowExecutions(ListWorkflowExecutionsRequest listRequest, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException
ScanWorkflowExecutions
in interface WorkflowService.AsyncIface
org.apache.thrift.TException
public void CountWorkflowExecutions(CountWorkflowExecutionsRequest countRequest, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException
CountWorkflowExecutions
in interface WorkflowService.AsyncIface
org.apache.thrift.TException
public void GetSearchAttributes(org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException
GetSearchAttributes
in interface WorkflowService.AsyncIface
org.apache.thrift.TException
public void RespondQueryTaskCompleted(RespondQueryTaskCompletedRequest completeRequest, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException
RespondQueryTaskCompleted
in interface WorkflowService.AsyncIface
org.apache.thrift.TException
public void ResetStickyTaskList(ResetStickyTaskListRequest resetRequest, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException
ResetStickyTaskList
in interface WorkflowService.AsyncIface
org.apache.thrift.TException
public void QueryWorkflow(QueryWorkflowRequest queryRequest, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException
QueryWorkflow
in interface WorkflowService.AsyncIface
org.apache.thrift.TException
public void DescribeWorkflowExecution(DescribeWorkflowExecutionRequest describeRequest, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException
DescribeWorkflowExecution
in interface WorkflowService.AsyncIface
org.apache.thrift.TException
public void DescribeTaskList(DescribeTaskListRequest request, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException
DescribeTaskList
in interface WorkflowService.AsyncIface
org.apache.thrift.TException
public void GetClusterInfo(org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException
GetClusterInfo
in interface WorkflowService.AsyncIface
org.apache.thrift.TException
public void ListTaskListPartitions(ListTaskListPartitionsRequest request, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException
ListTaskListPartitions
in interface WorkflowService.AsyncIface
org.apache.thrift.TException
public void RefreshWorkflowTasks(RefreshWorkflowTasksRequest request, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException
RefreshWorkflowTasks
in interface WorkflowService.AsyncIface
org.apache.thrift.TException
public void getDiagnostics(java.lang.StringBuilder result)
StringBuilder
.
Currently includes histories of all workflow instances stored in the service.public long currentTimeMillis()
public void registerDelayedCallback(java.time.Duration delay, java.lang.Runnable r)
public void lockTimeSkipping(java.lang.String caller)
unlockTimeSkipping(String)
. These calls
are counted, so calling unlock does not guarantee that time is going to be skipped immediately
as another lock can be holding it.public void unlockTimeSkipping(java.lang.String caller)
public void sleep(java.time.Duration duration)