C# Class Stardust.Node.Workers.WorkerWrapper

Inheritance: IWorkerWrapper
Show file Open project: Teleopti/Stardust

Private Properties

Property Type Description
CreateBadRequest System.Net.Http.HttpResponseMessage
NodeStartUpNotificationToManagerTimer_TrySendNodeStartUpNotificationSucceded void
SendJobProgressToManager void
SetNodeStatusTimer void
TrySendStatusToManagerTimer_TrySendStatusSucceded void

Public Methods

Method Description
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

Private Methods

Method Description
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

Method Details

CancelJob() public method

public CancelJob ( System.Guid id ) : void
id System.Guid
return void

CancelTimeoutCurrentMessageTask() public method

public CancelTimeoutCurrentMessageTask ( ) : void
return void

CreateTimeoutCurrentMessageTask() public method

public CreateTimeoutCurrentMessageTask ( JobQueueItemEntity jobQueueItemEntity ) : Task
jobQueueItemEntity Stardust.Node.Entities.JobQueueItemEntity
return Task

Dispose() public method

public Dispose ( ) : void
return void

GetCurrentMessageToProcess() public method

public GetCurrentMessageToProcess ( ) : JobQueueItemEntity
return Stardust.Node.Entities.JobQueueItemEntity

ResetCurrentMessage() public method

public ResetCurrentMessage ( ) : void
return void

StartJob() public method

public StartJob ( JobQueueItemEntity jobQueueItemEntity ) : void
jobQueueItemEntity Stardust.Node.Entities.JobQueueItemEntity
return void

ValidateStartJob() public method

public ValidateStartJob ( JobQueueItemEntity jobQueueItemEntity ) : HttpResponseMessage
jobQueueItemEntity Stardust.Node.Entities.JobQueueItemEntity
return System.Net.Http.HttpResponseMessage

WorkerWrapper() public method

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
return System