Méthode | Description | |
---|---|---|
BeginTransaction ( ) : IDbTransaction |
Begins a transaction.
|
|
BeginTransaction ( IsolationLevel level ) : IDbTransaction |
Begins a transaction.
|
|
ClearWorkingSignalPair ( long workerId, long workingId, IDbTransaction transaction ) : void |
Clears signals for the given worker and working job if applicable.
|
|
CreateQueuedAndHistoryForSchedule ( long scheduleId, System.DateTime scheduleDate, IEnumerable |
Creates the queue and history records for the given schedule.
|
|
DeleteAll ( string applicationName, IDbTransaction transaction ) : void |
Deletes all data in the repository.
|
|
DeleteHistory ( string applicationName, System.DateTime olderThan, IDbTransaction transaction ) : void |
Deletes history older than the given date.
|
|
DeleteQueued ( long id, IDbTransaction transaction ) : void |
Deletes the queued record with the given ID.
|
|
DeleteSchedule ( long id, IDbTransaction transaction ) : void |
Deletes the schedule record with the given ID.
|
|
DeleteScheduledJob ( long id, IDbTransaction transaction ) : void |
Deletes the scheduled job record with the given ID.
|
|
DeleteWorker ( long id, IDbTransaction transaction ) : void |
Deletes the worker record with the given ID.
|
|
DeleteWorking ( long id, IDbTransaction transaction ) : void |
Deletes the working record with the given ID.
|
|
Dispose ( ) : void |
Disposes of resources used by this instance.
|
|
GetCounts ( string applicationName, IDbTransaction transaction ) : |
Gets a set of counts for the given application.
|
|
GetHistoryDetails ( long id, IDbTransaction transaction ) : |
Gets a history details record.
|
|
GetHistoryList ( string applicationName, string search, int limit, int offset, IDbTransaction transaction ) : RecordList |
Gets a list of history records.
|
|
GetQueuedDetails ( long id, IDbTransaction transaction ) : |
Gets a queued details record.
|
|
GetQueuedList ( string applicationName, string search, int limit, int offset, IDbTransaction transaction ) : RecordList |
Gets a list of queue records.
|
|
GetSchedule ( long id, IDbTransaction transaction ) : |
Gets the schedule with the given ID, NOT including its related scheduled jobs.
|
|
GetScheduleDateExistsForSchedule ( long scheduleId, System.DateTime scheduleDate, IDbTransaction transaction ) : bool |
Gets a value indicating whether data exists for the given schedule ID and calculated schedule date. If it does, this indicates that jobs have already been enqueued for the schedule and should not be enqueued again until the next calculated schedule date.
|
|
GetScheduleEnqueueingLock ( long scheduleId, System.DateTime forceIfOlderThan, IDbTransaction transaction ) : bool |
Attempts to obtain the enqueueing lock for the given schedule ID.
|
|
GetScheduleList ( string applicationName, string search, int limit, int offset, IDbTransaction transaction ) : RecordList |
Gets a list of schedule records.
|
|
GetScheduledJobList ( string applicationName, long id, string search, int limit, int offset, IDbTransaction transaction ) : ScheduledJobRecordList |
Gets a schedule and its related scheduled jobs, filtered by the given list parameters.
|
|
GetSchedules ( string applicationName, IDbTransaction transaction ) : IEnumerable |
Gets a collection of schedules and their related scheduled jobs for the given application name.
|
|
GetStatistics ( string applicationName, System.DateTime recentBeginDate, System.DateTime distantBeginDate, System.DateTime endDate, IDbTransaction transaction ) : |
Gets a set of system statistics for the given application name and date ranges.
|
|
GetWorker ( long id, IDbTransaction transaction ) : |
Gets the worker record with the given ID.
|
|
GetWorkerList ( string applicationName, string search, int limit, int offset, IDbTransaction transaction ) : RecordList |
Gets a list of worker records.
|
|
GetWorkers ( string applicationName, string machineAddress, string machineName, IDbTransaction transaction ) : IEnumerable |
Gets the worker collection for the given machine.
|
|
GetWorking ( long id, IDbTransaction transaction ) : |
Gets the working record with the given ID.
|
|
GetWorkingDetails ( long id, IDbTransaction transaction ) : |
Gets a working details record.
|
|
GetWorkingForWorker ( long workerId, long excludingId, IDbTransaction transaction ) : IEnumerable |
Gets a collection of working records that belong to the given worker ID.
|
|
GetWorkingList ( string applicationName, string search, int limit, int offset, IDbTransaction transaction ) : RecordList |
Gets a list of working records.
|
|
GetWorkingSignals ( long workerId, long workingId, IDbTransaction transaction ) : |
Gets the current signals set for a worker and a working job, if applicable.
|
|
ReleaseScheduleEnqueueingLock ( long scheduleId, IDbTransaction transaction ) : void |
Releases the enqueueing lock for the schedule with the given ID.
|
|
SignalWorkers ( string applicationName, WorkerSignal signal, IDbTransaction transaction ) : void |
Signals all workers for the given application name.
|
|
SplitSqlCommands ( string sql ) : IList |
Splits a string of SQL commands on "GO" to enable issuing them individually using ADO.
|
|
SqlServerRepository ( string connectionString ) : System |
Initializes a new instance of the SqlServerRepository class.
|
|
UpdateSchedule ( |
Updates the given schedule.
|
|
UpdateScheduledJob ( |
Updates the given scheduled job.
|
|
UpdateScheduledJobOrder ( |
Updates the scheduled job's order number.
|
|
UpdateWorker ( |
Updates the given worker.
|
|
UpdateWorkerStatus ( long id, WorkerStatus status, IDbTransaction transaction ) : void |
Updates the status of the worker with the given ID.
|
|
UpdateWorking ( |
Updates the given working record.
|
Méthode | Description | |
---|---|---|
Dispose ( bool disposing ) : void |
Disposes of resources used by this instance.
|
|
EnsureSchema ( |
Ensures the BlueCollar schema is installed on the given connection, installing it if necessary.
|
Méthode | Description | |
---|---|---|
CreateCounts ( Dapper.SqlMapper multi ) : |
Creates a new CountsRecord by reading from the given multi-mapped reader.
|
|
CreateHistory ( |
||
CreateHistoryStatusCounts ( Dapper.SqlMapper multi ) : |
Creates a new HistoryStatusCountsRecord by reading from the given multi-mapped reader.
|
|
CreateQueued ( QueueRecord record, IDbTransaction transaction ) : QueueRecord | ||
CreateSchedule ( |
||
CreateScheduledJob ( |
||
CreateWorker ( |
||
CreateWorking ( |
||
GetQueued ( string applicationName, QueueNameFilters queueFilters, System.DateTime queuedBefore, IDbTransaction transaction ) : QueueRecord |
public BeginTransaction ( ) : IDbTransaction | ||
Résultat | IDbTransaction |
public BeginTransaction ( IsolationLevel level ) : IDbTransaction | ||
level | IsolationLevel | The isolation level to use for the transaction. |
Résultat | IDbTransaction |
public ClearWorkingSignalPair ( long workerId, long workingId, IDbTransaction transaction ) : void | ||
workerId | long | The ID of the worker to clear the signal of. |
workingId | long | The ID of the working job to clear the signal of, if applicable. |
transaction | IDbTransaction | The transaction to use, if applicable. |
Résultat | void |
public CreateQueuedAndHistoryForSchedule ( long scheduleId, System.DateTime scheduleDate, IEnumerable |
||
scheduleId | long | The ID of the schedule records are being created for. |
scheduleDate | System.DateTime | The schedule date records are being created for. |
queued | IEnumerable |
The queued records to create. |
history | IEnumerable |
The history records to create. |
transaction | IDbTransaction | The transaction to use, if applicable. |
Résultat | int |
public DeleteAll ( string applicationName, IDbTransaction transaction ) : void | ||
applicationName | string | The name of the application to delete data for. |
transaction | IDbTransaction | The transaction to use, if applicable. |
Résultat | void |
public DeleteHistory ( string applicationName, System.DateTime olderThan, IDbTransaction transaction ) : void | ||
applicationName | string | The name of the application to delete data for. |
olderThan | System.DateTime | The date to delete history older than. |
transaction | IDbTransaction | The transaction to use, if applicable. |
Résultat | void |
public DeleteQueued ( long id, IDbTransaction transaction ) : void | ||
id | long | The ID of the queued record to delete. |
transaction | IDbTransaction | The transaction to use, if applicable. |
Résultat | void |
public DeleteSchedule ( long id, IDbTransaction transaction ) : void | ||
id | long | The ID of the schedule to delete. |
transaction | IDbTransaction | The transaction to use, if applicable. |
Résultat | void |
public DeleteScheduledJob ( long id, IDbTransaction transaction ) : void | ||
id | long | The ID of the scheduled job to delete. |
transaction | IDbTransaction | The transaction to use, if applicable. |
Résultat | void |
public DeleteWorker ( long id, IDbTransaction transaction ) : void | ||
id | long | The ID of the worker to delete. |
transaction | IDbTransaction | The transaction to use, if applicable. |
Résultat | void |
public DeleteWorking ( long id, IDbTransaction transaction ) : void | ||
id | long | The ID of the working record to delete. |
transaction | IDbTransaction | The transaction to use, if applicable. |
Résultat | void |
protected Dispose ( bool disposing ) : void | ||
disposing | bool | A value indicating whether to dispose of managed resources. |
Résultat | void |
protected static EnsureSchema ( |
||
connection | The connection to ensure the BlueCollar schema for. | |
Résultat | void |
public GetCounts ( string applicationName, IDbTransaction transaction ) : |
||
applicationName | string | The name of the application to get counts for. |
transaction | IDbTransaction | The transaction to use, if applicable. |
Résultat |
public GetHistoryDetails ( long id, IDbTransaction transaction ) : |
||
id | long | The ID of the record to get. |
transaction | IDbTransaction | The transaction to use, if applicable. |
Résultat |
public GetHistoryList ( string applicationName, string search, int limit, int offset, IDbTransaction transaction ) : RecordList |
||
applicationName | string | The name of the application to get the history list for. |
search | string | The search query to filter the collection with. |
limit | int | The paging limit to use. |
offset | int | The paging offset to use. |
transaction | IDbTransaction | The transaction to use, if applicable. |
Résultat | RecordList |
public GetQueuedDetails ( long id, IDbTransaction transaction ) : |
||
id | long | The ID of the record to get. |
transaction | IDbTransaction | The transaction to use, if applicable. |
Résultat |
public GetQueuedList ( string applicationName, string search, int limit, int offset, IDbTransaction transaction ) : RecordList |
||
applicationName | string | The name of the application to get the queue list for. |
search | string | The search query to filter the collection with. |
limit | int | The paging limit to use. |
offset | int | The paging offset to use. |
transaction | IDbTransaction | The transaction to use, if applicable. |
Résultat | RecordList |
public GetSchedule ( long id, IDbTransaction transaction ) : |
||
id | long | The ID of the schedule to get. |
transaction | IDbTransaction | The transaction to use, if applicable. |
Résultat |
public GetScheduleDateExistsForSchedule ( long scheduleId, System.DateTime scheduleDate, IDbTransaction transaction ) : bool | ||
scheduleId | long | The ID of the schedule to check data for. |
scheduleDate | System.DateTime | The calculated schedule date to check data for. |
transaction | IDbTransaction | The transaction to use, if applicable. |
Résultat | bool |
public GetScheduleEnqueueingLock ( long scheduleId, System.DateTime forceIfOlderThan, IDbTransaction transaction ) : bool | ||
scheduleId | long | The ID of the schedule to obtain the schedule enqueueing lock for. |
forceIfOlderThan | System.DateTime | A date to compare the enqueue lock's last updated date with. If /// the lock is older than the given date, then it will be forced and acquired by the caller. |
transaction | IDbTransaction | The transaction to use, if applicable. |
Résultat | bool |
public GetScheduleList ( string applicationName, string search, int limit, int offset, IDbTransaction transaction ) : RecordList |
||
applicationName | string | The name of the application to get the schedule list for. |
search | string | The search query to filter the collection with. |
limit | int | The paging limit to use. |
offset | int | The paging offset to use. |
transaction | IDbTransaction | The transaction to use, if applicable. |
Résultat | RecordList |
public GetScheduledJobList ( string applicationName, long id, string search, int limit, int offset, IDbTransaction transaction ) : ScheduledJobRecordList | ||
applicationName | string | The name of the application to get the scheduled job list for. |
id | long | The ID of the schedule to get. |
search | string | The search query to filter the related job collection with. |
limit | int | The paging limit to use. |
offset | int | The paging offset to use. |
transaction | IDbTransaction | The transaction to use, if applicable. |
Résultat | ScheduledJobRecordList |
public GetSchedules ( string applicationName, IDbTransaction transaction ) : IEnumerable |
||
applicationName | string | The name of the application to get schedules for. |
transaction | IDbTransaction | The transaction to use, if applicable. |
Résultat | IEnumerable |
public GetStatistics ( string applicationName, System.DateTime recentBeginDate, System.DateTime distantBeginDate, System.DateTime endDate, IDbTransaction transaction ) : |
||
applicationName | string | The name of the application to get system statistics for. |
recentBeginDate | System.DateTime | The begin date of the recent period to get statistics for. |
distantBeginDate | System.DateTime | The begin date of the distant period to get statistics for. |
endDate | System.DateTime | The end date of the distant period to get statistics for. |
transaction | IDbTransaction | The transaction to use, if applicable. |
Résultat |
public GetWorker ( long id, IDbTransaction transaction ) : |
||
id | long | The ID of the worker record to get. |
transaction | IDbTransaction | The transaction to use. |
Résultat |
public GetWorkerList ( string applicationName, string search, int limit, int offset, IDbTransaction transaction ) : RecordList |
||
applicationName | string | The application name to get records for. |
search | string | The search query to filter the collection with. |
limit | int | The paging limit to use. |
offset | int | The paging offset to use. |
transaction | IDbTransaction | The transaction to use, if applicable. |
Résultat | RecordList |
public GetWorkers ( string applicationName, string machineAddress, string machineName, IDbTransaction transaction ) : IEnumerable |
||
applicationName | string | The application name to get workers for. |
machineAddress | string | The address of the machine to get workers for. |
machineName | string | The name of the machine to get workers for. |
transaction | IDbTransaction | The transaction to use, if applicable. |
Résultat | IEnumerable |
public GetWorking ( long id, IDbTransaction transaction ) : |
||
id | long | The ID of the record to get. |
transaction | IDbTransaction | The transaction to use, if applicable. |
Résultat |
public GetWorkingDetails ( long id, IDbTransaction transaction ) : |
||
id | long | The ID of the record to get. |
transaction | IDbTransaction | The transaction to use, if applicable. |
Résultat |
public GetWorkingForWorker ( long workerId, long excludingId, IDbTransaction transaction ) : IEnumerable |
||
workerId | long | The ID of the worker to get working records for. |
excludingId | long | The ID of the working record to exclude, if applicable. |
transaction | IDbTransaction | The transaction to use, if applicable. |
Résultat | IEnumerable |
public GetWorkingList ( string applicationName, string search, int limit, int offset, IDbTransaction transaction ) : RecordList |
||
applicationName | string | The application name to get records for. |
search | string | The search query to filter the collection with. |
limit | int | The paging limit to use. |
offset | int | The paging offset to use. |
transaction | IDbTransaction | The transaction to use, if applicable. |
Résultat | RecordList |
public GetWorkingSignals ( long workerId, long workingId, IDbTransaction transaction ) : |
||
workerId | long | The ID of the worker to get a signal for. |
workingId | long | The ID of the working job to get a signal for, if applicable. |
transaction | IDbTransaction | The transaction to use, if applicable. |
Résultat |
public ReleaseScheduleEnqueueingLock ( long scheduleId, IDbTransaction transaction ) : void | ||
scheduleId | long | The ID of the schedule to release the enqueueing lock for. |
transaction | IDbTransaction | The transaction to use, if applicable. |
Résultat | void |
public SignalWorkers ( string applicationName, WorkerSignal signal, IDbTransaction transaction ) : void | ||
applicationName | string | The application name to signal workers for. |
signal | WorkerSignal | The signal to set. |
transaction | IDbTransaction | The transaction to use, if applicable. |
Résultat | void |
public static SplitSqlCommands ( string sql ) : IList |
||
sql | string | The SQL command set to split. |
Résultat | IList |
public SqlServerRepository ( string connectionString ) : System | ||
connectionString | string | The connection string to use when connecting to the database. |
Résultat | System |
public UpdateSchedule ( |
||
record | The schedule record to update. | |
transaction | IDbTransaction | The transaction to use, if applicable. |
Résultat |
public UpdateScheduledJob ( |
||
record | The scheduled job record to update. | |
transaction | IDbTransaction | The transaction to use, if applicable. |
Résultat |
public UpdateScheduledJobOrder ( |
||
record | The scheduled job order record identifying the scheduled job to update. | |
transaction | IDbTransaction | The transaction to use, if applicable. |
Résultat | void |
public UpdateWorker ( |
||
record | The worker record to update. | |
transaction | IDbTransaction | The transaction to use, if applicable. |
Résultat |
public UpdateWorkerStatus ( long id, WorkerStatus status, IDbTransaction transaction ) : void | ||
id | long | The ID of the worker to update status for. |
status | WorkerStatus | The status to update. |
transaction | IDbTransaction | The transaction to use, if applicable. |
Résultat | void |
public UpdateWorking ( |
||
record | The working record to update. | |
transaction | IDbTransaction | The transaction to use, if applicable. |
Résultat |