Class FloodSink
Implements a destination group that stops message flood
Inheritance
System.Object
FloodSink
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.Log.Sinks
Assembly: Azos.dll
Syntax
public class FloodSink : CompositeSink, IDisposable, IDaemon, IDaemonView, ILocalizedTimeProvider, IInstrumentable, IExternallyParameterized, IConfigurable, INamed, IOrdered, ISinkOwnerRegistration, ISinkOwner, IApplicationComponent
Constructors
FloodSink(ISinkOwner)
Creates a filter that prevents message flood
Declaration
public FloodSink(ISinkOwner owner)
Parameters
Type | Name | Description |
---|---|---|
ISinkOwner | owner |
FloodSink(ISinkOwner, String, Int32)
Declaration
public FloodSink(ISinkOwner owner, string name, int order)
Parameters
Type | Name | Description |
---|---|---|
ISinkOwner | owner | |
System.String | name | |
System.Int32 | order |
Fields
DEFAULT_INTERVAL_SEC
Declaration
public const int DEFAULT_INTERVAL_SEC = 10
Field Value
Type | Description |
---|---|
System.Int32 |
DEFAULT_MAX_COUNT
Declaration
public const int DEFAULT_MAX_COUNT = 25
Field Value
Type | Description |
---|---|
System.Int32 |
DEFAULT_MAX_TEXT_LENGTH
Declaration
public const int DEFAULT_MAX_TEXT_LENGTH = 0
Field Value
Type | Description |
---|---|
System.Int32 |
MAX_MAX_COUNT
Declaration
public const int MAX_MAX_COUNT = 1000
Field Value
Type | Description |
---|---|
System.Int32 |
Properties
IntervalSec
Declaration
[Config]
public int IntervalSec { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |
MaxCount
Sets how many messages may be batched per interval. If more messages arrive then their data is not going to be logged
Declaration
[Config]
public int MaxCount { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |
MaxTextLength
Imposes a limit in character length of combined message test
Declaration
[Config]
public int MaxTextLength { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |
MessageFrom
Determines the message from for message emitted when flood is detected
Declaration
[Config]
public string MessageFrom { get; set; }
Property Value
Type | Description |
---|---|
System.String |
MessageSource
Determines the message topic for message emitted when flood is detected
Declaration
[Config]
public int MessageSource { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |
MessageTopic
Determines the message topic for message emitted when flood is detected
Declaration
[Config]
public string MessageTopic { get; set; }
Property Value
Type | Description |
---|---|
System.String |
MessageType
Determines the message type for message emitted when flood is detected
Declaration
[Config]
public MessageType MessageType { get; set; }
Property Value
Type | Description |
---|---|
MessageType |
Methods
Destructor()
Declaration
protected override void Destructor()
Overrides
DoPulse()
Declaration
protected override void DoPulse()
Overrides
DoSend(Message)
Declaration
protected override void DoSend(Message entry)
Parameters
Type | Name | Description |
---|---|---|
Message | entry |
Overrides
DoStart()
Declaration
protected override void DoStart()
Overrides
DoWaitForCompleteStop()
Declaration
protected override void DoWaitForCompleteStop()
Overrides
Implements
System.IDisposable