AP&C API Reference
|
An abstraction to provide features for tracking and searching lock records. More...
Public Member Functions | |
LockRecords (double persistenceTimerInterval, int volatileLockTimeoutInterval) | |
Initializes a new instance of the LockRecords class. More... | |
void | Add (AcquisitionResponse response) |
Adds a lock record for the specified response. More... | |
bool | RemoveFeatureLock (string featureResponseId) |
Removes the lock record(s) with the specified feature response id. More... | |
bool | RenewLocks (string acquisitionId, int keyLockTimeout) |
Renews the locks associated with the acquisition id. More... | |
bool | RenewLock (string featureResponseId, int keyLockTimeout) |
Renews the lock. More... | |
bool | Remove (string acquisitionId) |
Removes the lock record(s) with the specified acquisition id. More... | |
AuditResult | Audit (AcquisitionRequest request) |
Checks the records for the given feature to be sure it holds the proper number of leases for a non-volatile lock. More... | |
AuditResult | Audit (string contextId, string[] nodeIds, LicensedFeatures feature, int numLeasesHeld) |
Checks the record for the given feature to be sure it holds the proper number of leases for a non-volatile lock. More... | |
bool | Remove (string contextId, string[] nodeIds, LicensedFeatures feature, int count, out string featureResponseId) |
Removes the volatile lock record with the specified context id, node id, feature and count. More... | |
bool | Remove (string contextId, string[] nodeIds, LicensedFeatures feature, int numToRelease, int numLeasesHeld, out string featureResponseId) |
Removes the non-volatile lock record with the specified context id, node id, feature and count. More... | |
int | GetLockCount (string contextId, string[] nodeIds, LicensedFeatures feature) |
Finds the existing lock count for feature in the given contextId and nodeId scope. More... | |
LockRecord | Get (string contextId, string[] nodeIds, LicensedFeatures feature) |
LockRecord[] | ToArray () |
System.Xml.Schema.XmlSchema | GetSchema () |
void | ReadXml (System.Xml.XmlReader reader) |
void | WriteXml (System.Xml.XmlWriter writer) |
void | SetTimingParameters (double persistenceTimerInterval, int volatileLockTimeoutInterval) |
void | CheckTimeouts () |
IEnumerator< LockRecord > | GetEnumerator () |
Protected Member Functions | |
virtual void | OnLocksPersistenceRequired () |
Properties | |
int | Count [get] |
Gets the count. More... | |
bool | IsDirty [get] |
Gets a value indicating whether this instance is dirty. More... | |
Events | |
LocksPersistenceRequiredHandler | LocksPersistenceRequired |
An abstraction to provide features for tracking and searching lock records.
|
inline |
Initializes a new instance of the LockRecords class.
persistenceTimerInterval | The persistence timer interval in seconds. |
volatileLockTimeoutInterval | The volatile lock timeout interval in minutes. |
|
inline |
Adds a lock record for the specified response.
response | The response. |
featureResponse | The feature response. |
|
inline |
Checks the records for the given feature to be sure it holds the proper number of leases for a non-volatile lock.
acquisitionId | The context id. |
numLeasesHeld | The number of leases the client holds. |
|
inline |
Checks the record for the given feature to be sure it holds the proper number of leases for a non-volatile lock.
contextId | The context id. |
nodeIds | The node ids. |
feature | The feature. |
numLeasesHeld | The number of leases the client holds. |
|
inline |
Finds the existing lock count for feature in the given contextId and nodeId scope.
contextId | The context identifier. |
nodeIds | The node identifiers. |
feature | The feature. |
|
inline |
Removes the lock record(s) with the specified acquisition id.
acquisitionId | The acquisition id. |
true
if a removal takes place, false
if one does not.
|
inline |
Removes the volatile lock record with the specified context id, node id, feature and count.
contextId | The context id. |
nodeIds | The node ids. |
feature | The feature. |
count | The count. |
acquisitionId | The acquisition id of the original request. |
true
if a removal takes place, false
if one does not.
|
inline |
Removes the non-volatile lock record with the specified context id, node id, feature and count.
contextId | The context id. |
nodeIds | The node ids. |
feature | The feature. |
numToRelease | The count. |
numLeasesHeld | The number of leases held by the client. |
featureResponseId | The id of the feature response to the original request. |
true
if a removal takes place, false
if one does not.
|
inline |
Removes the lock record(s) with the specified feature response id.
acquisitionId | The feature response id. |
true
if a removal takes place, false
if one does not.
|
inline |
Renews the lock.
featureResponseId | The feature response id. |
keyLockTimeout | The key lock timeout. |
|
inline |
Renews the locks associated with the acquisition id.
acquisitionId | The acquisition id. |
keyLockTimeout | The key lock timeout. |
|
get |
Gets the count.
The count.
|
get |
Gets a value indicating whether this instance is dirty.
true
if this instance is dirty; otherwise, false
.