C# Класс Stardust.Node.Workers.WorkerWrapper

Наследование: IWorkerWrapper
Показать файл Открыть проект

Private Properties

Свойство Тип Описание
CreateBadRequest System.Net.Http.HttpResponseMessage
NodeStartUpNotificationToManagerTimer_TrySendNodeStartUpNotificationSucceded void
SendJobProgressToManager void
SetNodeStatusTimer void
TrySendStatusToManagerTimer_TrySendStatusSucceded void

Открытые методы

Метод Описание
CancelJob ( System.Guid id ) : void
CancelTimeoutCurrentMessageTask ( ) : void
CreateTimeoutCurrentMessageTask ( JobQueueItemEntity jobQueueItemEntity ) : Task
Dispose ( ) : void
GetCurrentMessageToProcess ( ) : JobQueueItemEntity
ResetCurrentMessage ( ) : void
StartJob ( JobQueueItemEntity jobQueueItemEntity ) : void
ValidateStartJob ( JobQueueItemEntity jobQueueItemEntity ) : HttpResponseMessage
WorkerWrapper ( IInvokeHandler invokeHandler, NodeConfiguration nodeConfiguration, TrySendNodeStartUpNotificationToManagerTimer nodeStartUpNotificationToManagerTimer, System.Timers.Timer pingToManagerTimer, TrySendJobDoneStatusToManagerTimer trySendJobDoneStatusToManagerTimer, TrySendJobCanceledToManagerTimer trySendJobCanceledStatusToManagerTimer, TrySendJobFaultedToManagerTimer trySendJobFaultedStatusToManagerTimer, TrySendJobDetailToManagerTimer trySendJobDetailToManagerTimer ) : System

Приватные методы

Метод Описание
CreateBadRequest ( string content ) : HttpResponseMessage
NodeStartUpNotificationToManagerTimer_TrySendNodeStartUpNotificationSucceded ( object sender, EventArgs e ) : void
SendJobProgressToManager ( string message ) : void
SetNodeStatusTimer ( TrySendStatusToManagerTimer newTrySendStatusToManagerTimer, JobQueueItemEntity jobQueueItemEntity ) : void
TrySendStatusToManagerTimer_TrySendStatusSucceded ( object sender, EventArgs e ) : void

Описание методов

CancelJob() публичный Метод

public CancelJob ( System.Guid id ) : void
id System.Guid
Результат void

CancelTimeoutCurrentMessageTask() публичный Метод

public CancelTimeoutCurrentMessageTask ( ) : void
Результат void

CreateTimeoutCurrentMessageTask() публичный Метод

public CreateTimeoutCurrentMessageTask ( JobQueueItemEntity jobQueueItemEntity ) : Task
jobQueueItemEntity Stardust.Node.Entities.JobQueueItemEntity
Результат Task

Dispose() публичный Метод

public Dispose ( ) : void
Результат void

GetCurrentMessageToProcess() публичный Метод

public GetCurrentMessageToProcess ( ) : JobQueueItemEntity
Результат Stardust.Node.Entities.JobQueueItemEntity

ResetCurrentMessage() публичный Метод

public ResetCurrentMessage ( ) : void
Результат void

StartJob() публичный Метод

public StartJob ( JobQueueItemEntity jobQueueItemEntity ) : void
jobQueueItemEntity Stardust.Node.Entities.JobQueueItemEntity
Результат void

ValidateStartJob() публичный Метод

public ValidateStartJob ( JobQueueItemEntity jobQueueItemEntity ) : HttpResponseMessage
jobQueueItemEntity Stardust.Node.Entities.JobQueueItemEntity
Результат System.Net.Http.HttpResponseMessage

WorkerWrapper() публичный Метод

public WorkerWrapper ( IInvokeHandler invokeHandler, NodeConfiguration nodeConfiguration, TrySendNodeStartUpNotificationToManagerTimer nodeStartUpNotificationToManagerTimer, System.Timers.Timer pingToManagerTimer, TrySendJobDoneStatusToManagerTimer trySendJobDoneStatusToManagerTimer, TrySendJobCanceledToManagerTimer trySendJobCanceledStatusToManagerTimer, TrySendJobFaultedToManagerTimer trySendJobFaultedStatusToManagerTimer, TrySendJobDetailToManagerTimer trySendJobDetailToManagerTimer ) : System
invokeHandler IInvokeHandler
nodeConfiguration NodeConfiguration
nodeStartUpNotificationToManagerTimer Stardust.Node.Timers.TrySendNodeStartUpNotificationToManagerTimer
pingToManagerTimer System.Timers.Timer
trySendJobDoneStatusToManagerTimer Stardust.Node.Timers.TrySendJobDoneStatusToManagerTimer
trySendJobCanceledStatusToManagerTimer Stardust.Node.Timers.TrySendJobCanceledToManagerTimer
trySendJobFaultedStatusToManagerTimer Stardust.Node.Timers.TrySendJobFaultedToManagerTimer
trySendJobDetailToManagerTimer Stardust.Node.Timers.TrySendJobDetailToManagerTimer
Результат System