Show / Hide Table of Contents

Class FileObjectStoreProvider

Defines a file-based provider that stores objects for ObjectStoreService class

Inheritance
System.Object
DisposableObject
ApplicationComponent
Service
Service<ObjectStoreService>
ObjectStoreProvider
FileObjectStoreProvider
Implements
IApplicationComponent
System.IDisposable
IService
INamed
IConfigurable
ILocalizedTimeProvider
Inherited Members
ObjectStoreProvider.WriteLog(MessageType, String, String, String)
Service<ObjectStoreService>.ComponentDirector
Service.CONFIG_NAME_ATTR
Service.Destructor()
Service.ApplicationDontAutoStartService
Service.Status
Service.Running
Service.Name
Service.TimeLocation
Service.LocalizedTime
Service.Configure(IConfigSectionNode)
Service.Start()
Service.SignalStop()
Service.CheckForCompleteStop()
Service.WaitForCompleteStop()
Service.AcceptManagerVisit(Object, DateTime)
Service.UniversalTimeToLocalizedTime(DateTime)
Service.LocalizedTimeToUniversalTime(DateTime)
Service.AbortStart()
Service.DoSignalStop()
Service.DoCheckForCompleteStop()
Service.DoWaitForCompleteStop()
Service.CheckServiceInactive()
Service.CheckServiceActive()
Service.CheckServiceActiveOrStarting()
Service.DoAcceptManagerVisit(Object, DateTime)
Service.____ObtainPrivateServiceStatusLockObject()
ApplicationComponent.AllComponents
ApplicationComponent.GetAppComponentBySID(UInt64)
ApplicationComponent.GetAppComponentByCommonName(String)
ApplicationComponent.ComponentSID
ApplicationComponent.ComponentStartTime
ApplicationComponent.ComponentCommonName
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.ApplicationModel.Volatile
Assembly: NFX.dll
Syntax
public class FileObjectStoreProvider : ObjectStoreProvider, IApplicationComponent, IDisposable, IService, INamed, IConfigurable, ILocalizedTimeProvider

Constructors

FileObjectStoreProvider()

Declaration
public FileObjectStoreProvider()

FileObjectStoreProvider(ObjectStoreService)

Declaration
public FileObjectStoreProvider(ObjectStoreService director)
Parameters
Type Name Description
ObjectStoreService director

Fields

CONFIG_FORMAT_ATTR

Declaration
public const string CONFIG_FORMAT_ATTR = "format"
Field Value
Type Description
System.String

CONFIG_KNOWN_SECTION

Declaration
public const string CONFIG_KNOWN_SECTION = "known"
Field Value
Type Description
System.String

CONFIG_KNOWN_TYPES_SECTION

Declaration
public const string CONFIG_KNOWN_TYPES_SECTION = "known-types"
Field Value
Type Description
System.String

CONFIG_LOAD_LIMIT_ATTR

Declaration
public const string CONFIG_LOAD_LIMIT_ATTR = "load-limit"
Field Value
Type Description
System.String

CONFIG_ROOT_PATH_ATTR

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

CONFIG_TYPE_ATTR

Declaration
public const string CONFIG_TYPE_ATTR = "type"
Field Value
Type Description
System.String

DEFAULT_LOAD_LIMIT

Declaration
public const long DEFAULT_LOAD_LIMIT = 536870912L
Field Value
Type Description
System.Int64

FROM

Declaration
public const string FROM = "FileObjectStoreProvider"
Field Value
Type Description
System.String

MAX_LOAD_LIMIT

Declaration
public const long MAX_LOAD_LIMIT = 8589934592L
Field Value
Type Description
System.Int64

Properties

Format

Returns file format used for serialization/deserialization into/from files

Declaration
public FileObjectFormat Format { get; }
Property Value
Type Description
FileObjectFormat

LoadLimit

Imposes the limit on number of bytes that can be read from disk on load all. Once limit is exceeded the rest of objects will not load. Provider loads most recent objects first

Declaration
public long LoadLimit { get; set; }
Property Value
Type Description
System.Int64

LoadSize

Returns how many bytes have been loaded from disk

Declaration
public long LoadSize { get; }
Property Value
Type Description
System.Int64

RootPath

Gets/sets the root path where objects are stored

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

Methods

Delete(ObjectStoreEntry)

Declaration
public override void Delete(ObjectStoreEntry entry)
Parameters
Type Name Description
ObjectStoreEntry entry
Overrides
ObjectStoreProvider.Delete(ObjectStoreEntry)

DoConfigure(IConfigSectionNode)

Declaration
protected override void DoConfigure(IConfigSectionNode node)
Parameters
Type Name Description
IConfigSectionNode node
Overrides
ObjectStoreProvider.DoConfigure(IConfigSectionNode)

DoStart()

Declaration
protected override void DoStart()
Overrides
Service.DoStart()

LoadAll()

Declaration
public override IEnumerable<ObjectStoreEntry> LoadAll()
Returns
Type Description
System.Collections.Generic.IEnumerable<ObjectStoreEntry>
Overrides
ObjectStoreProvider.LoadAll()

Write(ObjectStoreEntry)

Declaration
public override void Write(ObjectStoreEntry entry)
Parameters
Type Name Description
ObjectStoreEntry entry
Overrides
ObjectStoreProvider.Write(ObjectStoreEntry)

Implements

IApplicationComponent
System.IDisposable
IService
INamed
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