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
| Improve this Doc View SourceIOBehaviour
Returns information on the IO behaviour of a Server.
Declaration
IOBehaviour IOBehaviour { get; }
Property Value
Type | Description |
---|---|
IOBehaviour |
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.
Methods
| Improve this Doc 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 |
---|---|
System.Boolean | Whether creation succeeded. |
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.
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 |
---|---|
System.Collections.Generic.IEnumerable<T><IStoreTemplate> |
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.
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 |
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.
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 |
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.
ListStores()
Gets the list of available stores.
Declaration
IEnumerable<string> ListStores()
Returns
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<T><string> |
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.