Method DeployZipThroughService
- Namespace
- Scaleout.Client.GridDeployment
- Assembly
- Scaleout.Client.dll
DeployZipThroughService(GridConnection, string, string, string, string, byte[], InvocationGridOptions)
Deploys an Invocation Grid worker application that has been packaged as a zip file.
public static void DeployZipThroughService(GridConnection conn, string igName, string pathToZip, string executableName, string cmdLineParams, byte[] startupParam, InvocationGridOptions options)
Parameters
connGridConnectionGridConnection to a ScaleOut store.
igNamestringName of the Invocation Grid.
pathToZipstringPath to the zip file (on the local filesystem) that will be deployed to the ScaleOut hosts.
executableNamestringName of the executable to run, relative to the working directory
cmdLineParamsstringOptional command line parameters to supply to the IG worker process at startup.
startupParambyte[]Optional, arbitrary payload that is made available to the Invocation Grid worker process when it starts up.
optionsInvocationGridOptionsAn object that configures the behavior of this invocation grid.
Remarks
The contents of the supplied zip file will be copied to ScaleOut host systems and decompressed into folder under %ProgramData%\ScaleOut Software\IG. (On Linux, this will be /usr/share/ScaleOut Software/IG).
After the zip file has been deployed to this temporary directory, the executableName
will be launched on every ScaleOut host--the supplied path should be relative to the decompressed folder. For
example, if your zip file contains an executable call MyWorker.exe in the top level of the
zip file, the executableName should be "MyWorker.exe".
DeployZipThroughService(GridConnection, string, string, string, string, byte[])
Deploys an Invocation Grid worker application that has been packaged as a zip file.
public static void DeployZipThroughService(GridConnection conn, string igName, string pathToZip, string executableName, string cmdLineParams, byte[] startupParam)
Parameters
connGridConnectionGridConnection to a ScaleOut store.
igNamestringName of the Invocation Grid.
pathToZipstringPath to the zip file (on the local filesystem) that will be deployed to the ScaleOut hosts.
executableNamestringName of the executable to run, relative to the working directory
cmdLineParamsstringOptional command line parameters to supply to the IG worker process at startup.
startupParambyte[]Optional, arbitrary payload that is made available to the Invocation Grid worker process when it starts up.
Remarks
The contents of the supplied zip file will be copied to ScaleOut host systems and decompressed into folder under %ProgramData%\ScaleOut Software\IG. (On Linux, this will be /usr/share/ScaleOut Software/IG).
After the zip file has been deployed to this temporary directory, the executableName
will be launched on every ScaleOut host--the supplied path should be relative to the decompressed folder. For
example, if your zip file contains an executable call MyWorker.exe in the top level of the
zip file, the executableName should be "MyWorker.exe".