C# Class R.Scheduler.Persistance.InMemoryStore

InMemory implementation of IPersistanceStore
Inheritance: IPersistanceStore
Datei anzeigen Open project: R-Suite/R.Scheduler Class Usage Examples

Public Methods

Method Description
GetCalendarId ( string name ) : System.Guid

Get calendar id mapped to specified name

GetCalendarName ( System.Guid id ) : string

Get calendar name mapped to specified id

GetErroredJobs ( int count ) : IEnumerable
GetExecutedJobs ( int count ) : IEnumerable
GetJobId ( JobKey jobKey ) : System.Guid

Get job id mapped to specified JobKey

GetJobKey ( System.Guid id ) : JobKey

Get JobKey mapped to specified id

GetTriggerId ( TriggerKey triggerKey ) : System.Guid
GetTriggerKey ( System.Guid id ) : TriggerKey
InMemoryStore ( ) : System
InsertAuditLog ( AuditLog log ) : void
RemoveCalendarIdMap ( string name ) : void

Delete Calendar id mapping

RemoveJobKeyIdMap ( string jobName, string jobGroup ) : void
RemoveTriggerKeyIdMap ( string triggerName, string triggerGroup ) : void
UpsertCalendarIdMap ( string name ) : System.Guid
UpsertJobKeyIdMap ( string jobName, string jobGroup, System.Guid jobId = null ) : System.Guid

Insert JobKey and return new (or provided) id. Return existing id if job key already exists.

UpsertTriggerKeyIdMap ( string triggerName, string triggerGroup ) : System.Guid

Insert TriggerKey and return new id. Return existing id if trigger key already exists.

Method Details

GetCalendarId() public method

Get calendar id mapped to specified name
public GetCalendarId ( string name ) : System.Guid
name string
return System.Guid

GetCalendarName() public method

Get calendar name mapped to specified id
public GetCalendarName ( System.Guid id ) : string
id System.Guid
return string

GetErroredJobs() public method

public GetErroredJobs ( int count ) : IEnumerable
count int
return IEnumerable

GetExecutedJobs() public method

public GetExecutedJobs ( int count ) : IEnumerable
count int
return IEnumerable

GetJobId() public method

Get job id mapped to specified JobKey
public GetJobId ( JobKey jobKey ) : System.Guid
jobKey JobKey
return System.Guid

GetJobKey() public method

Get JobKey mapped to specified id
public GetJobKey ( System.Guid id ) : JobKey
id System.Guid
return JobKey

GetTriggerId() public method

public GetTriggerId ( TriggerKey triggerKey ) : System.Guid
triggerKey TriggerKey
return System.Guid

GetTriggerKey() public method

public GetTriggerKey ( System.Guid id ) : TriggerKey
id System.Guid
return TriggerKey

InMemoryStore() public method

public InMemoryStore ( ) : System
return System

InsertAuditLog() public method

public InsertAuditLog ( AuditLog log ) : void
log R.Scheduler.Interfaces.AuditLog
return void

RemoveCalendarIdMap() public method

Delete Calendar id mapping
public RemoveCalendarIdMap ( string name ) : void
name string
return void

RemoveJobKeyIdMap() public method

public RemoveJobKeyIdMap ( string jobName, string jobGroup ) : void
jobName string
jobGroup string
return void

RemoveTriggerKeyIdMap() public method

public RemoveTriggerKeyIdMap ( string triggerName, string triggerGroup ) : void
triggerName string
triggerGroup string
return void

UpsertCalendarIdMap() public method

public UpsertCalendarIdMap ( string name ) : System.Guid
name string
return System.Guid

UpsertJobKeyIdMap() public method

Insert JobKey and return new (or provided) id. Return existing id if job key already exists.
public UpsertJobKeyIdMap ( string jobName, string jobGroup, System.Guid jobId = null ) : System.Guid
jobName string
jobGroup string
jobId System.Guid
return System.Guid

UpsertTriggerKeyIdMap() public method

Insert TriggerKey and return new id. Return existing id if trigger key already exists.
public UpsertTriggerKeyIdMap ( string triggerName, string triggerGroup ) : System.Guid
triggerName string
triggerGroup string
return System.Guid