Interface IStorageServer
Interface for storage servers which are systems capable of managing multiple stores which are exposed as IStorageProvider instances.
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 IStorageProvider. It is quite acceptable for an implementation of IStorageProvider that provides a connection to a store sitting on a server that manages multiple stores to also provide an implementation of this interface in order to allow access to other stores on the server.
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 | 
|---|---|---|
| IStoreTemplate | 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<IStoreTemplate> | 
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 | 
|---|---|
| IStoreTemplate | 
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 | 
|---|---|
| IStorageProvider | 
ListStores()
Gets the list of available stores.
Declaration
IEnumerable<string> ListStores()
  Returns
| Type | Description | 
|---|---|
| IEnumerable<string> |