mdsinteractor

package
v0.0.0-...-0117b6e Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 2, 2024 License: Apache-2.0 Imports: 24 Imported by: 0

Documentation

Overview

Package mdsinteractor will be responsible for communicating with MDS

Index

Constants

View Source
const (
	// Name of the interactor, to register to message service
	Name = "MDSInteractor"
)

Variables

This section is empty.

Functions

func New

New initiates and returns MDS Interactor when needed

Types

type MDSInteractor

type MDSInteractor struct {
	// contains filtered or unexported fields
}

MDSInteractor defines the properties and methods to communicate with MDS

func (*MDSInteractor) Close

func (mds *MDSInteractor) Close() error

Close closes connection. The closing operations for MDS interactor is done in BeforeClose itself. Hence, this function does not operation now.

func (*MDSInteractor) GetName

func (mds *MDSInteractor) GetName() string

GetName used to get the name of interactor

func (*MDSInteractor) GetSupportedWorkers

func (mds *MDSInteractor) GetSupportedWorkers() []utils.WorkerName

GetSupportedWorkers returns the workers needed by the interactors

func (*MDSInteractor) Initialize

func (mds *MDSInteractor) Initialize(ableToOpenMGSConnection *uint32) (err error)

Initialize initializes MDSInteractor properties and starts failed reply job

func (*MDSInteractor) PostProcessorInitialization

func (mds *MDSInteractor) PostProcessorInitialization(worker utils.WorkerName)

PostProcessorInitialization registers executes PostProcessorInitialization operations Will be executed after the processor initialization is done in MessageService Currently we use this only for command processors/document worker

func (*MDSInteractor) PreProcessorClose

func (mds *MDSInteractor) PreProcessorClose()

PreProcessorClose defines operations to be performed before processor close Before command worker processor close, we try to close the message polling and send failed reply job in this function

type MDSState

type MDSState string
const (
	MDSStartInProgress MDSState = "MDSStartInProgress"
	MDSStartCompleted  MDSState = "MDSStartCompleted"
	MDSStopInProgress  MDSState = "MDSStopInProgress"
	MDSStopCompleted   MDSState = "MDSStopCompleted"
	MDSShutDown        MDSState = "MDSShutDown"
)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL