Show / Hide Table of Contents

Class FloodFilter

Implements a destination group that stops message flood

Inheritance
System.Object
DisposableObject
ApplicationComponent
Destination
CompositeDestination
FloodFilter
Implements
IApplicationComponent
System.IDisposable
IConfigurable
IExternallyParameterized
Inherited Members
CompositeDestination.Destinations
CompositeDestination.RegisterDestination(Destination)
CompositeDestination.UnRegisterDestination(Destination)
CompositeDestination.DoConfigure(IConfigSectionNode)
Destination.CONFIG_NAME_ATTR
Destination.CONFIG_FAILOVER_ATTR
Destination.CONFIG_GENERATE_FAILOVER_MSG_ATTR
Destination.CONFIG_ONLY_FAILURES_ATTR
Destination.CONFIG_MIN_LEVEL_ATTR
Destination.CONFIG_MAX_LEVEL_ATTR
Destination.CONFIG_LEVELS_ATTR
Destination.CONFIG_DAYS_OF_WEEK_ATTR
Destination.CONFIG_START_DATE_ATTR
Destination.CONFIG_END_DATE_ATTR
Destination.CONFIG_START_TIME_ATTR
Destination.CONFIG_END_TIME_ATTR
Destination.CONFIG_FILTER_ATTR
Destination.CONFIG_TEST_ON_START_ATTR
Destination.CONFIG_NAME_DEFAULT
Destination.CONFIG_MAX_PROCESSING_TIME_MS_ATTR
Destination.CONFIG_MAX_PROCESSING_TIME_MS_MIN_VALUE
Destination.CONFIG_RESTART_PROCESSING_AFTER_MS_ATTR
Destination.CONFIG_RESTART_PROCESSING_AFTER_MS_DEFAULT
Destination.PROCESSING_TIME_EMA_FILTER
Destination.m_Owner
Destination.m_Name
Destination.DirectorLog
Destination.Service
Destination.Owner
Destination.Name
Destination.Filter
Destination.FilterMethod
Destination.LastError
Destination.MinLevel
Destination.MaxLevel
Destination.Levels
Destination.DaysOfWeek
Destination.StartDate
Destination.EndDate
Destination.StartTime
Destination.EndTime
Destination.OnlyFailures
Destination.GenerateFailoverMessages
Destination.Failover
Destination.TestOnStart
Destination.MaxProcessingTimeMs
Destination.Channel
Destination.AverageProcessingTimeMs
Destination.RestartProcessingAfterMs
Destination.ExternalParameters
Destination.ExternalParametersForGroups(String[])
Destination.Configure(IConfigSectionNode)
Destination.Before
Destination.After
Destination.Send(Message)
Destination.Pulse()
Destination.ParseLevels(String)
Destination.ExternalGetParameter(String, Object, String[])
Destination.ExternalSetParameter(String, Object, String[])
Destination.SetError(Exception, Message)
ApplicationComponent.AllComponents
ApplicationComponent.GetAppComponentBySID(UInt64)
ApplicationComponent.GetAppComponentByCommonName(String)
ApplicationComponent.ComponentSID
ApplicationComponent.ComponentStartTime
ApplicationComponent.ComponentCommonName
ApplicationComponent.ComponentDirector
DisposableObject.DisposeAndNull<T>(T)
DisposableObject.DisposeStarted
DisposableObject.Disposed
DisposableObject.EnsureObjectNotDisposed()
DisposableObject.Dispose()
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)
System.Object.ToString()
Namespace: NFX.Log.Destinations
Assembly: NFX.dll
Syntax
public class FloodFilter : CompositeDestination, IApplicationComponent, IDisposable, IConfigurable, IExternallyParameterized

Constructors

FloodFilter()

Creates a filter that prevents message flood

Declaration
public FloodFilter()

FloodFilter(Destination[])

Creates a filter that prevents message flood

Declaration
public FloodFilter(params Destination[] inner)
Parameters
Type Name Description
Destination[] inner

FloodFilter(String, Destination[])

Creates a filter that prevents message flood

Declaration
public FloodFilter(string name, params Destination[] inner)
Parameters
Type Name Description
System.String name
Destination[] inner

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

Close()

Declaration
public override void Close()
Overrides
CompositeDestination.Close()

Destructor()

Declaration
protected override void Destructor()
Overrides
CompositeDestination.Destructor()

DoPulse()

Declaration
protected override void DoPulse()
Overrides
Destination.DoPulse()

DoSend(Message)

Declaration
protected override void DoSend(Message entry)
Parameters
Type Name Description
Message entry
Overrides
CompositeDestination.DoSend(Message)

Open()

Declaration
public override void Open()
Overrides
CompositeDestination.Open()

Implements

IApplicationComponent
System.IDisposable
IConfigurable
IExternallyParameterized

Extension Methods

