mirror of
https://github.com/hanzoai/tasks.git
synced 2026-11-03 03:56:04 +00:00
## Notes for reviewers I don't consider this a final approach but I do think it's a step in the right direction, we need to model more state machines on top of this to form a more solid API. Note that mutable state itself is registered as a state machine in the HSM framework and used as the root node in the HSM tree. It's a bit annoying that all of the unit tests need to register the workflow state machine but I think this is ended up being the cleanest approach from the HSM framework perspective. There's still some follow-up work, like collapsing timer tasks and support for interacting with history event, that I'll take on later. Replication support for the framework will also come at a later time. - See discussions in related PRs (#5446, #5495) ## What changed? - Modified the statemachines abstraction to be a bit more generic - Rewrote callbacks as a plugin using this framework ## Why? This centralizes most the callback code in the plugin directory instead of having it spread out the entire project moving common concerns such as staleness checks, task generation, and (in the future) replication into a framework and should generally help speed up feature delivery and maintainability. I plan to leverage this framework when implementing Nexus operations. ## How did you test it? Existing tests from the feature branch and added unit tests.
1502 lines
64 KiB
Go
1502 lines
64 KiB
Go
// The MIT License
|
|
//
|
|
// Copyright (c) 2020 Temporal Technologies Inc. All rights reserved.
|
|
//
|
|
// Copyright (c) 2020 Uber Technologies, Inc.
|
|
//
|
|
// Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
// of this software and associated documentation files (the "Software"), to deal
|
|
// in the Software without restriction, including without limitation the rights
|
|
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
// copies of the Software, and to permit persons to whom the Software is
|
|
// furnished to do so, subject to the following conditions:
|
|
//
|
|
// The above copyright notice and this permission notice shall be included in
|
|
// all copies or substantial portions of the Software.
|
|
//
|
|
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
// THE SOFTWARE.
|
|
|
|
// Code generated by MockGen. DO NOT EDIT.
|
|
// Source: context.go
|
|
|
|
// Package shard is a generated GoMock package.
|
|
package shard
|
|
|
|
import (
|
|
context "context"
|
|
reflect "reflect"
|
|
time "time"
|
|
|
|
gomock "github.com/golang/mock/gomock"
|
|
v1 "go.temporal.io/api/common/v1"
|
|
v10 "go.temporal.io/server/api/adminservice/v1"
|
|
v11 "go.temporal.io/server/api/clock/v1"
|
|
v12 "go.temporal.io/server/api/historyservice/v1"
|
|
v13 "go.temporal.io/server/api/persistence/v1"
|
|
common "go.temporal.io/server/common"
|
|
archiver "go.temporal.io/server/common/archiver"
|
|
clock "go.temporal.io/server/common/clock"
|
|
cluster "go.temporal.io/server/common/cluster"
|
|
definition "go.temporal.io/server/common/definition"
|
|
log "go.temporal.io/server/common/log"
|
|
metrics "go.temporal.io/server/common/metrics"
|
|
namespace "go.temporal.io/server/common/namespace"
|
|
persistence "go.temporal.io/server/common/persistence"
|
|
serialization "go.temporal.io/server/common/persistence/serialization"
|
|
searchattribute "go.temporal.io/server/common/searchattribute"
|
|
configs "go.temporal.io/server/service/history/configs"
|
|
events "go.temporal.io/server/service/history/events"
|
|
hsm "go.temporal.io/server/service/history/hsm"
|
|
tasks "go.temporal.io/server/service/history/tasks"
|
|
)
|
|
|
|
// MockContext is a mock of Context interface.
|
|
type MockContext struct {
|
|
ctrl *gomock.Controller
|
|
recorder *MockContextMockRecorder
|
|
}
|
|
|
|
// MockContextMockRecorder is the mock recorder for MockContext.
|
|
type MockContextMockRecorder struct {
|
|
mock *MockContext
|
|
}
|
|
|
|
// NewMockContext creates a new mock instance.
|
|
func NewMockContext(ctrl *gomock.Controller) *MockContext {
|
|
mock := &MockContext{ctrl: ctrl}
|
|
mock.recorder = &MockContextMockRecorder{mock}
|
|
return mock
|
|
}
|
|
|
|
// EXPECT returns an object that allows the caller to indicate expected use.
|
|
func (m *MockContext) EXPECT() *MockContextMockRecorder {
|
|
return m.recorder
|
|
}
|
|
|
|
// AddSpeculativeWorkflowTaskTimeoutTask mocks base method.
|
|
func (m *MockContext) AddSpeculativeWorkflowTaskTimeoutTask(task *tasks.WorkflowTaskTimeoutTask) error {
|
|
m.ctrl.T.Helper()
|
|
ret := m.ctrl.Call(m, "AddSpeculativeWorkflowTaskTimeoutTask", task)
|
|
ret0, _ := ret[0].(error)
|
|
return ret0
|
|
}
|
|
|
|
// AddSpeculativeWorkflowTaskTimeoutTask indicates an expected call of AddSpeculativeWorkflowTaskTimeoutTask.
|
|
func (mr *MockContextMockRecorder) AddSpeculativeWorkflowTaskTimeoutTask(task interface{}) *gomock.Call {
|
|
mr.mock.ctrl.T.Helper()
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AddSpeculativeWorkflowTaskTimeoutTask", reflect.TypeOf((*MockContext)(nil).AddSpeculativeWorkflowTaskTimeoutTask), task)
|
|
}
|
|
|
|
// AddTasks mocks base method.
|
|
func (m *MockContext) AddTasks(ctx context.Context, request *persistence.AddHistoryTasksRequest) error {
|
|
m.ctrl.T.Helper()
|
|
ret := m.ctrl.Call(m, "AddTasks", ctx, request)
|
|
ret0, _ := ret[0].(error)
|
|
return ret0
|
|
}
|
|
|
|
// AddTasks indicates an expected call of AddTasks.
|
|
func (mr *MockContextMockRecorder) AddTasks(ctx, request interface{}) *gomock.Call {
|
|
mr.mock.ctrl.T.Helper()
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AddTasks", reflect.TypeOf((*MockContext)(nil).AddTasks), ctx, request)
|
|
}
|
|
|
|
// AppendHistoryEvents mocks base method.
|
|
func (m *MockContext) AppendHistoryEvents(ctx context.Context, request *persistence.AppendHistoryNodesRequest, namespaceID namespace.ID, execution *v1.WorkflowExecution) (int, error) {
|
|
m.ctrl.T.Helper()
|
|
ret := m.ctrl.Call(m, "AppendHistoryEvents", ctx, request, namespaceID, execution)
|
|
ret0, _ := ret[0].(int)
|
|
ret1, _ := ret[1].(error)
|
|
return ret0, ret1
|
|
}
|
|
|
|
// AppendHistoryEvents indicates an expected call of AppendHistoryEvents.
|
|
func (mr *MockContextMockRecorder) AppendHistoryEvents(ctx, request, namespaceID, execution interface{}) *gomock.Call {
|
|
mr.mock.ctrl.T.Helper()
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AppendHistoryEvents", reflect.TypeOf((*MockContext)(nil).AppendHistoryEvents), ctx, request, namespaceID, execution)
|
|
}
|
|
|
|
// AssertOwnership mocks base method.
|
|
func (m *MockContext) AssertOwnership(ctx context.Context) error {
|
|
m.ctrl.T.Helper()
|
|
ret := m.ctrl.Call(m, "AssertOwnership", ctx)
|
|
ret0, _ := ret[0].(error)
|
|
return ret0
|
|
}
|
|
|
|
// AssertOwnership indicates an expected call of AssertOwnership.
|
|
func (mr *MockContextMockRecorder) AssertOwnership(ctx interface{}) *gomock.Call {
|
|
mr.mock.ctrl.T.Helper()
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AssertOwnership", reflect.TypeOf((*MockContext)(nil).AssertOwnership), ctx)
|
|
}
|
|
|
|
// ConflictResolveWorkflowExecution mocks base method.
|
|
func (m *MockContext) ConflictResolveWorkflowExecution(ctx context.Context, request *persistence.ConflictResolveWorkflowExecutionRequest) (*persistence.ConflictResolveWorkflowExecutionResponse, error) {
|
|
m.ctrl.T.Helper()
|
|
ret := m.ctrl.Call(m, "ConflictResolveWorkflowExecution", ctx, request)
|
|
ret0, _ := ret[0].(*persistence.ConflictResolveWorkflowExecutionResponse)
|
|
ret1, _ := ret[1].(error)
|
|
return ret0, ret1
|
|
}
|
|
|
|
// ConflictResolveWorkflowExecution indicates an expected call of ConflictResolveWorkflowExecution.
|
|
func (mr *MockContextMockRecorder) ConflictResolveWorkflowExecution(ctx, request interface{}) *gomock.Call {
|
|
mr.mock.ctrl.T.Helper()
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ConflictResolveWorkflowExecution", reflect.TypeOf((*MockContext)(nil).ConflictResolveWorkflowExecution), ctx, request)
|
|
}
|
|
|
|
// CreateWorkflowExecution mocks base method.
|
|
func (m *MockContext) CreateWorkflowExecution(ctx context.Context, request *persistence.CreateWorkflowExecutionRequest) (*persistence.CreateWorkflowExecutionResponse, error) {
|
|
m.ctrl.T.Helper()
|
|
ret := m.ctrl.Call(m, "CreateWorkflowExecution", ctx, request)
|
|
ret0, _ := ret[0].(*persistence.CreateWorkflowExecutionResponse)
|
|
ret1, _ := ret[1].(error)
|
|
return ret0, ret1
|
|
}
|
|
|
|
// CreateWorkflowExecution indicates an expected call of CreateWorkflowExecution.
|
|
func (mr *MockContextMockRecorder) CreateWorkflowExecution(ctx, request interface{}) *gomock.Call {
|
|
mr.mock.ctrl.T.Helper()
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateWorkflowExecution", reflect.TypeOf((*MockContext)(nil).CreateWorkflowExecution), ctx, request)
|
|
}
|
|
|
|
// CurrentVectorClock mocks base method.
|
|
func (m *MockContext) CurrentVectorClock() *v11.VectorClock {
|
|
m.ctrl.T.Helper()
|
|
ret := m.ctrl.Call(m, "CurrentVectorClock")
|
|
ret0, _ := ret[0].(*v11.VectorClock)
|
|
return ret0
|
|
}
|
|
|
|
// CurrentVectorClock indicates an expected call of CurrentVectorClock.
|
|
func (mr *MockContextMockRecorder) CurrentVectorClock() *gomock.Call {
|
|
mr.mock.ctrl.T.Helper()
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CurrentVectorClock", reflect.TypeOf((*MockContext)(nil).CurrentVectorClock))
|
|
}
|
|
|
|
// DeleteWorkflowExecution mocks base method.
|
|
func (m *MockContext) DeleteWorkflowExecution(ctx context.Context, workflowKey definition.WorkflowKey, branchToken []byte, closeExecutionVisibilityTaskID int64, stage *tasks.DeleteWorkflowExecutionStage) error {
|
|
m.ctrl.T.Helper()
|
|
ret := m.ctrl.Call(m, "DeleteWorkflowExecution", ctx, workflowKey, branchToken, closeExecutionVisibilityTaskID, stage)
|
|
ret0, _ := ret[0].(error)
|
|
return ret0
|
|
}
|
|
|
|
// DeleteWorkflowExecution indicates an expected call of DeleteWorkflowExecution.
|
|
func (mr *MockContextMockRecorder) DeleteWorkflowExecution(ctx, workflowKey, branchToken, closeExecutionVisibilityTaskID, stage interface{}) *gomock.Call {
|
|
mr.mock.ctrl.T.Helper()
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteWorkflowExecution", reflect.TypeOf((*MockContext)(nil).DeleteWorkflowExecution), ctx, workflowKey, branchToken, closeExecutionVisibilityTaskID, stage)
|
|
}
|
|
|
|
// GenerateTaskID mocks base method.
|
|
func (m *MockContext) GenerateTaskID() (int64, error) {
|
|
m.ctrl.T.Helper()
|
|
ret := m.ctrl.Call(m, "GenerateTaskID")
|
|
ret0, _ := ret[0].(int64)
|
|
ret1, _ := ret[1].(error)
|
|
return ret0, ret1
|
|
}
|
|
|
|
// GenerateTaskID indicates an expected call of GenerateTaskID.
|
|
func (mr *MockContextMockRecorder) GenerateTaskID() *gomock.Call {
|
|
mr.mock.ctrl.T.Helper()
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GenerateTaskID", reflect.TypeOf((*MockContext)(nil).GenerateTaskID))
|
|
}
|
|
|
|
// GenerateTaskIDs mocks base method.
|
|
func (m *MockContext) GenerateTaskIDs(number int) ([]int64, error) {
|
|
m.ctrl.T.Helper()
|
|
ret := m.ctrl.Call(m, "GenerateTaskIDs", number)
|
|
ret0, _ := ret[0].([]int64)
|
|
ret1, _ := ret[1].(error)
|
|
return ret0, ret1
|
|
}
|
|
|
|
// GenerateTaskIDs indicates an expected call of GenerateTaskIDs.
|
|
func (mr *MockContextMockRecorder) GenerateTaskIDs(number interface{}) *gomock.Call {
|
|
mr.mock.ctrl.T.Helper()
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GenerateTaskIDs", reflect.TypeOf((*MockContext)(nil).GenerateTaskIDs), number)
|
|
}
|
|
|
|
// GetArchivalMetadata mocks base method.
|
|
func (m *MockContext) GetArchivalMetadata() archiver.ArchivalMetadata {
|
|
m.ctrl.T.Helper()
|
|
ret := m.ctrl.Call(m, "GetArchivalMetadata")
|
|
ret0, _ := ret[0].(archiver.ArchivalMetadata)
|
|
return ret0
|
|
}
|
|
|
|
// GetArchivalMetadata indicates an expected call of GetArchivalMetadata.
|
|
func (mr *MockContextMockRecorder) GetArchivalMetadata() *gomock.Call {
|
|
mr.mock.ctrl.T.Helper()
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetArchivalMetadata", reflect.TypeOf((*MockContext)(nil).GetArchivalMetadata))
|
|
}
|
|
|
|
// GetClusterMetadata mocks base method.
|
|
func (m *MockContext) GetClusterMetadata() cluster.Metadata {
|
|
m.ctrl.T.Helper()
|
|
ret := m.ctrl.Call(m, "GetClusterMetadata")
|
|
ret0, _ := ret[0].(cluster.Metadata)
|
|
return ret0
|
|
}
|
|
|
|
// GetClusterMetadata indicates an expected call of GetClusterMetadata.
|
|
func (mr *MockContextMockRecorder) GetClusterMetadata() *gomock.Call {
|
|
mr.mock.ctrl.T.Helper()
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetClusterMetadata", reflect.TypeOf((*MockContext)(nil).GetClusterMetadata))
|
|
}
|
|
|
|
// GetConfig mocks base method.
|
|
func (m *MockContext) GetConfig() *configs.Config {
|
|
m.ctrl.T.Helper()
|
|
ret := m.ctrl.Call(m, "GetConfig")
|
|
ret0, _ := ret[0].(*configs.Config)
|
|
return ret0
|
|
}
|
|
|
|
// GetConfig indicates an expected call of GetConfig.
|
|
func (mr *MockContextMockRecorder) GetConfig() *gomock.Call {
|
|
mr.mock.ctrl.T.Helper()
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetConfig", reflect.TypeOf((*MockContext)(nil).GetConfig))
|
|
}
|
|
|
|
// GetCurrentExecution mocks base method.
|
|
func (m *MockContext) GetCurrentExecution(ctx context.Context, request *persistence.GetCurrentExecutionRequest) (*persistence.GetCurrentExecutionResponse, error) {
|
|
m.ctrl.T.Helper()
|
|
ret := m.ctrl.Call(m, "GetCurrentExecution", ctx, request)
|
|
ret0, _ := ret[0].(*persistence.GetCurrentExecutionResponse)
|
|
ret1, _ := ret[1].(error)
|
|
return ret0, ret1
|
|
}
|
|
|
|
// GetCurrentExecution indicates an expected call of GetCurrentExecution.
|
|
func (mr *MockContextMockRecorder) GetCurrentExecution(ctx, request interface{}) *gomock.Call {
|
|
mr.mock.ctrl.T.Helper()
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetCurrentExecution", reflect.TypeOf((*MockContext)(nil).GetCurrentExecution), ctx, request)
|
|
}
|
|
|
|
// GetCurrentTime mocks base method.
|
|
func (m *MockContext) GetCurrentTime(cluster string) time.Time {
|
|
m.ctrl.T.Helper()
|
|
ret := m.ctrl.Call(m, "GetCurrentTime", cluster)
|
|
ret0, _ := ret[0].(time.Time)
|
|
return ret0
|
|
}
|
|
|
|
// GetCurrentTime indicates an expected call of GetCurrentTime.
|
|
func (mr *MockContextMockRecorder) GetCurrentTime(cluster interface{}) *gomock.Call {
|
|
mr.mock.ctrl.T.Helper()
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetCurrentTime", reflect.TypeOf((*MockContext)(nil).GetCurrentTime), cluster)
|
|
}
|
|
|
|
// GetEngine mocks base method.
|
|
func (m *MockContext) GetEngine(ctx context.Context) (Engine, error) {
|
|
m.ctrl.T.Helper()
|
|
ret := m.ctrl.Call(m, "GetEngine", ctx)
|
|
ret0, _ := ret[0].(Engine)
|
|
ret1, _ := ret[1].(error)
|
|
return ret0, ret1
|
|
}
|
|
|
|
// GetEngine indicates an expected call of GetEngine.
|
|
func (mr *MockContextMockRecorder) GetEngine(ctx interface{}) *gomock.Call {
|
|
mr.mock.ctrl.T.Helper()
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetEngine", reflect.TypeOf((*MockContext)(nil).GetEngine), ctx)
|
|
}
|
|
|
|
// GetEventsCache mocks base method.
|
|
func (m *MockContext) GetEventsCache() events.Cache {
|
|
m.ctrl.T.Helper()
|
|
ret := m.ctrl.Call(m, "GetEventsCache")
|
|
ret0, _ := ret[0].(events.Cache)
|
|
return ret0
|
|
}
|
|
|
|
// GetEventsCache indicates an expected call of GetEventsCache.
|
|
func (mr *MockContextMockRecorder) GetEventsCache() *gomock.Call {
|
|
mr.mock.ctrl.T.Helper()
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetEventsCache", reflect.TypeOf((*MockContext)(nil).GetEventsCache))
|
|
}
|
|
|
|
// GetExecutionManager mocks base method.
|
|
func (m *MockContext) GetExecutionManager() persistence.ExecutionManager {
|
|
m.ctrl.T.Helper()
|
|
ret := m.ctrl.Call(m, "GetExecutionManager")
|
|
ret0, _ := ret[0].(persistence.ExecutionManager)
|
|
return ret0
|
|
}
|
|
|
|
// GetExecutionManager indicates an expected call of GetExecutionManager.
|
|
func (mr *MockContextMockRecorder) GetExecutionManager() *gomock.Call {
|
|
mr.mock.ctrl.T.Helper()
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetExecutionManager", reflect.TypeOf((*MockContext)(nil).GetExecutionManager))
|
|
}
|
|
|
|
// GetHistoryClient mocks base method.
|
|
func (m *MockContext) GetHistoryClient() v12.HistoryServiceClient {
|
|
m.ctrl.T.Helper()
|
|
ret := m.ctrl.Call(m, "GetHistoryClient")
|
|
ret0, _ := ret[0].(v12.HistoryServiceClient)
|
|
return ret0
|
|
}
|
|
|
|
// GetHistoryClient indicates an expected call of GetHistoryClient.
|
|
func (mr *MockContextMockRecorder) GetHistoryClient() *gomock.Call {
|
|
mr.mock.ctrl.T.Helper()
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetHistoryClient", reflect.TypeOf((*MockContext)(nil).GetHistoryClient))
|
|
}
|
|
|
|
// GetLogger mocks base method.
|
|
func (m *MockContext) GetLogger() log.Logger {
|
|
m.ctrl.T.Helper()
|
|
ret := m.ctrl.Call(m, "GetLogger")
|
|
ret0, _ := ret[0].(log.Logger)
|
|
return ret0
|
|
}
|
|
|
|
// GetLogger indicates an expected call of GetLogger.
|
|
func (mr *MockContextMockRecorder) GetLogger() *gomock.Call {
|
|
mr.mock.ctrl.T.Helper()
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetLogger", reflect.TypeOf((*MockContext)(nil).GetLogger))
|
|
}
|
|
|
|
// GetMetricsHandler mocks base method.
|
|
func (m *MockContext) GetMetricsHandler() metrics.Handler {
|
|
m.ctrl.T.Helper()
|
|
ret := m.ctrl.Call(m, "GetMetricsHandler")
|
|
ret0, _ := ret[0].(metrics.Handler)
|
|
return ret0
|
|
}
|
|
|
|
// GetMetricsHandler indicates an expected call of GetMetricsHandler.
|
|
func (mr *MockContextMockRecorder) GetMetricsHandler() *gomock.Call {
|
|
mr.mock.ctrl.T.Helper()
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetMetricsHandler", reflect.TypeOf((*MockContext)(nil).GetMetricsHandler))
|
|
}
|
|
|
|
// GetNamespaceRegistry mocks base method.
|
|
func (m *MockContext) GetNamespaceRegistry() namespace.Registry {
|
|
m.ctrl.T.Helper()
|
|
ret := m.ctrl.Call(m, "GetNamespaceRegistry")
|
|
ret0, _ := ret[0].(namespace.Registry)
|
|
return ret0
|
|
}
|
|
|
|
// GetNamespaceRegistry indicates an expected call of GetNamespaceRegistry.
|
|
func (mr *MockContextMockRecorder) GetNamespaceRegistry() *gomock.Call {
|
|
mr.mock.ctrl.T.Helper()
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetNamespaceRegistry", reflect.TypeOf((*MockContext)(nil).GetNamespaceRegistry))
|
|
}
|
|
|
|
// GetOwner mocks base method.
|
|
func (m *MockContext) GetOwner() string {
|
|
m.ctrl.T.Helper()
|
|
ret := m.ctrl.Call(m, "GetOwner")
|
|
ret0, _ := ret[0].(string)
|
|
return ret0
|
|
}
|
|
|
|
// GetOwner indicates an expected call of GetOwner.
|
|
func (mr *MockContextMockRecorder) GetOwner() *gomock.Call {
|
|
mr.mock.ctrl.T.Helper()
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetOwner", reflect.TypeOf((*MockContext)(nil).GetOwner))
|
|
}
|
|
|
|
// GetPayloadSerializer mocks base method.
|
|
func (m *MockContext) GetPayloadSerializer() serialization.Serializer {
|
|
m.ctrl.T.Helper()
|
|
ret := m.ctrl.Call(m, "GetPayloadSerializer")
|
|
ret0, _ := ret[0].(serialization.Serializer)
|
|
return ret0
|
|
}
|
|
|
|
// GetPayloadSerializer indicates an expected call of GetPayloadSerializer.
|
|
func (mr *MockContextMockRecorder) GetPayloadSerializer() *gomock.Call {
|
|
mr.mock.ctrl.T.Helper()
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetPayloadSerializer", reflect.TypeOf((*MockContext)(nil).GetPayloadSerializer))
|
|
}
|
|
|
|
// GetQueueExclusiveHighReadWatermark mocks base method.
|
|
func (m *MockContext) GetQueueExclusiveHighReadWatermark(category tasks.Category) tasks.Key {
|
|
m.ctrl.T.Helper()
|
|
ret := m.ctrl.Call(m, "GetQueueExclusiveHighReadWatermark", category)
|
|
ret0, _ := ret[0].(tasks.Key)
|
|
return ret0
|
|
}
|
|
|
|
// GetQueueExclusiveHighReadWatermark indicates an expected call of GetQueueExclusiveHighReadWatermark.
|
|
func (mr *MockContextMockRecorder) GetQueueExclusiveHighReadWatermark(category interface{}) *gomock.Call {
|
|
mr.mock.ctrl.T.Helper()
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetQueueExclusiveHighReadWatermark", reflect.TypeOf((*MockContext)(nil).GetQueueExclusiveHighReadWatermark), category)
|
|
}
|
|
|
|
// GetQueueState mocks base method.
|
|
func (m *MockContext) GetQueueState(category tasks.Category) (*v13.QueueState, bool) {
|
|
m.ctrl.T.Helper()
|
|
ret := m.ctrl.Call(m, "GetQueueState", category)
|
|
ret0, _ := ret[0].(*v13.QueueState)
|
|
ret1, _ := ret[1].(bool)
|
|
return ret0, ret1
|
|
}
|
|
|
|
// GetQueueState indicates an expected call of GetQueueState.
|
|
func (mr *MockContextMockRecorder) GetQueueState(category interface{}) *gomock.Call {
|
|
mr.mock.ctrl.T.Helper()
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetQueueState", reflect.TypeOf((*MockContext)(nil).GetQueueState), category)
|
|
}
|
|
|
|
// GetRangeID mocks base method.
|
|
func (m *MockContext) GetRangeID() int64 {
|
|
m.ctrl.T.Helper()
|
|
ret := m.ctrl.Call(m, "GetRangeID")
|
|
ret0, _ := ret[0].(int64)
|
|
return ret0
|
|
}
|
|
|
|
// GetRangeID indicates an expected call of GetRangeID.
|
|
func (mr *MockContextMockRecorder) GetRangeID() *gomock.Call {
|
|
mr.mock.ctrl.T.Helper()
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetRangeID", reflect.TypeOf((*MockContext)(nil).GetRangeID))
|
|
}
|
|
|
|
// GetRemoteAdminClient mocks base method.
|
|
func (m *MockContext) GetRemoteAdminClient(arg0 string) (v10.AdminServiceClient, error) {
|
|
m.ctrl.T.Helper()
|
|
ret := m.ctrl.Call(m, "GetRemoteAdminClient", arg0)
|
|
ret0, _ := ret[0].(v10.AdminServiceClient)
|
|
ret1, _ := ret[1].(error)
|
|
return ret0, ret1
|
|
}
|
|
|
|
// GetRemoteAdminClient indicates an expected call of GetRemoteAdminClient.
|
|
func (mr *MockContextMockRecorder) GetRemoteAdminClient(arg0 interface{}) *gomock.Call {
|
|
mr.mock.ctrl.T.Helper()
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetRemoteAdminClient", reflect.TypeOf((*MockContext)(nil).GetRemoteAdminClient), arg0)
|
|
}
|
|
|
|
// GetReplicationStatus mocks base method.
|
|
func (m *MockContext) GetReplicationStatus(cluster []string) (map[string]*v12.ShardReplicationStatusPerCluster, map[string]*v12.HandoverNamespaceInfo, error) {
|
|
m.ctrl.T.Helper()
|
|
ret := m.ctrl.Call(m, "GetReplicationStatus", cluster)
|
|
ret0, _ := ret[0].(map[string]*v12.ShardReplicationStatusPerCluster)
|
|
ret1, _ := ret[1].(map[string]*v12.HandoverNamespaceInfo)
|
|
ret2, _ := ret[2].(error)
|
|
return ret0, ret1, ret2
|
|
}
|
|
|
|
// GetReplicationStatus indicates an expected call of GetReplicationStatus.
|
|
func (mr *MockContextMockRecorder) GetReplicationStatus(cluster interface{}) *gomock.Call {
|
|
mr.mock.ctrl.T.Helper()
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetReplicationStatus", reflect.TypeOf((*MockContext)(nil).GetReplicationStatus), cluster)
|
|
}
|
|
|
|
// GetReplicatorDLQAckLevel mocks base method.
|
|
func (m *MockContext) GetReplicatorDLQAckLevel(sourceCluster string) int64 {
|
|
m.ctrl.T.Helper()
|
|
ret := m.ctrl.Call(m, "GetReplicatorDLQAckLevel", sourceCluster)
|
|
ret0, _ := ret[0].(int64)
|
|
return ret0
|
|
}
|
|
|
|
// GetReplicatorDLQAckLevel indicates an expected call of GetReplicatorDLQAckLevel.
|
|
func (mr *MockContextMockRecorder) GetReplicatorDLQAckLevel(sourceCluster interface{}) *gomock.Call {
|
|
mr.mock.ctrl.T.Helper()
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetReplicatorDLQAckLevel", reflect.TypeOf((*MockContext)(nil).GetReplicatorDLQAckLevel), sourceCluster)
|
|
}
|
|
|
|
// GetSearchAttributesMapperProvider mocks base method.
|
|
func (m *MockContext) GetSearchAttributesMapperProvider() searchattribute.MapperProvider {
|
|
m.ctrl.T.Helper()
|
|
ret := m.ctrl.Call(m, "GetSearchAttributesMapperProvider")
|
|
ret0, _ := ret[0].(searchattribute.MapperProvider)
|
|
return ret0
|
|
}
|
|
|
|
// GetSearchAttributesMapperProvider indicates an expected call of GetSearchAttributesMapperProvider.
|
|
func (mr *MockContextMockRecorder) GetSearchAttributesMapperProvider() *gomock.Call {
|
|
mr.mock.ctrl.T.Helper()
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetSearchAttributesMapperProvider", reflect.TypeOf((*MockContext)(nil).GetSearchAttributesMapperProvider))
|
|
}
|
|
|
|
// GetSearchAttributesProvider mocks base method.
|
|
func (m *MockContext) GetSearchAttributesProvider() searchattribute.Provider {
|
|
m.ctrl.T.Helper()
|
|
ret := m.ctrl.Call(m, "GetSearchAttributesProvider")
|
|
ret0, _ := ret[0].(searchattribute.Provider)
|
|
return ret0
|
|
}
|
|
|
|
// GetSearchAttributesProvider indicates an expected call of GetSearchAttributesProvider.
|
|
func (mr *MockContextMockRecorder) GetSearchAttributesProvider() *gomock.Call {
|
|
mr.mock.ctrl.T.Helper()
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetSearchAttributesProvider", reflect.TypeOf((*MockContext)(nil).GetSearchAttributesProvider))
|
|
}
|
|
|
|
// GetShardID mocks base method.
|
|
func (m *MockContext) GetShardID() int32 {
|
|
m.ctrl.T.Helper()
|
|
ret := m.ctrl.Call(m, "GetShardID")
|
|
ret0, _ := ret[0].(int32)
|
|
return ret0
|
|
}
|
|
|
|
// GetShardID indicates an expected call of GetShardID.
|
|
func (mr *MockContextMockRecorder) GetShardID() *gomock.Call {
|
|
mr.mock.ctrl.T.Helper()
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetShardID", reflect.TypeOf((*MockContext)(nil).GetShardID))
|
|
}
|
|
|
|
// GetThrottledLogger mocks base method.
|
|
func (m *MockContext) GetThrottledLogger() log.Logger {
|
|
m.ctrl.T.Helper()
|
|
ret := m.ctrl.Call(m, "GetThrottledLogger")
|
|
ret0, _ := ret[0].(log.Logger)
|
|
return ret0
|
|
}
|
|
|
|
// GetThrottledLogger indicates an expected call of GetThrottledLogger.
|
|
func (mr *MockContextMockRecorder) GetThrottledLogger() *gomock.Call {
|
|
mr.mock.ctrl.T.Helper()
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetThrottledLogger", reflect.TypeOf((*MockContext)(nil).GetThrottledLogger))
|
|
}
|
|
|
|
// GetTimeSource mocks base method.
|
|
func (m *MockContext) GetTimeSource() clock.TimeSource {
|
|
m.ctrl.T.Helper()
|
|
ret := m.ctrl.Call(m, "GetTimeSource")
|
|
ret0, _ := ret[0].(clock.TimeSource)
|
|
return ret0
|
|
}
|
|
|
|
// GetTimeSource indicates an expected call of GetTimeSource.
|
|
func (mr *MockContextMockRecorder) GetTimeSource() *gomock.Call {
|
|
mr.mock.ctrl.T.Helper()
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetTimeSource", reflect.TypeOf((*MockContext)(nil).GetTimeSource))
|
|
}
|
|
|
|
// GetWorkflowExecution mocks base method.
|
|
func (m *MockContext) GetWorkflowExecution(ctx context.Context, request *persistence.GetWorkflowExecutionRequest) (*persistence.GetWorkflowExecutionResponse, error) {
|
|
m.ctrl.T.Helper()
|
|
ret := m.ctrl.Call(m, "GetWorkflowExecution", ctx, request)
|
|
ret0, _ := ret[0].(*persistence.GetWorkflowExecutionResponse)
|
|
ret1, _ := ret[1].(error)
|
|
return ret0, ret1
|
|
}
|
|
|
|
// GetWorkflowExecution indicates an expected call of GetWorkflowExecution.
|
|
func (mr *MockContextMockRecorder) GetWorkflowExecution(ctx, request interface{}) *gomock.Call {
|
|
mr.mock.ctrl.T.Helper()
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetWorkflowExecution", reflect.TypeOf((*MockContext)(nil).GetWorkflowExecution), ctx, request)
|
|
}
|
|
|
|
// NewVectorClock mocks base method.
|
|
func (m *MockContext) NewVectorClock() (*v11.VectorClock, error) {
|
|
m.ctrl.T.Helper()
|
|
ret := m.ctrl.Call(m, "NewVectorClock")
|
|
ret0, _ := ret[0].(*v11.VectorClock)
|
|
ret1, _ := ret[1].(error)
|
|
return ret0, ret1
|
|
}
|
|
|
|
// NewVectorClock indicates an expected call of NewVectorClock.
|
|
func (mr *MockContextMockRecorder) NewVectorClock() *gomock.Call {
|
|
mr.mock.ctrl.T.Helper()
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "NewVectorClock", reflect.TypeOf((*MockContext)(nil).NewVectorClock))
|
|
}
|
|
|
|
// SetCurrentTime mocks base method.
|
|
func (m *MockContext) SetCurrentTime(cluster string, currentTime time.Time) {
|
|
m.ctrl.T.Helper()
|
|
m.ctrl.Call(m, "SetCurrentTime", cluster, currentTime)
|
|
}
|
|
|
|
// SetCurrentTime indicates an expected call of SetCurrentTime.
|
|
func (mr *MockContextMockRecorder) SetCurrentTime(cluster, currentTime interface{}) *gomock.Call {
|
|
mr.mock.ctrl.T.Helper()
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetCurrentTime", reflect.TypeOf((*MockContext)(nil).SetCurrentTime), cluster, currentTime)
|
|
}
|
|
|
|
// SetQueueState mocks base method.
|
|
func (m *MockContext) SetQueueState(category tasks.Category, tasksCompleted int, state *v13.QueueState) error {
|
|
m.ctrl.T.Helper()
|
|
ret := m.ctrl.Call(m, "SetQueueState", category, tasksCompleted, state)
|
|
ret0, _ := ret[0].(error)
|
|
return ret0
|
|
}
|
|
|
|
// SetQueueState indicates an expected call of SetQueueState.
|
|
func (mr *MockContextMockRecorder) SetQueueState(category, tasksCompleted, state interface{}) *gomock.Call {
|
|
mr.mock.ctrl.T.Helper()
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetQueueState", reflect.TypeOf((*MockContext)(nil).SetQueueState), category, tasksCompleted, state)
|
|
}
|
|
|
|
// SetWorkflowExecution mocks base method.
|
|
func (m *MockContext) SetWorkflowExecution(ctx context.Context, request *persistence.SetWorkflowExecutionRequest) (*persistence.SetWorkflowExecutionResponse, error) {
|
|
m.ctrl.T.Helper()
|
|
ret := m.ctrl.Call(m, "SetWorkflowExecution", ctx, request)
|
|
ret0, _ := ret[0].(*persistence.SetWorkflowExecutionResponse)
|
|
ret1, _ := ret[1].(error)
|
|
return ret0, ret1
|
|
}
|
|
|
|
// SetWorkflowExecution indicates an expected call of SetWorkflowExecution.
|
|
func (mr *MockContextMockRecorder) SetWorkflowExecution(ctx, request interface{}) *gomock.Call {
|
|
mr.mock.ctrl.T.Helper()
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetWorkflowExecution", reflect.TypeOf((*MockContext)(nil).SetWorkflowExecution), ctx, request)
|
|
}
|
|
|
|
// StateMachineRegistry mocks base method.
|
|
func (m *MockContext) StateMachineRegistry() *hsm.Registry {
|
|
m.ctrl.T.Helper()
|
|
ret := m.ctrl.Call(m, "StateMachineRegistry")
|
|
ret0, _ := ret[0].(*hsm.Registry)
|
|
return ret0
|
|
}
|
|
|
|
// StateMachineRegistry indicates an expected call of StateMachineRegistry.
|
|
func (mr *MockContextMockRecorder) StateMachineRegistry() *gomock.Call {
|
|
mr.mock.ctrl.T.Helper()
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "StateMachineRegistry", reflect.TypeOf((*MockContext)(nil).StateMachineRegistry))
|
|
}
|
|
|
|
// UnloadForOwnershipLost mocks base method.
|
|
func (m *MockContext) UnloadForOwnershipLost() {
|
|
m.ctrl.T.Helper()
|
|
m.ctrl.Call(m, "UnloadForOwnershipLost")
|
|
}
|
|
|
|
// UnloadForOwnershipLost indicates an expected call of UnloadForOwnershipLost.
|
|
func (mr *MockContextMockRecorder) UnloadForOwnershipLost() *gomock.Call {
|
|
mr.mock.ctrl.T.Helper()
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UnloadForOwnershipLost", reflect.TypeOf((*MockContext)(nil).UnloadForOwnershipLost))
|
|
}
|
|
|
|
// UpdateHandoverNamespace mocks base method.
|
|
func (m *MockContext) UpdateHandoverNamespace(ns *namespace.Namespace, deletedFromDb bool) {
|
|
m.ctrl.T.Helper()
|
|
m.ctrl.Call(m, "UpdateHandoverNamespace", ns, deletedFromDb)
|
|
}
|
|
|
|
// UpdateHandoverNamespace indicates an expected call of UpdateHandoverNamespace.
|
|
func (mr *MockContextMockRecorder) UpdateHandoverNamespace(ns, deletedFromDb interface{}) *gomock.Call {
|
|
mr.mock.ctrl.T.Helper()
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateHandoverNamespace", reflect.TypeOf((*MockContext)(nil).UpdateHandoverNamespace), ns, deletedFromDb)
|
|
}
|
|
|
|
// UpdateRemoteClusterInfo mocks base method.
|
|
func (m *MockContext) UpdateRemoteClusterInfo(cluster string, ackTaskID int64, ackTimestamp time.Time) {
|
|
m.ctrl.T.Helper()
|
|
m.ctrl.Call(m, "UpdateRemoteClusterInfo", cluster, ackTaskID, ackTimestamp)
|
|
}
|
|
|
|
// UpdateRemoteClusterInfo indicates an expected call of UpdateRemoteClusterInfo.
|
|
func (mr *MockContextMockRecorder) UpdateRemoteClusterInfo(cluster, ackTaskID, ackTimestamp interface{}) *gomock.Call {
|
|
mr.mock.ctrl.T.Helper()
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateRemoteClusterInfo", reflect.TypeOf((*MockContext)(nil).UpdateRemoteClusterInfo), cluster, ackTaskID, ackTimestamp)
|
|
}
|
|
|
|
// UpdateRemoteReaderInfo mocks base method.
|
|
func (m *MockContext) UpdateRemoteReaderInfo(readerID, ackTaskID int64, ackTimestamp time.Time) error {
|
|
m.ctrl.T.Helper()
|
|
ret := m.ctrl.Call(m, "UpdateRemoteReaderInfo", readerID, ackTaskID, ackTimestamp)
|
|
ret0, _ := ret[0].(error)
|
|
return ret0
|
|
}
|
|
|
|
// UpdateRemoteReaderInfo indicates an expected call of UpdateRemoteReaderInfo.
|
|
func (mr *MockContextMockRecorder) UpdateRemoteReaderInfo(readerID, ackTaskID, ackTimestamp interface{}) *gomock.Call {
|
|
mr.mock.ctrl.T.Helper()
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateRemoteReaderInfo", reflect.TypeOf((*MockContext)(nil).UpdateRemoteReaderInfo), readerID, ackTaskID, ackTimestamp)
|
|
}
|
|
|
|
// UpdateReplicationQueueReaderState mocks base method.
|
|
func (m *MockContext) UpdateReplicationQueueReaderState(readerID int64, readerState *v13.QueueReaderState) error {
|
|
m.ctrl.T.Helper()
|
|
ret := m.ctrl.Call(m, "UpdateReplicationQueueReaderState", readerID, readerState)
|
|
ret0, _ := ret[0].(error)
|
|
return ret0
|
|
}
|
|
|
|
// UpdateReplicationQueueReaderState indicates an expected call of UpdateReplicationQueueReaderState.
|
|
func (mr *MockContextMockRecorder) UpdateReplicationQueueReaderState(readerID, readerState interface{}) *gomock.Call {
|
|
mr.mock.ctrl.T.Helper()
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateReplicationQueueReaderState", reflect.TypeOf((*MockContext)(nil).UpdateReplicationQueueReaderState), readerID, readerState)
|
|
}
|
|
|
|
// UpdateReplicatorDLQAckLevel mocks base method.
|
|
func (m *MockContext) UpdateReplicatorDLQAckLevel(sourCluster string, ackLevel int64) error {
|
|
m.ctrl.T.Helper()
|
|
ret := m.ctrl.Call(m, "UpdateReplicatorDLQAckLevel", sourCluster, ackLevel)
|
|
ret0, _ := ret[0].(error)
|
|
return ret0
|
|
}
|
|
|
|
// UpdateReplicatorDLQAckLevel indicates an expected call of UpdateReplicatorDLQAckLevel.
|
|
func (mr *MockContextMockRecorder) UpdateReplicatorDLQAckLevel(sourCluster, ackLevel interface{}) *gomock.Call {
|
|
mr.mock.ctrl.T.Helper()
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateReplicatorDLQAckLevel", reflect.TypeOf((*MockContext)(nil).UpdateReplicatorDLQAckLevel), sourCluster, ackLevel)
|
|
}
|
|
|
|
// UpdateWorkflowExecution mocks base method.
|
|
func (m *MockContext) UpdateWorkflowExecution(ctx context.Context, request *persistence.UpdateWorkflowExecutionRequest) (*persistence.UpdateWorkflowExecutionResponse, error) {
|
|
m.ctrl.T.Helper()
|
|
ret := m.ctrl.Call(m, "UpdateWorkflowExecution", ctx, request)
|
|
ret0, _ := ret[0].(*persistence.UpdateWorkflowExecutionResponse)
|
|
ret1, _ := ret[1].(error)
|
|
return ret0, ret1
|
|
}
|
|
|
|
// UpdateWorkflowExecution indicates an expected call of UpdateWorkflowExecution.
|
|
func (mr *MockContextMockRecorder) UpdateWorkflowExecution(ctx, request interface{}) *gomock.Call {
|
|
mr.mock.ctrl.T.Helper()
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateWorkflowExecution", reflect.TypeOf((*MockContext)(nil).UpdateWorkflowExecution), ctx, request)
|
|
}
|
|
|
|
// MockControllableContext is a mock of ControllableContext interface.
|
|
type MockControllableContext struct {
|
|
ctrl *gomock.Controller
|
|
recorder *MockControllableContextMockRecorder
|
|
}
|
|
|
|
// MockControllableContextMockRecorder is the mock recorder for MockControllableContext.
|
|
type MockControllableContextMockRecorder struct {
|
|
mock *MockControllableContext
|
|
}
|
|
|
|
// NewMockControllableContext creates a new mock instance.
|
|
func NewMockControllableContext(ctrl *gomock.Controller) *MockControllableContext {
|
|
mock := &MockControllableContext{ctrl: ctrl}
|
|
mock.recorder = &MockControllableContextMockRecorder{mock}
|
|
return mock
|
|
}
|
|
|
|
// EXPECT returns an object that allows the caller to indicate expected use.
|
|
func (m *MockControllableContext) EXPECT() *MockControllableContextMockRecorder {
|
|
return m.recorder
|
|
}
|
|
|
|
// AddSpeculativeWorkflowTaskTimeoutTask mocks base method.
|
|
func (m *MockControllableContext) AddSpeculativeWorkflowTaskTimeoutTask(task *tasks.WorkflowTaskTimeoutTask) error {
|
|
m.ctrl.T.Helper()
|
|
ret := m.ctrl.Call(m, "AddSpeculativeWorkflowTaskTimeoutTask", task)
|
|
ret0, _ := ret[0].(error)
|
|
return ret0
|
|
}
|
|
|
|
// AddSpeculativeWorkflowTaskTimeoutTask indicates an expected call of AddSpeculativeWorkflowTaskTimeoutTask.
|
|
func (mr *MockControllableContextMockRecorder) AddSpeculativeWorkflowTaskTimeoutTask(task interface{}) *gomock.Call {
|
|
mr.mock.ctrl.T.Helper()
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AddSpeculativeWorkflowTaskTimeoutTask", reflect.TypeOf((*MockControllableContext)(nil).AddSpeculativeWorkflowTaskTimeoutTask), task)
|
|
}
|
|
|
|
// AddTasks mocks base method.
|
|
func (m *MockControllableContext) AddTasks(ctx context.Context, request *persistence.AddHistoryTasksRequest) error {
|
|
m.ctrl.T.Helper()
|
|
ret := m.ctrl.Call(m, "AddTasks", ctx, request)
|
|
ret0, _ := ret[0].(error)
|
|
return ret0
|
|
}
|
|
|
|
// AddTasks indicates an expected call of AddTasks.
|
|
func (mr *MockControllableContextMockRecorder) AddTasks(ctx, request interface{}) *gomock.Call {
|
|
mr.mock.ctrl.T.Helper()
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AddTasks", reflect.TypeOf((*MockControllableContext)(nil).AddTasks), ctx, request)
|
|
}
|
|
|
|
// AppendHistoryEvents mocks base method.
|
|
func (m *MockControllableContext) AppendHistoryEvents(ctx context.Context, request *persistence.AppendHistoryNodesRequest, namespaceID namespace.ID, execution *v1.WorkflowExecution) (int, error) {
|
|
m.ctrl.T.Helper()
|
|
ret := m.ctrl.Call(m, "AppendHistoryEvents", ctx, request, namespaceID, execution)
|
|
ret0, _ := ret[0].(int)
|
|
ret1, _ := ret[1].(error)
|
|
return ret0, ret1
|
|
}
|
|
|
|
// AppendHistoryEvents indicates an expected call of AppendHistoryEvents.
|
|
func (mr *MockControllableContextMockRecorder) AppendHistoryEvents(ctx, request, namespaceID, execution interface{}) *gomock.Call {
|
|
mr.mock.ctrl.T.Helper()
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AppendHistoryEvents", reflect.TypeOf((*MockControllableContext)(nil).AppendHistoryEvents), ctx, request, namespaceID, execution)
|
|
}
|
|
|
|
// AssertOwnership mocks base method.
|
|
func (m *MockControllableContext) AssertOwnership(ctx context.Context) error {
|
|
m.ctrl.T.Helper()
|
|
ret := m.ctrl.Call(m, "AssertOwnership", ctx)
|
|
ret0, _ := ret[0].(error)
|
|
return ret0
|
|
}
|
|
|
|
// AssertOwnership indicates an expected call of AssertOwnership.
|
|
func (mr *MockControllableContextMockRecorder) AssertOwnership(ctx interface{}) *gomock.Call {
|
|
mr.mock.ctrl.T.Helper()
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AssertOwnership", reflect.TypeOf((*MockControllableContext)(nil).AssertOwnership), ctx)
|
|
}
|
|
|
|
// ConflictResolveWorkflowExecution mocks base method.
|
|
func (m *MockControllableContext) ConflictResolveWorkflowExecution(ctx context.Context, request *persistence.ConflictResolveWorkflowExecutionRequest) (*persistence.ConflictResolveWorkflowExecutionResponse, error) {
|
|
m.ctrl.T.Helper()
|
|
ret := m.ctrl.Call(m, "ConflictResolveWorkflowExecution", ctx, request)
|
|
ret0, _ := ret[0].(*persistence.ConflictResolveWorkflowExecutionResponse)
|
|
ret1, _ := ret[1].(error)
|
|
return ret0, ret1
|
|
}
|
|
|
|
// ConflictResolveWorkflowExecution indicates an expected call of ConflictResolveWorkflowExecution.
|
|
func (mr *MockControllableContextMockRecorder) ConflictResolveWorkflowExecution(ctx, request interface{}) *gomock.Call {
|
|
mr.mock.ctrl.T.Helper()
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ConflictResolveWorkflowExecution", reflect.TypeOf((*MockControllableContext)(nil).ConflictResolveWorkflowExecution), ctx, request)
|
|
}
|
|
|
|
// CreateWorkflowExecution mocks base method.
|
|
func (m *MockControllableContext) CreateWorkflowExecution(ctx context.Context, request *persistence.CreateWorkflowExecutionRequest) (*persistence.CreateWorkflowExecutionResponse, error) {
|
|
m.ctrl.T.Helper()
|
|
ret := m.ctrl.Call(m, "CreateWorkflowExecution", ctx, request)
|
|
ret0, _ := ret[0].(*persistence.CreateWorkflowExecutionResponse)
|
|
ret1, _ := ret[1].(error)
|
|
return ret0, ret1
|
|
}
|
|
|
|
// CreateWorkflowExecution indicates an expected call of CreateWorkflowExecution.
|
|
func (mr *MockControllableContextMockRecorder) CreateWorkflowExecution(ctx, request interface{}) *gomock.Call {
|
|
mr.mock.ctrl.T.Helper()
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateWorkflowExecution", reflect.TypeOf((*MockControllableContext)(nil).CreateWorkflowExecution), ctx, request)
|
|
}
|
|
|
|
// CurrentVectorClock mocks base method.
|
|
func (m *MockControllableContext) CurrentVectorClock() *v11.VectorClock {
|
|
m.ctrl.T.Helper()
|
|
ret := m.ctrl.Call(m, "CurrentVectorClock")
|
|
ret0, _ := ret[0].(*v11.VectorClock)
|
|
return ret0
|
|
}
|
|
|
|
// CurrentVectorClock indicates an expected call of CurrentVectorClock.
|
|
func (mr *MockControllableContextMockRecorder) CurrentVectorClock() *gomock.Call {
|
|
mr.mock.ctrl.T.Helper()
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CurrentVectorClock", reflect.TypeOf((*MockControllableContext)(nil).CurrentVectorClock))
|
|
}
|
|
|
|
// DeleteWorkflowExecution mocks base method.
|
|
func (m *MockControllableContext) DeleteWorkflowExecution(ctx context.Context, workflowKey definition.WorkflowKey, branchToken []byte, closeExecutionVisibilityTaskID int64, stage *tasks.DeleteWorkflowExecutionStage) error {
|
|
m.ctrl.T.Helper()
|
|
ret := m.ctrl.Call(m, "DeleteWorkflowExecution", ctx, workflowKey, branchToken, closeExecutionVisibilityTaskID, stage)
|
|
ret0, _ := ret[0].(error)
|
|
return ret0
|
|
}
|
|
|
|
// DeleteWorkflowExecution indicates an expected call of DeleteWorkflowExecution.
|
|
func (mr *MockControllableContextMockRecorder) DeleteWorkflowExecution(ctx, workflowKey, branchToken, closeExecutionVisibilityTaskID, stage interface{}) *gomock.Call {
|
|
mr.mock.ctrl.T.Helper()
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteWorkflowExecution", reflect.TypeOf((*MockControllableContext)(nil).DeleteWorkflowExecution), ctx, workflowKey, branchToken, closeExecutionVisibilityTaskID, stage)
|
|
}
|
|
|
|
// FinishStop mocks base method.
|
|
func (m *MockControllableContext) FinishStop() {
|
|
m.ctrl.T.Helper()
|
|
m.ctrl.Call(m, "FinishStop")
|
|
}
|
|
|
|
// FinishStop indicates an expected call of FinishStop.
|
|
func (mr *MockControllableContextMockRecorder) FinishStop() *gomock.Call {
|
|
mr.mock.ctrl.T.Helper()
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "FinishStop", reflect.TypeOf((*MockControllableContext)(nil).FinishStop))
|
|
}
|
|
|
|
// GenerateTaskID mocks base method.
|
|
func (m *MockControllableContext) GenerateTaskID() (int64, error) {
|
|
m.ctrl.T.Helper()
|
|
ret := m.ctrl.Call(m, "GenerateTaskID")
|
|
ret0, _ := ret[0].(int64)
|
|
ret1, _ := ret[1].(error)
|
|
return ret0, ret1
|
|
}
|
|
|
|
// GenerateTaskID indicates an expected call of GenerateTaskID.
|
|
func (mr *MockControllableContextMockRecorder) GenerateTaskID() *gomock.Call {
|
|
mr.mock.ctrl.T.Helper()
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GenerateTaskID", reflect.TypeOf((*MockControllableContext)(nil).GenerateTaskID))
|
|
}
|
|
|
|
// GenerateTaskIDs mocks base method.
|
|
func (m *MockControllableContext) GenerateTaskIDs(number int) ([]int64, error) {
|
|
m.ctrl.T.Helper()
|
|
ret := m.ctrl.Call(m, "GenerateTaskIDs", number)
|
|
ret0, _ := ret[0].([]int64)
|
|
ret1, _ := ret[1].(error)
|
|
return ret0, ret1
|
|
}
|
|
|
|
// GenerateTaskIDs indicates an expected call of GenerateTaskIDs.
|
|
func (mr *MockControllableContextMockRecorder) GenerateTaskIDs(number interface{}) *gomock.Call {
|
|
mr.mock.ctrl.T.Helper()
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GenerateTaskIDs", reflect.TypeOf((*MockControllableContext)(nil).GenerateTaskIDs), number)
|
|
}
|
|
|
|
// GetArchivalMetadata mocks base method.
|
|
func (m *MockControllableContext) GetArchivalMetadata() archiver.ArchivalMetadata {
|
|
m.ctrl.T.Helper()
|
|
ret := m.ctrl.Call(m, "GetArchivalMetadata")
|
|
ret0, _ := ret[0].(archiver.ArchivalMetadata)
|
|
return ret0
|
|
}
|
|
|
|
// GetArchivalMetadata indicates an expected call of GetArchivalMetadata.
|
|
func (mr *MockControllableContextMockRecorder) GetArchivalMetadata() *gomock.Call {
|
|
mr.mock.ctrl.T.Helper()
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetArchivalMetadata", reflect.TypeOf((*MockControllableContext)(nil).GetArchivalMetadata))
|
|
}
|
|
|
|
// GetClusterMetadata mocks base method.
|
|
func (m *MockControllableContext) GetClusterMetadata() cluster.Metadata {
|
|
m.ctrl.T.Helper()
|
|
ret := m.ctrl.Call(m, "GetClusterMetadata")
|
|
ret0, _ := ret[0].(cluster.Metadata)
|
|
return ret0
|
|
}
|
|
|
|
// GetClusterMetadata indicates an expected call of GetClusterMetadata.
|
|
func (mr *MockControllableContextMockRecorder) GetClusterMetadata() *gomock.Call {
|
|
mr.mock.ctrl.T.Helper()
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetClusterMetadata", reflect.TypeOf((*MockControllableContext)(nil).GetClusterMetadata))
|
|
}
|
|
|
|
// GetConfig mocks base method.
|
|
func (m *MockControllableContext) GetConfig() *configs.Config {
|
|
m.ctrl.T.Helper()
|
|
ret := m.ctrl.Call(m, "GetConfig")
|
|
ret0, _ := ret[0].(*configs.Config)
|
|
return ret0
|
|
}
|
|
|
|
// GetConfig indicates an expected call of GetConfig.
|
|
func (mr *MockControllableContextMockRecorder) GetConfig() *gomock.Call {
|
|
mr.mock.ctrl.T.Helper()
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetConfig", reflect.TypeOf((*MockControllableContext)(nil).GetConfig))
|
|
}
|
|
|
|
// GetCurrentExecution mocks base method.
|
|
func (m *MockControllableContext) GetCurrentExecution(ctx context.Context, request *persistence.GetCurrentExecutionRequest) (*persistence.GetCurrentExecutionResponse, error) {
|
|
m.ctrl.T.Helper()
|
|
ret := m.ctrl.Call(m, "GetCurrentExecution", ctx, request)
|
|
ret0, _ := ret[0].(*persistence.GetCurrentExecutionResponse)
|
|
ret1, _ := ret[1].(error)
|
|
return ret0, ret1
|
|
}
|
|
|
|
// GetCurrentExecution indicates an expected call of GetCurrentExecution.
|
|
func (mr *MockControllableContextMockRecorder) GetCurrentExecution(ctx, request interface{}) *gomock.Call {
|
|
mr.mock.ctrl.T.Helper()
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetCurrentExecution", reflect.TypeOf((*MockControllableContext)(nil).GetCurrentExecution), ctx, request)
|
|
}
|
|
|
|
// GetCurrentTime mocks base method.
|
|
func (m *MockControllableContext) GetCurrentTime(cluster string) time.Time {
|
|
m.ctrl.T.Helper()
|
|
ret := m.ctrl.Call(m, "GetCurrentTime", cluster)
|
|
ret0, _ := ret[0].(time.Time)
|
|
return ret0
|
|
}
|
|
|
|
// GetCurrentTime indicates an expected call of GetCurrentTime.
|
|
func (mr *MockControllableContextMockRecorder) GetCurrentTime(cluster interface{}) *gomock.Call {
|
|
mr.mock.ctrl.T.Helper()
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetCurrentTime", reflect.TypeOf((*MockControllableContext)(nil).GetCurrentTime), cluster)
|
|
}
|
|
|
|
// GetEngine mocks base method.
|
|
func (m *MockControllableContext) GetEngine(ctx context.Context) (Engine, error) {
|
|
m.ctrl.T.Helper()
|
|
ret := m.ctrl.Call(m, "GetEngine", ctx)
|
|
ret0, _ := ret[0].(Engine)
|
|
ret1, _ := ret[1].(error)
|
|
return ret0, ret1
|
|
}
|
|
|
|
// GetEngine indicates an expected call of GetEngine.
|
|
func (mr *MockControllableContextMockRecorder) GetEngine(ctx interface{}) *gomock.Call {
|
|
mr.mock.ctrl.T.Helper()
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetEngine", reflect.TypeOf((*MockControllableContext)(nil).GetEngine), ctx)
|
|
}
|
|
|
|
// GetEventsCache mocks base method.
|
|
func (m *MockControllableContext) GetEventsCache() events.Cache {
|
|
m.ctrl.T.Helper()
|
|
ret := m.ctrl.Call(m, "GetEventsCache")
|
|
ret0, _ := ret[0].(events.Cache)
|
|
return ret0
|
|
}
|
|
|
|
// GetEventsCache indicates an expected call of GetEventsCache.
|
|
func (mr *MockControllableContextMockRecorder) GetEventsCache() *gomock.Call {
|
|
mr.mock.ctrl.T.Helper()
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetEventsCache", reflect.TypeOf((*MockControllableContext)(nil).GetEventsCache))
|
|
}
|
|
|
|
// GetExecutionManager mocks base method.
|
|
func (m *MockControllableContext) GetExecutionManager() persistence.ExecutionManager {
|
|
m.ctrl.T.Helper()
|
|
ret := m.ctrl.Call(m, "GetExecutionManager")
|
|
ret0, _ := ret[0].(persistence.ExecutionManager)
|
|
return ret0
|
|
}
|
|
|
|
// GetExecutionManager indicates an expected call of GetExecutionManager.
|
|
func (mr *MockControllableContextMockRecorder) GetExecutionManager() *gomock.Call {
|
|
mr.mock.ctrl.T.Helper()
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetExecutionManager", reflect.TypeOf((*MockControllableContext)(nil).GetExecutionManager))
|
|
}
|
|
|
|
// GetHistoryClient mocks base method.
|
|
func (m *MockControllableContext) GetHistoryClient() v12.HistoryServiceClient {
|
|
m.ctrl.T.Helper()
|
|
ret := m.ctrl.Call(m, "GetHistoryClient")
|
|
ret0, _ := ret[0].(v12.HistoryServiceClient)
|
|
return ret0
|
|
}
|
|
|
|
// GetHistoryClient indicates an expected call of GetHistoryClient.
|
|
func (mr *MockControllableContextMockRecorder) GetHistoryClient() *gomock.Call {
|
|
mr.mock.ctrl.T.Helper()
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetHistoryClient", reflect.TypeOf((*MockControllableContext)(nil).GetHistoryClient))
|
|
}
|
|
|
|
// GetLogger mocks base method.
|
|
func (m *MockControllableContext) GetLogger() log.Logger {
|
|
m.ctrl.T.Helper()
|
|
ret := m.ctrl.Call(m, "GetLogger")
|
|
ret0, _ := ret[0].(log.Logger)
|
|
return ret0
|
|
}
|
|
|
|
// GetLogger indicates an expected call of GetLogger.
|
|
func (mr *MockControllableContextMockRecorder) GetLogger() *gomock.Call {
|
|
mr.mock.ctrl.T.Helper()
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetLogger", reflect.TypeOf((*MockControllableContext)(nil).GetLogger))
|
|
}
|
|
|
|
// GetMetricsHandler mocks base method.
|
|
func (m *MockControllableContext) GetMetricsHandler() metrics.Handler {
|
|
m.ctrl.T.Helper()
|
|
ret := m.ctrl.Call(m, "GetMetricsHandler")
|
|
ret0, _ := ret[0].(metrics.Handler)
|
|
return ret0
|
|
}
|
|
|
|
// GetMetricsHandler indicates an expected call of GetMetricsHandler.
|
|
func (mr *MockControllableContextMockRecorder) GetMetricsHandler() *gomock.Call {
|
|
mr.mock.ctrl.T.Helper()
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetMetricsHandler", reflect.TypeOf((*MockControllableContext)(nil).GetMetricsHandler))
|
|
}
|
|
|
|
// GetNamespaceRegistry mocks base method.
|
|
func (m *MockControllableContext) GetNamespaceRegistry() namespace.Registry {
|
|
m.ctrl.T.Helper()
|
|
ret := m.ctrl.Call(m, "GetNamespaceRegistry")
|
|
ret0, _ := ret[0].(namespace.Registry)
|
|
return ret0
|
|
}
|
|
|
|
// GetNamespaceRegistry indicates an expected call of GetNamespaceRegistry.
|
|
func (mr *MockControllableContextMockRecorder) GetNamespaceRegistry() *gomock.Call {
|
|
mr.mock.ctrl.T.Helper()
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetNamespaceRegistry", reflect.TypeOf((*MockControllableContext)(nil).GetNamespaceRegistry))
|
|
}
|
|
|
|
// GetOwner mocks base method.
|
|
func (m *MockControllableContext) GetOwner() string {
|
|
m.ctrl.T.Helper()
|
|
ret := m.ctrl.Call(m, "GetOwner")
|
|
ret0, _ := ret[0].(string)
|
|
return ret0
|
|
}
|
|
|
|
// GetOwner indicates an expected call of GetOwner.
|
|
func (mr *MockControllableContextMockRecorder) GetOwner() *gomock.Call {
|
|
mr.mock.ctrl.T.Helper()
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetOwner", reflect.TypeOf((*MockControllableContext)(nil).GetOwner))
|
|
}
|
|
|
|
// GetPayloadSerializer mocks base method.
|
|
func (m *MockControllableContext) GetPayloadSerializer() serialization.Serializer {
|
|
m.ctrl.T.Helper()
|
|
ret := m.ctrl.Call(m, "GetPayloadSerializer")
|
|
ret0, _ := ret[0].(serialization.Serializer)
|
|
return ret0
|
|
}
|
|
|
|
// GetPayloadSerializer indicates an expected call of GetPayloadSerializer.
|
|
func (mr *MockControllableContextMockRecorder) GetPayloadSerializer() *gomock.Call {
|
|
mr.mock.ctrl.T.Helper()
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetPayloadSerializer", reflect.TypeOf((*MockControllableContext)(nil).GetPayloadSerializer))
|
|
}
|
|
|
|
// GetPingChecks mocks base method.
|
|
func (m *MockControllableContext) GetPingChecks() []common.PingCheck {
|
|
m.ctrl.T.Helper()
|
|
ret := m.ctrl.Call(m, "GetPingChecks")
|
|
ret0, _ := ret[0].([]common.PingCheck)
|
|
return ret0
|
|
}
|
|
|
|
// GetPingChecks indicates an expected call of GetPingChecks.
|
|
func (mr *MockControllableContextMockRecorder) GetPingChecks() *gomock.Call {
|
|
mr.mock.ctrl.T.Helper()
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetPingChecks", reflect.TypeOf((*MockControllableContext)(nil).GetPingChecks))
|
|
}
|
|
|
|
// GetQueueExclusiveHighReadWatermark mocks base method.
|
|
func (m *MockControllableContext) GetQueueExclusiveHighReadWatermark(category tasks.Category) tasks.Key {
|
|
m.ctrl.T.Helper()
|
|
ret := m.ctrl.Call(m, "GetQueueExclusiveHighReadWatermark", category)
|
|
ret0, _ := ret[0].(tasks.Key)
|
|
return ret0
|
|
}
|
|
|
|
// GetQueueExclusiveHighReadWatermark indicates an expected call of GetQueueExclusiveHighReadWatermark.
|
|
func (mr *MockControllableContextMockRecorder) GetQueueExclusiveHighReadWatermark(category interface{}) *gomock.Call {
|
|
mr.mock.ctrl.T.Helper()
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetQueueExclusiveHighReadWatermark", reflect.TypeOf((*MockControllableContext)(nil).GetQueueExclusiveHighReadWatermark), category)
|
|
}
|
|
|
|
// GetQueueState mocks base method.
|
|
func (m *MockControllableContext) GetQueueState(category tasks.Category) (*v13.QueueState, bool) {
|
|
m.ctrl.T.Helper()
|
|
ret := m.ctrl.Call(m, "GetQueueState", category)
|
|
ret0, _ := ret[0].(*v13.QueueState)
|
|
ret1, _ := ret[1].(bool)
|
|
return ret0, ret1
|
|
}
|
|
|
|
// GetQueueState indicates an expected call of GetQueueState.
|
|
func (mr *MockControllableContextMockRecorder) GetQueueState(category interface{}) *gomock.Call {
|
|
mr.mock.ctrl.T.Helper()
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetQueueState", reflect.TypeOf((*MockControllableContext)(nil).GetQueueState), category)
|
|
}
|
|
|
|
// GetRangeID mocks base method.
|
|
func (m *MockControllableContext) GetRangeID() int64 {
|
|
m.ctrl.T.Helper()
|
|
ret := m.ctrl.Call(m, "GetRangeID")
|
|
ret0, _ := ret[0].(int64)
|
|
return ret0
|
|
}
|
|
|
|
// GetRangeID indicates an expected call of GetRangeID.
|
|
func (mr *MockControllableContextMockRecorder) GetRangeID() *gomock.Call {
|
|
mr.mock.ctrl.T.Helper()
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetRangeID", reflect.TypeOf((*MockControllableContext)(nil).GetRangeID))
|
|
}
|
|
|
|
// GetRemoteAdminClient mocks base method.
|
|
func (m *MockControllableContext) GetRemoteAdminClient(arg0 string) (v10.AdminServiceClient, error) {
|
|
m.ctrl.T.Helper()
|
|
ret := m.ctrl.Call(m, "GetRemoteAdminClient", arg0)
|
|
ret0, _ := ret[0].(v10.AdminServiceClient)
|
|
ret1, _ := ret[1].(error)
|
|
return ret0, ret1
|
|
}
|
|
|
|
// GetRemoteAdminClient indicates an expected call of GetRemoteAdminClient.
|
|
func (mr *MockControllableContextMockRecorder) GetRemoteAdminClient(arg0 interface{}) *gomock.Call {
|
|
mr.mock.ctrl.T.Helper()
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetRemoteAdminClient", reflect.TypeOf((*MockControllableContext)(nil).GetRemoteAdminClient), arg0)
|
|
}
|
|
|
|
// GetReplicationStatus mocks base method.
|
|
func (m *MockControllableContext) GetReplicationStatus(cluster []string) (map[string]*v12.ShardReplicationStatusPerCluster, map[string]*v12.HandoverNamespaceInfo, error) {
|
|
m.ctrl.T.Helper()
|
|
ret := m.ctrl.Call(m, "GetReplicationStatus", cluster)
|
|
ret0, _ := ret[0].(map[string]*v12.ShardReplicationStatusPerCluster)
|
|
ret1, _ := ret[1].(map[string]*v12.HandoverNamespaceInfo)
|
|
ret2, _ := ret[2].(error)
|
|
return ret0, ret1, ret2
|
|
}
|
|
|
|
// GetReplicationStatus indicates an expected call of GetReplicationStatus.
|
|
func (mr *MockControllableContextMockRecorder) GetReplicationStatus(cluster interface{}) *gomock.Call {
|
|
mr.mock.ctrl.T.Helper()
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetReplicationStatus", reflect.TypeOf((*MockControllableContext)(nil).GetReplicationStatus), cluster)
|
|
}
|
|
|
|
// GetReplicatorDLQAckLevel mocks base method.
|
|
func (m *MockControllableContext) GetReplicatorDLQAckLevel(sourceCluster string) int64 {
|
|
m.ctrl.T.Helper()
|
|
ret := m.ctrl.Call(m, "GetReplicatorDLQAckLevel", sourceCluster)
|
|
ret0, _ := ret[0].(int64)
|
|
return ret0
|
|
}
|
|
|
|
// GetReplicatorDLQAckLevel indicates an expected call of GetReplicatorDLQAckLevel.
|
|
func (mr *MockControllableContextMockRecorder) GetReplicatorDLQAckLevel(sourceCluster interface{}) *gomock.Call {
|
|
mr.mock.ctrl.T.Helper()
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetReplicatorDLQAckLevel", reflect.TypeOf((*MockControllableContext)(nil).GetReplicatorDLQAckLevel), sourceCluster)
|
|
}
|
|
|
|
// GetSearchAttributesMapperProvider mocks base method.
|
|
func (m *MockControllableContext) GetSearchAttributesMapperProvider() searchattribute.MapperProvider {
|
|
m.ctrl.T.Helper()
|
|
ret := m.ctrl.Call(m, "GetSearchAttributesMapperProvider")
|
|
ret0, _ := ret[0].(searchattribute.MapperProvider)
|
|
return ret0
|
|
}
|
|
|
|
// GetSearchAttributesMapperProvider indicates an expected call of GetSearchAttributesMapperProvider.
|
|
func (mr *MockControllableContextMockRecorder) GetSearchAttributesMapperProvider() *gomock.Call {
|
|
mr.mock.ctrl.T.Helper()
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetSearchAttributesMapperProvider", reflect.TypeOf((*MockControllableContext)(nil).GetSearchAttributesMapperProvider))
|
|
}
|
|
|
|
// GetSearchAttributesProvider mocks base method.
|
|
func (m *MockControllableContext) GetSearchAttributesProvider() searchattribute.Provider {
|
|
m.ctrl.T.Helper()
|
|
ret := m.ctrl.Call(m, "GetSearchAttributesProvider")
|
|
ret0, _ := ret[0].(searchattribute.Provider)
|
|
return ret0
|
|
}
|
|
|
|
// GetSearchAttributesProvider indicates an expected call of GetSearchAttributesProvider.
|
|
func (mr *MockControllableContextMockRecorder) GetSearchAttributesProvider() *gomock.Call {
|
|
mr.mock.ctrl.T.Helper()
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetSearchAttributesProvider", reflect.TypeOf((*MockControllableContext)(nil).GetSearchAttributesProvider))
|
|
}
|
|
|
|
// GetShardID mocks base method.
|
|
func (m *MockControllableContext) GetShardID() int32 {
|
|
m.ctrl.T.Helper()
|
|
ret := m.ctrl.Call(m, "GetShardID")
|
|
ret0, _ := ret[0].(int32)
|
|
return ret0
|
|
}
|
|
|
|
// GetShardID indicates an expected call of GetShardID.
|
|
func (mr *MockControllableContextMockRecorder) GetShardID() *gomock.Call {
|
|
mr.mock.ctrl.T.Helper()
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetShardID", reflect.TypeOf((*MockControllableContext)(nil).GetShardID))
|
|
}
|
|
|
|
// GetThrottledLogger mocks base method.
|
|
func (m *MockControllableContext) GetThrottledLogger() log.Logger {
|
|
m.ctrl.T.Helper()
|
|
ret := m.ctrl.Call(m, "GetThrottledLogger")
|
|
ret0, _ := ret[0].(log.Logger)
|
|
return ret0
|
|
}
|
|
|
|
// GetThrottledLogger indicates an expected call of GetThrottledLogger.
|
|
func (mr *MockControllableContextMockRecorder) GetThrottledLogger() *gomock.Call {
|
|
mr.mock.ctrl.T.Helper()
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetThrottledLogger", reflect.TypeOf((*MockControllableContext)(nil).GetThrottledLogger))
|
|
}
|
|
|
|
// GetTimeSource mocks base method.
|
|
func (m *MockControllableContext) GetTimeSource() clock.TimeSource {
|
|
m.ctrl.T.Helper()
|
|
ret := m.ctrl.Call(m, "GetTimeSource")
|
|
ret0, _ := ret[0].(clock.TimeSource)
|
|
return ret0
|
|
}
|
|
|
|
// GetTimeSource indicates an expected call of GetTimeSource.
|
|
func (mr *MockControllableContextMockRecorder) GetTimeSource() *gomock.Call {
|
|
mr.mock.ctrl.T.Helper()
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetTimeSource", reflect.TypeOf((*MockControllableContext)(nil).GetTimeSource))
|
|
}
|
|
|
|
// GetWorkflowExecution mocks base method.
|
|
func (m *MockControllableContext) GetWorkflowExecution(ctx context.Context, request *persistence.GetWorkflowExecutionRequest) (*persistence.GetWorkflowExecutionResponse, error) {
|
|
m.ctrl.T.Helper()
|
|
ret := m.ctrl.Call(m, "GetWorkflowExecution", ctx, request)
|
|
ret0, _ := ret[0].(*persistence.GetWorkflowExecutionResponse)
|
|
ret1, _ := ret[1].(error)
|
|
return ret0, ret1
|
|
}
|
|
|
|
// GetWorkflowExecution indicates an expected call of GetWorkflowExecution.
|
|
func (mr *MockControllableContextMockRecorder) GetWorkflowExecution(ctx, request interface{}) *gomock.Call {
|
|
mr.mock.ctrl.T.Helper()
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetWorkflowExecution", reflect.TypeOf((*MockControllableContext)(nil).GetWorkflowExecution), ctx, request)
|
|
}
|
|
|
|
// IsValid mocks base method.
|
|
func (m *MockControllableContext) IsValid() bool {
|
|
m.ctrl.T.Helper()
|
|
ret := m.ctrl.Call(m, "IsValid")
|
|
ret0, _ := ret[0].(bool)
|
|
return ret0
|
|
}
|
|
|
|
// IsValid indicates an expected call of IsValid.
|
|
func (mr *MockControllableContextMockRecorder) IsValid() *gomock.Call {
|
|
mr.mock.ctrl.T.Helper()
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "IsValid", reflect.TypeOf((*MockControllableContext)(nil).IsValid))
|
|
}
|
|
|
|
// NewVectorClock mocks base method.
|
|
func (m *MockControllableContext) NewVectorClock() (*v11.VectorClock, error) {
|
|
m.ctrl.T.Helper()
|
|
ret := m.ctrl.Call(m, "NewVectorClock")
|
|
ret0, _ := ret[0].(*v11.VectorClock)
|
|
ret1, _ := ret[1].(error)
|
|
return ret0, ret1
|
|
}
|
|
|
|
// NewVectorClock indicates an expected call of NewVectorClock.
|
|
func (mr *MockControllableContextMockRecorder) NewVectorClock() *gomock.Call {
|
|
mr.mock.ctrl.T.Helper()
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "NewVectorClock", reflect.TypeOf((*MockControllableContext)(nil).NewVectorClock))
|
|
}
|
|
|
|
// SetCurrentTime mocks base method.
|
|
func (m *MockControllableContext) SetCurrentTime(cluster string, currentTime time.Time) {
|
|
m.ctrl.T.Helper()
|
|
m.ctrl.Call(m, "SetCurrentTime", cluster, currentTime)
|
|
}
|
|
|
|
// SetCurrentTime indicates an expected call of SetCurrentTime.
|
|
func (mr *MockControllableContextMockRecorder) SetCurrentTime(cluster, currentTime interface{}) *gomock.Call {
|
|
mr.mock.ctrl.T.Helper()
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetCurrentTime", reflect.TypeOf((*MockControllableContext)(nil).SetCurrentTime), cluster, currentTime)
|
|
}
|
|
|
|
// SetQueueState mocks base method.
|
|
func (m *MockControllableContext) SetQueueState(category tasks.Category, tasksCompleted int, state *v13.QueueState) error {
|
|
m.ctrl.T.Helper()
|
|
ret := m.ctrl.Call(m, "SetQueueState", category, tasksCompleted, state)
|
|
ret0, _ := ret[0].(error)
|
|
return ret0
|
|
}
|
|
|
|
// SetQueueState indicates an expected call of SetQueueState.
|
|
func (mr *MockControllableContextMockRecorder) SetQueueState(category, tasksCompleted, state interface{}) *gomock.Call {
|
|
mr.mock.ctrl.T.Helper()
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetQueueState", reflect.TypeOf((*MockControllableContext)(nil).SetQueueState), category, tasksCompleted, state)
|
|
}
|
|
|
|
// SetWorkflowExecution mocks base method.
|
|
func (m *MockControllableContext) SetWorkflowExecution(ctx context.Context, request *persistence.SetWorkflowExecutionRequest) (*persistence.SetWorkflowExecutionResponse, error) {
|
|
m.ctrl.T.Helper()
|
|
ret := m.ctrl.Call(m, "SetWorkflowExecution", ctx, request)
|
|
ret0, _ := ret[0].(*persistence.SetWorkflowExecutionResponse)
|
|
ret1, _ := ret[1].(error)
|
|
return ret0, ret1
|
|
}
|
|
|
|
// SetWorkflowExecution indicates an expected call of SetWorkflowExecution.
|
|
func (mr *MockControllableContextMockRecorder) SetWorkflowExecution(ctx, request interface{}) *gomock.Call {
|
|
mr.mock.ctrl.T.Helper()
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetWorkflowExecution", reflect.TypeOf((*MockControllableContext)(nil).SetWorkflowExecution), ctx, request)
|
|
}
|
|
|
|
// StateMachineRegistry mocks base method.
|
|
func (m *MockControllableContext) StateMachineRegistry() *hsm.Registry {
|
|
m.ctrl.T.Helper()
|
|
ret := m.ctrl.Call(m, "StateMachineRegistry")
|
|
ret0, _ := ret[0].(*hsm.Registry)
|
|
return ret0
|
|
}
|
|
|
|
// StateMachineRegistry indicates an expected call of StateMachineRegistry.
|
|
func (mr *MockControllableContextMockRecorder) StateMachineRegistry() *gomock.Call {
|
|
mr.mock.ctrl.T.Helper()
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "StateMachineRegistry", reflect.TypeOf((*MockControllableContext)(nil).StateMachineRegistry))
|
|
}
|
|
|
|
// UnloadForOwnershipLost mocks base method.
|
|
func (m *MockControllableContext) UnloadForOwnershipLost() {
|
|
m.ctrl.T.Helper()
|
|
m.ctrl.Call(m, "UnloadForOwnershipLost")
|
|
}
|
|
|
|
// UnloadForOwnershipLost indicates an expected call of UnloadForOwnershipLost.
|
|
func (mr *MockControllableContextMockRecorder) UnloadForOwnershipLost() *gomock.Call {
|
|
mr.mock.ctrl.T.Helper()
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UnloadForOwnershipLost", reflect.TypeOf((*MockControllableContext)(nil).UnloadForOwnershipLost))
|
|
}
|
|
|
|
// UpdateHandoverNamespace mocks base method.
|
|
func (m *MockControllableContext) UpdateHandoverNamespace(ns *namespace.Namespace, deletedFromDb bool) {
|
|
m.ctrl.T.Helper()
|
|
m.ctrl.Call(m, "UpdateHandoverNamespace", ns, deletedFromDb)
|
|
}
|
|
|
|
// UpdateHandoverNamespace indicates an expected call of UpdateHandoverNamespace.
|
|
func (mr *MockControllableContextMockRecorder) UpdateHandoverNamespace(ns, deletedFromDb interface{}) *gomock.Call {
|
|
mr.mock.ctrl.T.Helper()
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateHandoverNamespace", reflect.TypeOf((*MockControllableContext)(nil).UpdateHandoverNamespace), ns, deletedFromDb)
|
|
}
|
|
|
|
// UpdateRemoteClusterInfo mocks base method.
|
|
func (m *MockControllableContext) UpdateRemoteClusterInfo(cluster string, ackTaskID int64, ackTimestamp time.Time) {
|
|
m.ctrl.T.Helper()
|
|
m.ctrl.Call(m, "UpdateRemoteClusterInfo", cluster, ackTaskID, ackTimestamp)
|
|
}
|
|
|
|
// UpdateRemoteClusterInfo indicates an expected call of UpdateRemoteClusterInfo.
|
|
func (mr *MockControllableContextMockRecorder) UpdateRemoteClusterInfo(cluster, ackTaskID, ackTimestamp interface{}) *gomock.Call {
|
|
mr.mock.ctrl.T.Helper()
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateRemoteClusterInfo", reflect.TypeOf((*MockControllableContext)(nil).UpdateRemoteClusterInfo), cluster, ackTaskID, ackTimestamp)
|
|
}
|
|
|
|
// UpdateRemoteReaderInfo mocks base method.
|
|
func (m *MockControllableContext) UpdateRemoteReaderInfo(readerID, ackTaskID int64, ackTimestamp time.Time) error {
|
|
m.ctrl.T.Helper()
|
|
ret := m.ctrl.Call(m, "UpdateRemoteReaderInfo", readerID, ackTaskID, ackTimestamp)
|
|
ret0, _ := ret[0].(error)
|
|
return ret0
|
|
}
|
|
|
|
// UpdateRemoteReaderInfo indicates an expected call of UpdateRemoteReaderInfo.
|
|
func (mr *MockControllableContextMockRecorder) UpdateRemoteReaderInfo(readerID, ackTaskID, ackTimestamp interface{}) *gomock.Call {
|
|
mr.mock.ctrl.T.Helper()
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateRemoteReaderInfo", reflect.TypeOf((*MockControllableContext)(nil).UpdateRemoteReaderInfo), readerID, ackTaskID, ackTimestamp)
|
|
}
|
|
|
|
// UpdateReplicationQueueReaderState mocks base method.
|
|
func (m *MockControllableContext) UpdateReplicationQueueReaderState(readerID int64, readerState *v13.QueueReaderState) error {
|
|
m.ctrl.T.Helper()
|
|
ret := m.ctrl.Call(m, "UpdateReplicationQueueReaderState", readerID, readerState)
|
|
ret0, _ := ret[0].(error)
|
|
return ret0
|
|
}
|
|
|
|
// UpdateReplicationQueueReaderState indicates an expected call of UpdateReplicationQueueReaderState.
|
|
func (mr *MockControllableContextMockRecorder) UpdateReplicationQueueReaderState(readerID, readerState interface{}) *gomock.Call {
|
|
mr.mock.ctrl.T.Helper()
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateReplicationQueueReaderState", reflect.TypeOf((*MockControllableContext)(nil).UpdateReplicationQueueReaderState), readerID, readerState)
|
|
}
|
|
|
|
// UpdateReplicatorDLQAckLevel mocks base method.
|
|
func (m *MockControllableContext) UpdateReplicatorDLQAckLevel(sourCluster string, ackLevel int64) error {
|
|
m.ctrl.T.Helper()
|
|
ret := m.ctrl.Call(m, "UpdateReplicatorDLQAckLevel", sourCluster, ackLevel)
|
|
ret0, _ := ret[0].(error)
|
|
return ret0
|
|
}
|
|
|
|
// UpdateReplicatorDLQAckLevel indicates an expected call of UpdateReplicatorDLQAckLevel.
|
|
func (mr *MockControllableContextMockRecorder) UpdateReplicatorDLQAckLevel(sourCluster, ackLevel interface{}) *gomock.Call {
|
|
mr.mock.ctrl.T.Helper()
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateReplicatorDLQAckLevel", reflect.TypeOf((*MockControllableContext)(nil).UpdateReplicatorDLQAckLevel), sourCluster, ackLevel)
|
|
}
|
|
|
|
// UpdateWorkflowExecution mocks base method.
|
|
func (m *MockControllableContext) UpdateWorkflowExecution(ctx context.Context, request *persistence.UpdateWorkflowExecutionRequest) (*persistence.UpdateWorkflowExecutionResponse, error) {
|
|
m.ctrl.T.Helper()
|
|
ret := m.ctrl.Call(m, "UpdateWorkflowExecution", ctx, request)
|
|
ret0, _ := ret[0].(*persistence.UpdateWorkflowExecutionResponse)
|
|
ret1, _ := ret[1].(error)
|
|
return ret0, ret1
|
|
}
|
|
|
|
// UpdateWorkflowExecution indicates an expected call of UpdateWorkflowExecution.
|
|
func (mr *MockControllableContextMockRecorder) UpdateWorkflowExecution(ctx, request interface{}) *gomock.Call {
|
|
mr.mock.ctrl.T.Helper()
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateWorkflowExecution", reflect.TypeOf((*MockControllableContext)(nil).UpdateWorkflowExecution), ctx, request)
|
|
}
|