Class FileObjectStoreProvider
  
  Defines a file-based provider that stores objects for ObjectStoreService class
 
  
  
    Inheritance
    System.Object
    
    
    
    
    
    FileObjectStoreProvider
   
  
    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)
    
    
      System.Object.ToString()
    
   
  
  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
  
  Fields
  
  
  
  
  
  
  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
  
  
  
  
  
  Returns file format used for serialization/deserialization into/from files
 
  
  Declaration
  
    public FileObjectFormat Format { get; }
   
  Property Value
  
  
  
  
  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
  
  Overrides
  
  
  
  
  
  
  
  Declaration
  
    protected override void DoConfigure(IConfigSectionNode node)
   
  Parameters
  
  Overrides
  
  
  
  
  DoStart()
  
  
  Declaration
  
    protected override void DoStart()
   
  Overrides
  
  
  
  
  LoadAll()
  
  
  Declaration
  
    public override IEnumerable<ObjectStoreEntry> LoadAll()
   
  Returns
  
  Overrides
  
  
  
  
  Write(ObjectStoreEntry)
  
  
  Declaration
  
    public override void Write(ObjectStoreEntry entry)
   
  Parameters
  
  Overrides
  
  Implements
  
  
      System.IDisposable
  
  
  
  
  
  Extension Methods