Show / Hide Table of Contents

Class DeleteFilesJob

Represents a job(a scheduled event) which deletes FS files

Inheritance
System.Object
DisposableObject
ApplicationComponent
Event
DeleteFilesJob
Implements
IApplicationComponent
System.IDisposable
INamed
IExternallyParameterized
IConfigurable
ILocalizedTimeProvider
Inherited Members
Event.CONFIG_EVENT_SECTION
Event.CONFIG_HANDLER_SECTION
Event.m_Lock
Event.Timer
Event.Name
Event.Status
Event.TimeLocation
Event.LocalizedTime
Event.EventHandler
Event.Body
Event.StatusChange
Event.DefinitionChange
Event.Enabled
Event.StartDate
Event.EndDate
Event.Interval
Event.MaxCount
Event.Context
Event.CallCount
Event.LastCall
Event.LastError
Event.ExternalParameters
Event.ResetCallCount()
Event.Fire(Boolean)
Event.UniversalTimeToLocalizedTime(DateTime)
Event.LocalizedTimeToUniversalTime(DateTime)
Event.ExternalParametersForGroups(String[])
Event.ExternalGetParameter(String, Object, String[])
Event.ExternalSetParameter(String, Object, String[])
Event.AdjustDate(Nullable<DateTime>)
Event.VisitAndCheck(DateTime)
Event.DoVisit(DateTime)
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.IO.FileSystem
Assembly: NFX.dll
Syntax
public class DeleteFilesJob : Event, IApplicationComponent, IDisposable, INamed, IExternallyParameterized, IConfigurable, ILocalizedTimeProvider

Constructors

DeleteFilesJob(IEventTimer, IConfigSectionNode)

Declaration
public DeleteFilesJob(IEventTimer timer, IConfigSectionNode config)
Parameters
Type Name Description
IEventTimer timer
IConfigSectionNode config

DeleteFilesJob(IEventTimer, String, Nullable<TimeSpan>, IConfigSectionNode, FileSystem, FileSystemSessionConnectParams, String)

Declaration
public DeleteFilesJob(IEventTimer timer, string name = null, TimeSpan? interval = default (TimeSpan? ), IConfigSectionNode config = null, FileSystem fs = null, FileSystemSessionConnectParams fsConnectParams = null, string fsRootPath = null)
Parameters
Type Name Description
IEventTimer timer
System.String name
System.Nullable<System.TimeSpan> interval
IConfigSectionNode config
FileSystem fs
FileSystemSessionConnectParams fsConnectParams
System.String fsRootPath

Fields

CONFIG_CONTENT_FS_SECTION

Declaration
public const string CONFIG_CONTENT_FS_SECTION = "file-system"
Field Value
Type Description
System.String

CONFIG_FS_CONNECT_PARAMS_SECTION

Declaration
public const string CONFIG_FS_CONNECT_PARAMS_SECTION = "connect-params"
Field Value
Type Description
System.String

CONFIG_FS_ROOT_PATH_ATTR

Declaration
public const string CONFIG_FS_ROOT_PATH_ATTR = "root-path"
Field Value
Type Description
System.String

Properties

BodyAsyncModel

Due to IO-nature this job is always executted as a long-running separate task

Declaration
public override EventBodyAsyncModel BodyAsyncModel { get; set; }
Property Value
Type Description
EventBodyAsyncModel
Overrides
Event.BodyAsyncModel

DeleteEmptyDirs

Declaration
[Config]
public bool DeleteEmptyDirs { get; set; }
Property Value
Type Description
System.Boolean

FileSystem

Returns file system that serves static content for portals

Declaration
public IFileSystem FileSystem { get; }
Property Value
Type Description
IFileSystem

FileSystemConnectParams

Declaration
public FileSystemSessionConnectParams FileSystemConnectParams { get; }
Property Value
Type Description
FileSystemSessionConnectParams

FileSystemRootPath

Returns root path for content file system

Declaration
public string FileSystemRootPath { get; }
Property Value
Type Description
System.String

LastModifyAgoHrs

Declaration
[Config]
public int ? LastModifyAgoHrs { get; set; }
Property Value
Type Description
System.Nullable<System.Int32>

LastModifyFrom

Declaration
[Config]
public DateTime? LastModifyFrom { get; set; }
Property Value
Type Description
System.Nullable<System.DateTime>

LastModifyTo

Declaration
[Config]
public DateTime? LastModifyTo { get; set; }
Property Value
Type Description
System.Nullable<System.DateTime>

LogStats

Declaration
[Config]
public bool LogStats { get; set; }
Property Value
Type Description
System.Boolean

MaxSize

Declaration
[Config]
public ulong ? MaxSize { get; set; }
Property Value
Type Description
System.Nullable<System.UInt64>

MinSize

Declaration
[Config]
public ulong ? MinSize { get; set; }
Property Value
Type Description
System.Nullable<System.UInt64>

NameExcludePattern

Declaration
[Config]
public string NameExcludePattern { get; set; }
Property Value
Type Description
System.String

NameIncludePattern

Declaration
[Config]
public string NameIncludePattern { get; set; }
Property Value
Type Description
System.String

Recurse

Declaration
[Config]
public bool Recurse { get; set; }
Property Value
Type Description
System.Boolean

Methods

BindFS(FileSystem, FileSystemSessionConnectParams, String)

Declaration
public void BindFS(FileSystem fs, FileSystemSessionConnectParams fsConnectParams, string fsRootPath)
Parameters
Type Name Description
FileSystem fs
FileSystemSessionConnectParams fsConnectParams
System.String fsRootPath

Configure(IConfigSectionNode)

Declaration
public override void Configure(IConfigSectionNode config)
Parameters
Type Name Description
IConfigSectionNode config
Overrides
Event.Configure(IConfigSectionNode)

Destructor()

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

DoFire()

Declaration
protected override void DoFire()
Overrides
Event.DoFire()

DoHandleError(Exception)

Declaration
protected override void DoHandleError(Exception error)
Parameters
Type Name Description
System.Exception error
Overrides
Event.DoHandleError(Exception)

Implements

IApplicationComponent
System.IDisposable
INamed
IExternallyParameterized
IConfigurable
ILocalizedTimeProvider

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