MiscUtils.NonNull<T>(T, Func<Exception>, String)
ObjectValueConversion.AsString(Object, String, ConvertErrorHandling)
ObjectValueConversion.AsNonNullOrEmptyString(Object)
ObjectValueConversion.AsLaconicConfig(Object, ConfigSectionNode, String, ConvertErrorHandling)
ObjectValueConversion.AsJSONConfig(Object, ConfigSectionNode, String, ConvertErrorHandling)
ObjectValueConversion.AsXMLConfig(Object, ConfigSectionNode, ConvertErrorHandling)
ObjectValueConversion.AsChar(Object, Char, ConvertErrorHandling)
ObjectValueConversion.AsNullableChar(Object, Nullable<Char>, ConvertErrorHandling)
ObjectValueConversion.AsByte(Object, Byte, ConvertErrorHandling)
ObjectValueConversion.AsNullableByte(Object, Nullable<Byte>, ConvertErrorHandling)
ObjectValueConversion.AsSByte(Object, SByte, ConvertErrorHandling)
ObjectValueConversion.AsNullableSByte(Object, Nullable<SByte>, ConvertErrorHandling)
ObjectValueConversion.AsShort(Object, Int16, ConvertErrorHandling)
ObjectValueConversion.AsNullableShort(Object, Nullable<Int16>, ConvertErrorHandling)
ObjectValueConversion.AsUShort(Object, UInt16, ConvertErrorHandling)
ObjectValueConversion.AsNullableUShort(Object, Nullable<UInt16>, ConvertErrorHandling)
ObjectValueConversion.AsInt(Object, Int32, ConvertErrorHandling)
ObjectValueConversion.AsNullableInt(Object, Nullable<Int32>, ConvertErrorHandling)
ObjectValueConversion.AsUInt(Object, UInt32, ConvertErrorHandling)
ObjectValueConversion.AsNullableUInt(Object, Nullable<UInt32>, ConvertErrorHandling)
ObjectValueConversion.AsLong(Object, Int64, ConvertErrorHandling)
ObjectValueConversion.AsNullableLong(Object, Nullable<Int64>, ConvertErrorHandling)
ObjectValueConversion.AsULong(Object, UInt64, ConvertErrorHandling)
ObjectValueConversion.AsNullableULong(Object, Nullable<UInt64>, ConvertErrorHandling)
ObjectValueConversion.AsDouble(Object, Double, ConvertErrorHandling)
ObjectValueConversion.AsNullableDouble(Object, Nullable<Double>, ConvertErrorHandling)
ObjectValueConversion.AsFloat(Object, Single, ConvertErrorHandling)
ObjectValueConversion.AsNullableFloat(Object, Nullable<Single>, ConvertErrorHandling)
ObjectValueConversion.AsDecimal(Object, Decimal, ConvertErrorHandling)
ObjectValueConversion.AsNullableDecimal(Object, Nullable<Decimal>, ConvertErrorHandling)
ObjectValueConversion.AsBool(Object, Boolean, ConvertErrorHandling)
ObjectValueConversion.AsNullableBool(Object, Nullable<Boolean>, ConvertErrorHandling)
ObjectValueConversion.AsGUID(Object, Guid, ConvertErrorHandling)
ObjectValueConversion.AsNullableGUID(Object, Nullable<Guid>, ConvertErrorHandling)
ObjectValueConversion.AsDateTime(Object)
ObjectValueConversion.AsDateTime(Object, DateTime, ConvertErrorHandling)
ObjectValueConversion.AsNullableDateTime(Object, Nullable<DateTime>, ConvertErrorHandling)
ObjectValueConversion.AsGDID(Object)
ObjectValueConversion.AsGDID(Object, GDID, ConvertErrorHandling)
ObjectValueConversion.AsNullableGDID(Object, Nullable<GDID>, ConvertErrorHandling)
ObjectValueConversion.AsGDIDSymbol(Object)
ObjectValueConversion.AsGDIDSymbol(Object, GDIDSymbol, ConvertErrorHandling)
ObjectValueConversion.AsNullableGDIDSymbol(Object, Nullable<GDIDSymbol>, ConvertErrorHandling)
ObjectValueConversion.AsTimeSpan(Object)
ObjectValueConversion.AsTimeSpan(Object, TimeSpan, ConvertErrorHandling)
ObjectValueConversion.AsNullableTimeSpan(Object, Nullable<TimeSpan>, ConvertErrorHandling)
ObjectValueConversion.AsEnum<TEnum>(Object, TEnum, ConvertErrorHandling)
ObjectValueConversion.AsNullableEnum<TEnum>(Object, Nullable<TEnum>, ConvertErrorHandling)
ObjectValueConversion.AsUri(Object, Uri, ConvertErrorHandling)
JSONExtensions.ToJSON(Object, JSONWritingOptions)
JSONExtensions.ToJSON(Object, TextWriter, JSONWritingOptions)
JSONExtensions.ToJSON(Object, Stream, JSONWritingOptions, Encoding)
ErlObject.ToErlObject(Object)
ErlObject.ToErlObject(Object, ErlTypeOrder, Boolean)
Back to top Copyright © 2006-2018 Agnicore Inc
Generated by DocFX