Class GdidAuthorityServiceBase
Base for GdidAuthority and GdidPersistenceLocation services
Inheritance
System.Object
GdidAuthorityServiceBase
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)
Assembly: Azos.Sky.dll
Syntax
public abstract class GdidAuthorityServiceBase : Daemon, IDisposable, IDaemon, IDaemonView, IApplicationComponent, INamed, IConfigurable, ILocalizedTimeProvider
Constructors
GdidAuthorityServiceBase(IApplication)
Declaration
protected GdidAuthorityServiceBase(IApplication app)
Parameters
Fields
CONFIG_AUTHORITY_IDS_ATTR
Declaration
public const string CONFIG_AUTHORITY_IDS_ATTR = "authority-ids"
Field Value
Type |
Description |
System.String |
|
CONFIG_GDID_AUTHORITY_SECTION
Declaration
public const string CONFIG_GDID_AUTHORITY_SECTION = "gdid-authority"
Field Value
Type |
Description |
System.String |
|
CONFIG_LOCATION_SECTION
Declaration
public const string CONFIG_LOCATION_SECTION = "location"
Field Value
Type |
Description |
System.String |
|
CONFIG_PERSISTENCE_SECTION
Declaration
public const string CONFIG_PERSISTENCE_SECTION = "persistence"
Field Value
Type |
Description |
System.String |
|
MAX_BLOCK_SIZE
Declaration
public const int MAX_BLOCK_SIZE = 1024
Field Value
Type |
Description |
System.Int32 |
|
MAX_DISK_PATH_LENGTH
Declaration
public const int MAX_DISK_PATH_LENGTH = 76
Field Value
Type |
Description |
System.Int32 |
|
MAX_NAME_LENGTH
Declaration
public const int MAX_NAME_LENGTH = 80
Field Value
Type |
Description |
System.Int32 |
|
MAX_PATH_LENGTH
Declaration
public const int MAX_PATH_LENGTH = 240
Field Value
Type |
Description |
System.Int32 |
|
Properties
ComponentLogTopic
Declaration
public override string ComponentLogTopic { get; }
Property Value
Type |
Description |
System.String |
|
Overrides
PersistenceLocations
Specifies where and how the service persists data on disk
Declaration
public IRegistry<GdidAuthorityServiceBase.PersistenceLocation> PersistenceLocations { get; }
Property Value
Methods
AuthorityPathSeg(Byte)
Declaration
public static string AuthorityPathSeg(byte authority)
Parameters
Type |
Name |
Description |
System.Byte |
authority |
|
Returns
Type |
Description |
System.String |
|
CheckNameValidity(String)
Checks the name for validity. Throws if name does not contain valid chars or over the max length
Declaration
public static void CheckNameValidity(string name)
Parameters
Type |
Name |
Description |
System.String |
name |
|
Declaration
protected override void DoConfigure(IConfigSectionNode node)
Parameters
Overrides
DoStart()
Declaration
protected override void DoStart()
Overrides
Log(MessageType, String, String, Exception, Nullable<Guid>)
Declaration
protected void Log(MessageType type, string from, string msg, Exception error = null, Guid? batch = default(Guid? ))
Parameters
Type |
Name |
Description |
MessageType |
type |
|
System.String |
from |
|
System.String |
msg |
|
System.Exception |
error |
|
System.Nullable<System.Guid> |
batch |
|
ReadFromLocations(Byte, String, String)
Declaration
protected GdidAuthorityServiceBase._id ReadFromLocations(byte authority, string scope, string seq)
Parameters
Type |
Name |
Description |
System.Byte |
authority |
|
System.String |
scope |
|
System.String |
seq |
|
Returns
WriteToLocations(Byte, String, String, GdidAuthorityServiceBase._id)
Declaration
protected void WriteToLocations(byte authority, string scope, string seq, GdidAuthorityServiceBase._id id)
Parameters
Implements
System.IDisposable
Extension Methods