Add-CustomDependency - PowerShell Cmdlet
This PowerShell Cmdlet allows user to configure custom dependency providers for the specified cache.
Note
This feature is only available NCache Enterprise.
Note
Please note that when using the NCache .NET Edition, you will require .dll libraries instead of .jar assemblies for this PowerShell Cmdlet.
Add-CustomDependency [-CacheName] [-AssemblyPath] [-Class] -ProviderName [-DependentAssemblyPath] [-Parameters] [-Server] [-Port] [-NoDeploy] [-Credentials] [-NoLogo]
Examples of Add-CustomDependency - PowerShell Cmdlet
- The following PowerShell Cmdlet configures custom dependency for demoCache.
Add-CustomDependency -CacheName demoCache -AssemblyPath C:\Provider.jar -Class MyCustomDependencyProvider -ProviderName MyCustomDependencyProvider
- The following command configures custom dependency provider for demoCache that exists on server 20.200.20.11.
Add-CustomDependency -CacheName demoCache -AssemblyPath C:\Provider.jar -Class MyCustomDependencyProvider -ProviderName MyCustomDependencyProvider -Server 20.200.20.11
Properties
Note
The parameters with an asterisk (*) with their names are the required parameters and the rest are optional.
Parameters | Data Types | Description | Default Value |
---|---|---|---|
-CacheName* |
<String> |
Specifies the name of the cache for which custom dependency provider needs to be configured. | - |
-AssemblyPath* |
<String> |
Specifies the path of the assembly which will be configured as a custom dependency provider. | - |
-Class* |
<String> |
Specifies the fully qualified class from the custom dependency provider assembly which implements ICustomDependencyProvider . |
- |
-ProviderName* |
<String> |
Specifies the unique name of the provider. | - |
-DependentAssemblyPath |
<String> |
Specifies the dependent assembly folder/path. | - |
-Parameters |
<String> |
Specifies the list of the parameters passed to the custom dependency provider ('$' separated). | key1=value1 '$' key2=value2 '$' ... |
-Server |
<String> |
Specifies the NCache server name or IP. | - |
-Port |
<Integer> |
Specifies the port on which NCache Server is listening. | 8250 |
-NoDeploy |
<SwitchParameter> |
Specifies if no assembly should be deployed. | False |
-Credentials |
<pscredential> |
Specifies the user credentials required to authorize access for the specified operation. These credentials should belong to a user who has appropriate permissions at the node. | - |
-NoLogo |
<SwitchParameter> |
Suppresses display of the logo banner. | - |