C# Class R.Scheduler.Persistance.PostgreStore

PostgreSQL implementation of IPersistanceStore
Inheritance: IPersistanceStore
Afficher le fichier Open project: R-Suite/R.Scheduler Class Usage Examples

Méthodes publiques

Méthode 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

Get count of most recently failed jobs

GetExecutedJobs ( int count ) : IEnumerable

Get count of most recently executed jobs

GetJobId ( JobKey jobKey ) : System.Guid

Get JobId mapped to specified job key

GetJobKey ( System.Guid id ) : JobKey

Get JobKey mapped to specified id

GetTriggerId ( TriggerKey triggerKey ) : System.Guid

Get TriggerId mapped to specified trigger key

GetTriggerKey ( System.Guid id ) : TriggerKey

Get TriggerKey mapped to specified id

InsertAuditLog ( AuditLog log ) : void

Insert AuditLog. Each entry is read-only.

PostgreStore ( string connectionString ) : System
RemoveCalendarIdMap ( string name ) : void

Delete Calendar id mapping

RemoveJobKeyIdMap ( string jobName, string jobGroup ) : void

Delete JobKey id mapping

RemoveTriggerKeyIdMap ( string triggerName, string triggerGroup ) : void

Delete TriggerKey id mapping

UpsertCalendarIdMap ( string name ) : System.Guid

Insert calendar name and return a new id. If calendar name already exists, do nothing and return existing id.

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 laready exists.

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

Insert trigger key and return a new trigger id. If trigger key already exists, do nothing and return existing trigger id.

Private Methods

Méthode Description
GetAuditLogs ( string sql ) : IEnumerable

Method Details

GetCalendarId() public méthode

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

GetCalendarName() public méthode

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

GetErroredJobs() public méthode

Get count of most recently failed jobs
public GetErroredJobs ( int count ) : IEnumerable
count int
Résultat IEnumerable

GetExecutedJobs() public méthode

Get count of most recently executed jobs
public GetExecutedJobs ( int count ) : IEnumerable
count int
Résultat IEnumerable

GetJobId() public méthode

Get JobId mapped to specified job key
public GetJobId ( JobKey jobKey ) : System.Guid
jobKey JobKey
Résultat System.Guid

GetJobKey() public méthode

Get JobKey mapped to specified id
public GetJobKey ( System.Guid id ) : JobKey
id System.Guid
Résultat JobKey

GetTriggerId() public méthode

Get TriggerId mapped to specified trigger key
public GetTriggerId ( TriggerKey triggerKey ) : System.Guid
triggerKey TriggerKey
Résultat System.Guid

GetTriggerKey() public méthode

Get TriggerKey mapped to specified id
public GetTriggerKey ( System.Guid id ) : TriggerKey
id System.Guid
Résultat TriggerKey

InsertAuditLog() public méthode

Insert AuditLog. Each entry is read-only.
public InsertAuditLog ( AuditLog log ) : void
log R.Scheduler.Interfaces.AuditLog
Résultat void

PostgreStore() public méthode

public PostgreStore ( string connectionString ) : System
connectionString string
Résultat System

RemoveCalendarIdMap() public méthode

Delete Calendar id mapping
public RemoveCalendarIdMap ( string name ) : void
name string
Résultat void

RemoveJobKeyIdMap() public méthode

Delete JobKey id mapping
public RemoveJobKeyIdMap ( string jobName, string jobGroup ) : void
jobName string
jobGroup string
Résultat void

RemoveTriggerKeyIdMap() public méthode

Delete TriggerKey id mapping
public RemoveTriggerKeyIdMap ( string triggerName, string triggerGroup ) : void
triggerName string
triggerGroup string
Résultat void

UpsertCalendarIdMap() public méthode

Insert calendar name and return a new id. If calendar name already exists, do nothing and return existing id.
public UpsertCalendarIdMap ( string name ) : System.Guid
name string
Résultat System.Guid

UpsertJobKeyIdMap() public méthode

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

UpsertTriggerKeyIdMap() public méthode

Insert trigger key and return a new trigger id. If trigger key already exists, do nothing and return existing trigger id.
public UpsertTriggerKeyIdMap ( string triggerName, string triggerGroup ) : System.Guid
triggerName string
triggerGroup string
Résultat System.Guid