Class MMFPile
Provides default implementation of IPile which stores objects in Memory Mapped Files
Inheritance
System.Object
MMFPile
Implements
System.IDisposable
System.Collections.Generic.IEnumerable<PileEntry>
System.Collections.IEnumerable
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.Pile
Assembly: Azos.dll
Syntax
[SlimSerializationProhibited]
public sealed class MMFPile : DefaultPileBase, IDisposable, ILocalizedTimeProvider, IPileImplementation, IPile, IPileStatus, IEnumerable<PileEntry>, IEnumerable, IDaemon, IDaemonView, IApplicationComponent, INamed, IConfigurable, IInstrumentable, IExternallyParameterized
Constructors
MMFPile(IApplicationComponent, String)
Declaration
public MMFPile(IApplicationComponent director, string name = null)
Parameters
Type | Name | Description |
---|---|---|
IApplicationComponent | director | |
System.String | name |
MMFPile(IApplication, String)
Declaration
public MMFPile(IApplication app, string name = null)
Parameters
Type | Name | Description |
---|---|---|
IApplication | app | |
System.String | name |
Properties
CompletelyLoaded
Returns true when pile has completely loaded - mounted and Crawled(), from the MMF images on disk
Declaration
public bool CompletelyLoaded { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
DataDirectory
Returns the full path root + name where the memory mapped files are kept
Declaration
public string DataDirectory { get; }
Property Value
Type | Description |
---|---|
System.String |
DataDirectoryRoot
Specifies the full path to directory root under which the MMFPile creates a named instance directory where the memory-mapped files are kept. The instance directory name is taken from Pile.Name
Declaration
[Config]
public string DataDirectoryRoot { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Persistence
Returns PilePersistence.Memory
Declaration
public override ObjectPersistence Persistence { get; }
Property Value
Type | Description |
---|---|
ObjectPersistence |
Overrides
Methods
DoAcceptManagerVisit(Object, DateTime)
Declaration
protected override void DoAcceptManagerVisit(object manager, DateTime managerNow)
Parameters
Type | Name | Description |
---|---|---|
System.Object | manager | |
System.DateTime | managerNow |
Overrides
DoStart()
Declaration
protected override void DoStart()
Overrides
DoWaitForCompleteStop()
Declaration
protected override void DoWaitForCompleteStop()
Overrides
Implements
System.IDisposable
System.Collections.Generic.IEnumerable<T>
System.Collections.IEnumerable