Interface IStorageServer
Interface for storage servers which are systems capable of managing multiple stores which are exposed as IStorage
Inherited Members
Namespace: VDS.RDF.Storage.Management
Assembly: dotNetRdf.dll
Syntax
public interface IStorageServer : IDisposable
Remarks
This interface may be implemented either separately or alongside IStorage
Properties
| Edit this page View SourceIOBehaviour
Returns information on the IO behaviour of a Server.
Declaration
IOBehaviour IOBehaviour { get; }
Property Value
Type | Description |
---|---|
IOBehaviour |
Methods
| Edit this page View SourceCreateStore(IStoreTemplate)
Creates a new Store with the given ID.
Declaration
bool CreateStore(IStoreTemplate template)
Parameters
Type | Name | Description |
---|---|---|
IStore |
template | Template for the new store. |
Returns
Type | Description |
---|---|
bool | Whether creation succeeded. |
DeleteStore(string)
Deletes the Store with the given ID.
Declaration
void DeleteStore(string storeID)
Parameters
Type | Name | Description |
---|---|---|
string | storeID | Store ID. |
Remarks
Whether attempting to delete the Store that you are accessing is permissible is up to the implementation.
GetAvailableTemplates(string)
Gets all possible templates for creating a store with the given ID.
Declaration
IEnumerable<IStoreTemplate> GetAvailableTemplates(string id)
Parameters
Type | Name | Description |
---|---|---|
string | id | ID. |
Returns
Type | Description |
---|---|
IEnumerable<IStore |
GetDefaultTemplate(string)
Gets a default template for creating a store with the given ID.
Declaration
IStoreTemplate GetDefaultTemplate(string id)
Parameters
Type | Name | Description |
---|---|---|
string | id | ID. |
Returns
Type | Description |
---|---|
IStore |
GetStore(string)
Gets the Store with the given ID.
Declaration
IStorageProvider GetStore(string storeId)
Parameters
Type | Name | Description |
---|---|---|
string | storeId | Store ID. |
Returns
Type | Description |
---|---|
IStorage |
ListStores()
Gets the list of available stores.
Declaration
IEnumerable<string> ListStores()
Returns
Type | Description |
---|---|
IEnumerable<string> |