This function submits the job to virtual cluster.
Namespace: ScopeClientAssembly: Scope (in Scope.exe) Version: 10.2.0.0 (10.2.2.0)
Syntax
C# |
---|
public static JobInfo Submit(
string vcName,
string proxy,
string userName,
string runtimeName,
string dryadNebulaVersion,
int vcPercentAllocation,
string friendlyName,
int priority,
Dictionary<string, string> parameters,
string scopeScriptFileName,
bool compression
) |
Visual Basic |
---|
Public Shared Function Submit ( _
vcName As String, _
proxy As String, _
userName As String, _
runtimeName As String, _
dryadNebulaVersion As String, _
vcPercentAllocation As Integer, _
friendlyName As String, _
priority As Integer, _
parameters As Dictionary(Of String, String), _
scopeScriptFileName As String, _
compression As Boolean _
) As JobInfo |
Visual C++ |
---|
public:
static JobInfo^ Submit(
String^ vcName,
String^ proxy,
String^ userName,
String^ runtimeName,
String^ dryadNebulaVersion,
int vcPercentAllocation,
String^ friendlyName,
int priority,
Dictionary<String^, String^>^ parameters,
String^ scopeScriptFileName,
bool compression
) |
Parameters
- vcName
- Type: String
Name of the VC, either in http:// or vc:// format, the job is
being submitted to.
- proxy
- Type: String
The proxy value to be used when communicating with the VC. By default
a proxy will not be used.
- userName
- Type: String
The username in Domain\username format. If the username is null,
the default encoded account will be used.
- runtimeName
- Type: String
Runtime Name. Pass null to use the
default SCOPE version.
- dryadNebulaVersion
- Type: String
Version of the Dryad Nebula to be used. Pass null to
use the default version.
- vcPercentAllocation
- Type: Int32
This should be a number between 1 and 100, inclusive. Passing
-1 will use the default value.
- friendlyName
- Type: String
Friendly name for the job.
- priority
- Type: Int32
Priority of the job. Lower values have higher priority.
- parameters
- Type: Dictionary<(Of <(<'String, String>)>)>
This variable is used to pass parameters to the SCOPE script.
The key of each entry is the parameter name and the value of each entry is the parameter
value. If you don't have any parameters to pass, pass null.
- scopeScriptFileName
- Type: String
Name of the SCOPE script file.
- compression
- Type: Boolean
True if the compression needs to be used in uploading embedded
resources and all other requests to the VC.
Return Value
If the job was submitted successfully, a
JobInfo object will be returned.
Please look
VcClient library to know more about
JobInfo.
See Also