Class LogArchiveStore
Represents a base for entities that archive log data
Inheritance
System.Object
LogArchiveStore
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.Log.Server
Assembly: Azos.Sky.dll
Syntax
public abstract class LogArchiveStore : ApplicationComponent, IDisposable, IApplicationComponent
Constructors
LogArchiveStore(LogReceiverService, LogArchiveDimensionsMapper, IConfigSectionNode)
Declaration
protected LogArchiveStore(LogReceiverService director, LogArchiveDimensionsMapper mapper, IConfigSectionNode node)
Parameters
Type | Name | Description |
---|---|---|
LogReceiverService | director | |
LogArchiveDimensionsMapper | mapper | |
IConfigSectionNode | node |
Properties
ArchiveService
References service that this store is under
Declaration
public LogReceiverService ArchiveService { get; }
Property Value
Type | Description |
---|---|
LogReceiverService |
ComponentLogTopic
Declaration
public override string ComponentLogTopic { get; }
Property Value
Type | Description |
---|---|
System.String |
Overrides
Mapper
Maps archive dimensions to/from model of the particular business system
Declaration
public LogArchiveDimensionsMapper Mapper { get; }
Property Value
Type | Description |
---|---|
LogArchiveDimensionsMapper |
Methods
BeginTransaction()
Starts transaction represented by return object
Declaration
public abstract object BeginTransaction()
Returns
Type | Description |
---|---|
System.Object |
CommitTransaction(Object)
Commits the transaction started with BeginTransaction
Declaration
public abstract void CommitTransaction(object transaction)
Parameters
Type | Name | Description |
---|---|---|
System.Object | transaction |
Destructor()
Declaration
protected override void Destructor()
Overrides
GetByID(Guid, String)
Returns log message by ID
Declaration
public virtual Message GetByID(Guid id, string channel = null)
Parameters
Type | Name | Description |
---|---|---|
System.Guid | id | |
System.String | channel |
Returns
Type | Description |
---|---|
Message |
List(String, DateTime, DateTime, Nullable<MessageType>, String, String, String, Nullable<Guid>, Int32)
Returns enumerable of messages according to dimension filter in laconic format
Declaration
public abstract IEnumerable<Message> List(string archiveDimensionsFilter, DateTime startDate, DateTime endDate, MessageType? type = default(MessageType? ), string host = null, string channel = null, string topic = null, Guid? relatedTo = default(Guid? ), int skipCount = 0)
Parameters
Type | Name | Description |
---|---|---|
System.String | archiveDimensionsFilter | |
System.DateTime | startDate | |
System.DateTime | endDate | |
System.Nullable<MessageType> | type | |
System.String | host | |
System.String | channel | |
System.String | topic | |
System.Nullable<System.Guid> | relatedTo | |
System.Int32 | skipCount |
Returns
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<Message> |
Put(Message, Object)
Writes message to the store within transaction context
Declaration
public abstract void Put(Message message, object transaction)
Parameters
Type | Name | Description |
---|---|---|
Message | message | |
System.Object | transaction |
RollbackTransaction(Object)
Rolls back the transaction started with BeginTransaction
Declaration
public abstract void RollbackTransaction(object transaction)
Parameters
Type | Name | Description |
---|---|---|
System.Object | transaction |
TryGetByID(Guid, out Message, String)
Tries to fetch message by ID. Returns true if found
Declaration
public abstract bool TryGetByID(Guid id, out Message message, string channel = null)
Parameters
Type | Name | Description |
---|---|---|
System.Guid | id | |
Message | message | |
System.String | channel |
Returns
Type | Description |
---|---|
System.Boolean |
Implements
System.IDisposable