Lean
$LEAN_TAG$
|
Provides object storage for data persistence. More...
Public Member Functions | |
void | Initialize (int userId, int projectId, string userToken, Controls controls) |
Initializes the object store More... | |
bool | ContainsKey (string path) |
Determines whether the store contains data for the specified path More... | |
byte[] | ReadBytes (string path) |
Returns the object data for the specified key More... | |
bool | SaveBytes (string path, byte[] contents) |
Saves the object data for the specified path More... | |
bool | Delete (string path) |
Deletes the object data for the specified path More... | |
string | GetFilePath (string path) |
Returns the file path for the specified path More... | |
void | Clear () |
Will clear the object store state cache. This is useful when the object store is used concurrently by nodes which want to share information More... | |
Properties | |
ICollection< string > | Keys [get] |
Returns the file paths present in the object store. This is specially useful not to load the object store into memory More... | |
Events | |
EventHandler< ObjectStoreErrorRaisedEventArgs > | ErrorRaised |
Event raised each time there's an error More... | |
Provides object storage for data persistence.
Definition at line 27 of file IObjectStore.cs.
void QuantConnect.Interfaces.IObjectStore.Initialize | ( | int | userId, |
int | projectId, | ||
string | userToken, | ||
Controls | controls | ||
) |
Initializes the object store
userId | The user id |
projectId | The project id |
userToken | The user token |
controls | The job controls instance |
Implemented in QuantConnect.Lean.Engine.Storage.LocalObjectStore, and QuantConnect.Storage.ObjectStore.
bool QuantConnect.Interfaces.IObjectStore.ContainsKey | ( | string | path | ) |
Determines whether the store contains data for the specified path
path | The object path |
Implemented in QuantConnect.Lean.Engine.Storage.LocalObjectStore, and QuantConnect.Storage.ObjectStore.
byte [] QuantConnect.Interfaces.IObjectStore.ReadBytes | ( | string | path | ) |
Returns the object data for the specified key
path | The object key |
Implemented in QuantConnect.Lean.Engine.Storage.LocalObjectStore, and QuantConnect.Storage.ObjectStore.
bool QuantConnect.Interfaces.IObjectStore.SaveBytes | ( | string | path, |
byte[] | contents | ||
) |
Saves the object data for the specified path
path | The object path |
contents | The object data |
Implemented in QuantConnect.Lean.Engine.Storage.LocalObjectStore, and QuantConnect.Storage.ObjectStore.
bool QuantConnect.Interfaces.IObjectStore.Delete | ( | string | path | ) |
Deletes the object data for the specified path
path | The object path |
Implemented in QuantConnect.Lean.Engine.Storage.LocalObjectStore, and QuantConnect.Storage.ObjectStore.
string QuantConnect.Interfaces.IObjectStore.GetFilePath | ( | string | path | ) |
Returns the file path for the specified path
path | The object path |
Implemented in QuantConnect.Lean.Engine.Storage.LocalObjectStore, and QuantConnect.Storage.ObjectStore.
void QuantConnect.Interfaces.IObjectStore.Clear | ( | ) |
Will clear the object store state cache. This is useful when the object store is used concurrently by nodes which want to share information
Implemented in QuantConnect.Lean.Engine.Storage.LocalObjectStore, and QuantConnect.Storage.ObjectStore.
|
get |
Returns the file paths present in the object store. This is specially useful not to load the object store into memory
Definition at line 82 of file IObjectStore.cs.
EventHandler<ObjectStoreErrorRaisedEventArgs> QuantConnect.Interfaces.IObjectStore.ErrorRaised |
Event raised each time there's an error
Definition at line 32 of file IObjectStore.cs.