Add-StartupLoader
Note
This feature is only available in NCache Enterprise edition.
Add-StartupLoader cmdlet enables the users to configure startup loader provider for the cache which loads the configured data types from data source to the cache whenever the cache will be started.
Add-StartupLoader [-CacheName] -AssemblyPath [-Class] [-DependentAssemblyPath] [-HintList] [-NoDeploy] [-NoLogo] [-Parameters] [-Password] [-Port] [-Retries] [-RetryInterval] [-Server] [-UserId]
These properties are explained in detail in the Properties section.
Examples
- This command configures startup loader for a cache named demoCache. The assemblies to be deployed are placed at the specified path and the default port 8250.
Add-StartupLoader –CacheName demoCache –AssemblyPath C:\Provider.dll -Class StartupLoader.Loader
- This command configures startup loader for a cache named demoCache. The assemblies to be deployed are placed at the specified path on server node 20.200.21.11.
Add-StartupLoader demoCache –AssemblyPath C:\Provider.dll -Class StartupLoader.Loader –Server 20.200.21.11
Properties
Note: The parameters with asterisk (*) on their names are the required parameters and the rest are optional.
Parameters | Data Types | Description | Default Value |
---|---|---|---|
-AssemblyPath* |
<String> |
Specifies the path where the assembly is placed which is to be configured as a startup loader. | - |
-CacheName* |
<String> |
Specifies the name of the cache for which cache loader is to be configured. | - |
-Class |
<String> |
Specifies the fully qualified class from the startup loader which implements ICacheLoader/ICache Startup Provider. | - |
-Parameters |
<String> |
Specifies the list of the parameters which are to be passed to the cache loader separated by ‘$’ e.g key1=value1 ‘$’ key2=value2. | - |
-HintList |
<String> |
Specifies the distribution hints which are required to run startup loader on multiple nodes. | - |
-Server |
<String> |
Specifies the NCache server name/IP on which NCache service is running. | - |
-Port |
<Integer> |
Specifies the server port where NCache server is listening. | 8250 |
-Retries |
<Integer> |
In case of failed operations; specifies the number of retries for loading data in the cache. | - |
-RetryInterval |
<Integer> |
Specifies the interval to wait before each retry. | 0(zero) |
-NoDeploy |
<SwitchParameter> |
Specified if no assembly should be deployed. | False |
-DependentAssemblyPath |
<String> |
Specifies the path where dependent assemblies or folders are placed. | - |
-UserID |
<String> |
Specifies the User Id used to authorize a user if security is enabled on cache server. This User Id must be the same as the active directory user credentials. | - |
-Password |
<String> |
Specifies the password against the user Id; to authorize a user if security is enabled on cache server. This password must be the same as active directory password. | - |
-NoLogo |
<SwitchParameter> |
Suppresses display of the logo banner. | False |