Deploy Providers (Read-Through/Write-Through/Write-Behind)
NCache allows you to deploy assemblies over the server for server-side features like Backing Source, Entry Processor, MapReduce, Cache Loader/Refresher, or Custom Dependency providers. Once the user deploys provider assemblies through the NCache Management Center or any Command Line Tools from the specified path, the assemblies are also copied to the newly created folder named after the cache name in the deploy folder of the NCache installation directory. Similarly, Java-based providers can also be deployed using both the NCache Management Center and any Command Line Tools.
Important
For Java, before deploying your JAR files, ensure that your Environment Variable for Java Home is set and have the appropriate JDK installed as discussed in the NCache Installation Guide.
Using the NCache Management Center
Launch the NCache Management Center by browsing to http://localhost:8251 or
<server-ip>:8251
for Windows and Linux.In the left navigation bar, click on Clustered Caches or Local Caches, based on the cache required.
Check the box against the cache on which assemblies are to be deployed.
Click on "..." against the cache and select Deploy Providers.
NCache opens the File Explorer to let the user select the assemblies to be deployed.
The same assembly is now present in the newly created deploy folder in the NCache installation directory.
Using Command Line Tools
The install-ncachemodule tool enables the user to deploy provider assemblies from the specified assembly path to the deployment folder named 'deploy' in the NCache installation directory. You can also deploy jars through this tool and if you specify a folder path, it will copy all its content to the deploy folder.
This command deploys the assembly Provider.jar over a cache named demoCache.
install-ncachemodule -cachename demoCache -assemblypath "/user/Provider.jar"
See Also
Create a Cache
Remove Cache
Remove Server Node
Add Test Data