Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Creates a job using the specified XML file.
Namespace: Microsoft.ComputeCluster
Assembly: CcpAPI (in ccpapi.dll)
Usage
Syntax
'Declaration
Public Function CreateJobFromXmlFile ( _
path As String _
) As IJob
public IJob CreateJobFromXmlFile (
string path
)
public:
virtual IJob^ CreateJobFromXmlFile (
String^ path
) sealed
public final IJob CreateJobFromXmlFile (
String path
)
public final function CreateJobFromXmlFile (
path : String
) : IJob
Parameters
- path
The absolute path to the XML file that defines the job to create. The file name should include the .xml extension. If the job contains tasks, the tasks are also created. For information about writing the XML document, see Job Schema.
Return Value
An IJob interface that represents the job.
Remarks
The initial state of the job is NotSubmitted (see JobStatus). After creating the job, call the Cluster.AddJob method to add the job to the cluster. If the XML did not contain tasks, then call the Cluster.AddTask or Cluster.AddTasks method to add one or more tasks to the job. When the job is ready (you have added all the tasks and set all the job terms), call the Cluster.SubmitJob method to add the job to the scheduling queue.
To add and submit the job in one step, call the Cluster.QueueJob method. Before calling the QueueJob method, call the Job.AddTask method to add tasks to the job.
Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Platforms
Development Platforms
Microsoft Windows Compute Cluster Server 2003, Windows Server 2003, Windows XP
Target Platforms
Microsoft Windows Compute Cluster Server 2003, Windows Server 2003 with Compute Cluster Pack Client Utilities, Windows XP with Compute Cluster Pack Client Utilities
See Also
Reference
Cluster Class
Cluster Members
Microsoft.ComputeCluster Namespace
Cluster.CreateJob Method
Cluster.CreateJobFromXml Method
CreateTaskFromXmlFile