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,
bool defaultCredential,
string runtimeName,
string dryadNebulaVersion,
int vcPercentAllocation,
string friendlyName,
int priority,
Dictionary<string, string> parameters,
string scopeScriptFileName,
List<JobNotification> notificationEmailList,
bool compression
) |
Visual Basic |
---|
Public Shared Function Submit ( _
vcName As String, _
proxy As String, _
defaultCredential As Boolean, _
runtimeName As String, _
dryadNebulaVersion As String, _
vcPercentAllocation As Integer, _
friendlyName As String, _
priority As Integer, _
parameters As Dictionary(Of String, String), _
scopeScriptFileName As String, _
notificationEmailList As List(Of JobNotification), _
compression As Boolean _
) As JobInfo |
Visual C++ |
---|
public:
static JobInfo^ Submit(
String^ vcName,
String^ proxy,
bool defaultCredential,
String^ runtimeName,
String^ dryadNebulaVersion,
int vcPercentAllocation,
String^ friendlyName,
int priority,
Dictionary<String^, String^>^ parameters,
String^ scopeScriptFileName,
List<JobNotification^>^ notificationEmailList,
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.
- defaultCredential
- Type: Boolean
If the value is true, the username that is currently logged on
the machine will be used. There is no need to encode the password.
- 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.
- notificationEmailList
- Type: List<(Of <(<'JobNotification>)>)>
The list of email notifications.
- 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