public class InteropDotNetCacheStoreFactory extends Object implements javax.cache.configuration.Factory<org.gridgain.grid.internal.interop.dotnet.InteropDotNetCacheStore>
This wrapper should be used if you have an implementation of
GridGain.Cache.IGridCacheStore interface in .NET and
would like to configure it a persistence storage for your cache.
To do tis you will need to configure the wrapper via
CacheConfiguration.setCacheStoreFactory(Factory) property
and provide assembly name and class name of your .NET store
implementation (both properties are mandatory):
<bean class="org.apache.ignite.cache.CacheConfiguration">
...
<property name="cacheStoreFactory">
<bean class="org.gridgain.grid.interop.dotnet.InteropDotNetCacheStoreFactory">
<property name="assemblyName" value="MyAssembly"/>
<property name="className" value="MyApp.MyCacheStore"/>
</bean>
</property>
...
</bean>
If properly configured, this wrapper will instantiate an instance
of your cache store in .NET and delegate all calls to that instance.
To create an instance, assembly name and class name are passed to
System.Activator.CreateInstance(String, String)
method in .NET during node startup. Refer to its documentation for
details.| Constructor and Description |
|---|
InteropDotNetCacheStoreFactory() |
| Modifier and Type | Method and Description |
|---|---|
org.gridgain.grid.internal.interop.dotnet.InteropDotNetCacheStore |
create() |
String |
getAssemblyName()
Gets .NET assembly name.
|
String |
getClassName()
Gets .NET class name.
|
Map<String,?> |
getProperties()
Get properties.
|
void |
setAssemblyName(String assemblyName)
Set .NET assembly name.
|
void |
setClassName(String clsName)
Sets .NET class name.
|
void |
setProperties(Map<String,?> props)
Set properties.
|
public String getAssemblyName()
public void setAssemblyName(String assemblyName)
assemblyName - .NET assembly name.public String getClassName()
public void setClassName(String clsName)
clsName - .NET class name.public void setProperties(Map<String,?> props)
props - Properties.public org.gridgain.grid.internal.interop.dotnet.InteropDotNetCacheStore create()
create in interface javax.cache.configuration.Factory<org.gridgain.grid.internal.interop.dotnet.InteropDotNetCacheStore>
GridGain Fabric : ver. 7.8.12 Release Date : October 2 2017