Definition at line 21 of file InMemoryStorageSystem.cs.
Deveel.Data.Store.InMemoryStorageSystem.InMemoryStorageSystem |
( |
| ) |
|
|
inline |
Deveel.Data.Store.InMemoryStorageSystem.~InMemoryStorageSystem |
( |
| ) |
|
|
inlineprivate |
bool IStoreSystem. Deveel.Data.Store.InMemoryStorageSystem.CloseStore |
( |
IStore |
store | ) |
|
|
inlineprivate |
Closes a store that has been either created or opened with the CreateStore or OpenStore methods.
- Parameters
-
- Returns
- Returns true if the store was successfully closed.
Implements Deveel.Data.Store.IStoreSystem.
Definition at line 95 of file InMemoryStorageSystem.cs.
bool IStoreSystem. CloseStore(IStore store)
Closes a store that has been either created or opened with the CreateStore or OpenStore methods...
bool Deveel.Data.Store.InMemoryStorageSystem.CloseStore |
( |
InMemoryStore |
store | ) |
|
|
inline |
Definition at line 99 of file InMemoryStorageSystem.cs.
101 throw new InvalidOperationException(
String.Format(
"Store {0} does not exist", store.Name));
A long string in the system.
bool StoreExists(string name)
IStore IStoreSystem. Deveel.Data.Store.InMemoryStorageSystem.CreateStore |
( |
string |
name | ) |
|
|
inlineprivate |
InMemoryStore Deveel.Data.Store.InMemoryStorageSystem.CreateStore |
( |
string |
name | ) |
|
|
inline |
InMemoryStore Deveel.Data.Store.InMemoryStorageSystem.CreateStore |
( |
string |
name, |
|
|
int |
hashSize |
|
) |
| |
|
inline |
Definition at line 67 of file InMemoryStorageSystem.cs.
68 if (
String.IsNullOrEmpty(name))
69 throw new ArgumentNullException(
"name");
73 throw new ArgumentException(
String.Format(
"The store {0} already exists.", name));
75 var store =
new InMemoryStore(name, hashSize);
A long string in the system.
bool StoreExists(string name)
Dictionary< string, InMemoryStore > nameStoreMap
bool IStoreSystem. Deveel.Data.Store.InMemoryStorageSystem.DeleteStore |
( |
IStore |
store | ) |
|
|
inlineprivate |
Permanently deletes a store from the system - use with care!
- Parameters
-
Note that it is quite likely that a store may fail to delete in which case the delete operation should be re-tried after a short timeout.
- Returns
- Returns true if the store was successfully deleted and the resources associated with it were freed. Returns false if the store could not be deleted.
Implements Deveel.Data.Store.IStoreSystem.
Definition at line 106 of file InMemoryStorageSystem.cs.
bool IStoreSystem. DeleteStore(IStore store)
Permanently deletes a store from the system - use with care!
bool Deveel.Data.Store.InMemoryStorageSystem.DeleteStore |
( |
InMemoryStore |
store | ) |
|
|
inline |
Definition at line 110 of file InMemoryStorageSystem.cs.
112 throw new ArgumentNullException(
"store");
Dictionary< string, InMemoryStore > nameStoreMap
void Deveel.Data.Store.InMemoryStorageSystem.Dispose |
( |
| ) |
|
|
inline |
void Deveel.Data.Store.InMemoryStorageSystem.Dispose |
( |
bool |
disposing | ) |
|
|
inlineprivate |
void Deveel.Data.Store.InMemoryStorageSystem.Lock |
( |
string |
lockName | ) |
|
|
inline |
InMemoryStore Deveel.Data.Store.InMemoryStorageSystem.OpenStore |
( |
string |
name | ) |
|
|
inline |
Definition at line 81 of file InMemoryStorageSystem.cs.
85 throw new InvalidOperationException(
String.Format(
"Store {0} does not exist.", name));
A long string in the system.
Dictionary< string, InMemoryStore > nameStoreMap
IStore IStoreSystem. Deveel.Data.Store.InMemoryStorageSystem.OpenStore |
( |
string |
name | ) |
|
|
inlineprivate |
void Deveel.Data.Store.InMemoryStorageSystem.SetCheckPoint |
( |
| ) |
|
|
inline |
Sets a new check point at the current state of this store system.
This is intended to help journalling check point and recovery systems. A check point is set whenever data is committed to the database. Some systems can be designed to be able to roll forward or backward to different check points. Each check point represents a stable state in the database life cycle.
A checkpoint based system greatly improves stability because if a crash occurs in an intermediate state the changes can simply be rolled back to the last stable state.
An implementation may choose not to implement check points in which case this would be a no-op.
Implements Deveel.Data.Store.IStoreSystem.
Definition at line 119 of file InMemoryStorageSystem.cs.
bool Deveel.Data.Store.InMemoryStorageSystem.StoreExists |
( |
string |
name | ) |
|
|
inline |
void Deveel.Data.Store.InMemoryStorageSystem.Unlock |
( |
string |
lockName | ) |
|
|
inline |
const int Deveel.Data.Store.InMemoryStorageSystem.DefaultStoreSize = 1024 |
Dictionary<string, InMemoryStore> Deveel.Data.Store.InMemoryStorageSystem.nameStoreMap |
|
private |
The documentation for this class was generated from the following file: