Class LockServerService
Implements lock server. Usually this service is activated by Zone gov process
Inheritance
System.Object
LockServerService
Implements
System.IDisposable
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
Namespace: Azos.Sky.Locking.Server
Assembly: Azos.Sky.dll
Syntax
public sealed class LockServerService : DaemonWithInstrumentation<IApplicationComponent>, IDisposable, IDaemon, IDaemonView, IApplicationComponent, INamed, IConfigurable, ILocalizedTimeProvider, IInstrumentable, IExternallyParameterized, ILocker, ISkyService
Constructors
LockServerService(IApplicationComponent)
Declaration
public LockServerService(IApplicationComponent director)
Parameters
Type | Name | Description |
---|---|---|
IApplicationComponent | director |
Fields
CONFIG_LOCK_SERVER_SECTION
Declaration
public const string CONFIG_LOCK_SERVER_SECTION = "lock-server"
Field Value
Type | Description |
---|---|
System.String |
DEFAULT_SESSION_MAX_AGE_SEC
Declaration
public const int DEFAULT_SESSION_MAX_AGE_SEC = 60
Field Value
Type | Description |
---|---|
System.Int32 |
MIN_SESSION_MAX_AGE_SEC
Declaration
public const int MIN_SESSION_MAX_AGE_SEC = 1
Field Value
Type | Description |
---|---|
System.Int32 |
THREAD_NAME
Declaration
public const string THREAD_NAME = "LockServerService"
Field Value
Type | Description |
---|---|
System.String |
Properties
ComponentLogTopic
Declaration
public override string ComponentLogTopic { get; }
Property Value
Type | Description |
---|---|
System.String |
Overrides
CurrentServerCallsNorm
Returns the current norm for the number of calls - the trust level goes down when server experiences a sharp call drop
Declaration
public int CurrentServerCallsNorm { get; }
Property Value
Type | Description |
---|---|
System.Int32 |
CurrentTrustLevel
Returns the current trust level 0.0 .. 1.0 of this server
Declaration
public double CurrentTrustLevel { get; }
Property Value
Type | Description |
---|---|
System.Double |
DefaultSessionMaxAgeSec
Default session maximum age in seconds
Declaration
[Config(Default = 60)]
public int DefaultSessionMaxAgeSec { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |
DetailedTableInstrumentation
When true, instruments every table
Declaration
[Config(Default = false)]
[ExternalParameter(new string[]{"locking", "instrumentation"})]
public bool DetailedTableInstrumentation { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
InstrumentationEnabled
Implements IInstrumentable
Declaration
[Config(Default = false)]
[ExternalParameter(new string[]{"locking", "instrumentation"})]
public override bool InstrumentationEnabled { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
Overrides
Azos.Apps.DaemonWithInstrumentation<Azos.Apps.IApplicationComponent>.InstrumentationEnabled
StartTimeUTC
Returns when server started
Declaration
public DateTime StartTimeUTC { get; }
Property Value
Type | Description |
---|---|
System.DateTime |
Methods
DoConfigure(IConfigSectionNode)
Declaration
protected override void DoConfigure(IConfigSectionNode node)
Parameters
Type | Name | Description |
---|---|---|
IConfigSectionNode | node |
Overrides
DoStart()
Declaration
protected override void DoStart()
Overrides
DoWaitForCompleteStop()
Declaration
protected override void DoWaitForCompleteStop()
Overrides
EndLockSession(LockSessionID)
Declaration
public bool EndLockSession(LockSessionID sessionID)
Parameters
Type | Name | Description |
---|---|---|
LockSessionID | sessionID |
Returns
Type | Description |
---|---|
System.Boolean |
ExecuteLockTransaction(LockSessionData, LockTransaction)
Declaration
public LockTransactionResult ExecuteLockTransaction(LockSessionData session, LockTransaction transaction)
Parameters
Type | Name | Description |
---|---|---|
LockSessionData | session | |
LockTransaction | transaction |
Returns
Type | Description |
---|---|
LockTransactionResult |
Implements
System.IDisposable