Class PlatformDotNetCacheStoreFactory

  • All Implemented Interfaces:
    Serializable, javax.cache.configuration.Factory<org.apache.ignite.internal.processors.platform.dotnet.PlatformDotNetCacheStore>

    public class PlatformDotNetCacheStoreFactory
    extends Object
    implements javax.cache.configuration.Factory<org.apache.ignite.internal.processors.platform.dotnet.PlatformDotNetCacheStore>
    Wrapper for .NET cache store implementations.

    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(javax.cache.configuration.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.
    See Also:
    Serialized Form
    • Constructor Detail

      • PlatformDotNetCacheStoreFactory

        public PlatformDotNetCacheStoreFactory()
    • Method Detail

      • getTypeName

        public String getTypeName()
        Gets .NET type name.
        Returns:
        .NET type name.
      • setTypeName

        public void setTypeName​(String typName)
        Sets .NET type name.
        Parameters:
        typName - .NET type name.
      • getProperties

        public Map<String,​?> getProperties()
        Get properties.
        Returns:
        Properties.
      • setProperties

        public void setProperties​(Map<String,​?> props)
        Set properties.
        Parameters:
        props - Properties.
      • create

        public org.apache.ignite.internal.processors.platform.dotnet.PlatformDotNetCacheStore create()
        Specified by:
        create in interface javax.cache.configuration.Factory<org.apache.ignite.internal.processors.platform.dotnet.PlatformDotNetCacheStore>