C# Class Stardust.Manager.JobRepository

Inheritance: IJobRepository
Exibir arquivo Open project: Teleopti/Stardust

Public Methods

Method Description
AddItemToJobQueue ( JobQueueItem jobQueueItem ) : void
AssignJobToWorkerNode ( ) : void
CancelJobByJobId ( System.Guid jobId ) : void
CreateJobDetailByJobId ( System.Guid jobId, string detail, System.DateTime created ) : void
DoesJobQueueItemExists ( System.Guid jobId ) : bool
GetAllExecutingJobs ( ) : IList
GetAllItemsInJobQueue ( ) : List
GetAllJobs ( ) : IList
GetJobByJobId ( System.Guid jobId ) : Job
GetJobDetailsByJobId ( System.Guid jobId ) : IList
GetJobQueueItemByJobId ( System.Guid jobId ) : JobQueueItem
JobRepository ( ManagerConfiguration managerConfiguration, RetryPolicyProvider retryPolicyProvider, CreateSqlCommandHelper createSqlCommandHelper, IHttpSender httpSender ) : System
RequeueJobThatDidNotEndByWorkerNodeUri ( string workerNodeUri ) : void
UpdateResultForJob ( System.Guid jobId, string result, System.DateTime ended ) : void

Private Methods

Method Description
AssignJobToWorkerNodeWorker ( Uri availableNode ) : void
CancelJobByJobIdWorker ( System.Guid jobId ) : void
CreateJobDetailFromSqlDataReader ( System.Data.SqlClient.SqlDataReader sqlDataReader ) : JobDetail
CreateJobFromSqlDataReader ( System.Data.SqlClient.SqlDataReader sqlDataReader ) : Job
CreateJobQueueItemFromSqlDataReader ( System.Data.SqlClient.SqlDataReader sqlDataReader ) : JobQueueItem
DeleteJobQueueItemByJobId ( System.Guid jobId ) : void
Retry ( System.Action action, int numerOfTries = 10 ) : void

Method Details

AddItemToJobQueue() public method

public AddItemToJobQueue ( JobQueueItem jobQueueItem ) : void
jobQueueItem Stardust.Manager.Models.JobQueueItem
return void

AssignJobToWorkerNode() public method

public AssignJobToWorkerNode ( ) : void
return void

CancelJobByJobId() public method

public CancelJobByJobId ( System.Guid jobId ) : void
jobId System.Guid
return void

CreateJobDetailByJobId() public method

public CreateJobDetailByJobId ( System.Guid jobId, string detail, System.DateTime created ) : void
jobId System.Guid
detail string
created System.DateTime
return void

DoesJobQueueItemExists() public method

public DoesJobQueueItemExists ( System.Guid jobId ) : bool
jobId System.Guid
return bool

GetAllExecutingJobs() public method

public GetAllExecutingJobs ( ) : IList
return IList

GetAllItemsInJobQueue() public method

public GetAllItemsInJobQueue ( ) : List
return List

GetAllJobs() public method

public GetAllJobs ( ) : IList
return IList

GetJobByJobId() public method

public GetJobByJobId ( System.Guid jobId ) : Job
jobId System.Guid
return Stardust.Manager.Models.Job

GetJobDetailsByJobId() public method

public GetJobDetailsByJobId ( System.Guid jobId ) : IList
jobId System.Guid
return IList

GetJobQueueItemByJobId() public method

public GetJobQueueItemByJobId ( System.Guid jobId ) : JobQueueItem
jobId System.Guid
return Stardust.Manager.Models.JobQueueItem

JobRepository() public method

public JobRepository ( ManagerConfiguration managerConfiguration, RetryPolicyProvider retryPolicyProvider, CreateSqlCommandHelper createSqlCommandHelper, IHttpSender httpSender ) : System
managerConfiguration ManagerConfiguration
retryPolicyProvider RetryPolicyProvider
createSqlCommandHelper Stardust.Manager.Helpers.CreateSqlCommandHelper
httpSender IHttpSender
return System

RequeueJobThatDidNotEndByWorkerNodeUri() public method

public RequeueJobThatDidNotEndByWorkerNodeUri ( string workerNodeUri ) : void
workerNodeUri string
return void

UpdateResultForJob() public method

public UpdateResultForJob ( System.Guid jobId, string result, System.DateTime ended ) : void
jobId System.Guid
result string
ended System.DateTime
return void