org.objectweb.proactive.core.process.unicore
Class UnicoreProActiveClient

java.lang.Object
  extended byorg.objectweb.proactive.core.process.unicore.UnicoreProActiveClient

public class UnicoreProActiveClient
extends java.lang.Object

Author:
mleyton TODO To change the template for this generated type comment go to Window - Preferences - Java - Code Style - Code Templates

Constructor Summary
UnicoreProActiveClient(UnicoreParameters uParam)
           
 
Method Summary
 void build()
          After the parameters have been set through UnicoreParameters uParam, this methods builds the parameteres into the unicore client library.
static void main(java.lang.String[] args)
          Direct usage of client is discouraged.
static UnicoreParameters parseArgs(java.lang.String[] args)
           
 void saveJob()
          Saves the current Job to disc.
 void setScriptContent(java.lang.String scriptContent)
          Before calling the build() method, this function sets the desired script content to be executed on the unicore server.
 void submitJob()
          Submits the current Job to the Unicore Server.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UnicoreProActiveClient

public UnicoreProActiveClient(UnicoreParameters uParam)
Method Detail

setScriptContent

public void setScriptContent(java.lang.String scriptContent)
Before calling the build() method, this function sets the desired script content to be executed on the unicore server. Calling this function is equivalent to setting the scriptContent through a UnicoreParameter object. Note that calling this function after build() will not affect on the resulting submition job.

Parameters:
scriptContent - Contains the desired script to be executed on the remote Unicore server.

build

public void build()
After the parameters have been set through UnicoreParameters uParam, this methods builds the parameteres into the unicore client library. Invoking this method before submitting the job is mandatory.


submitJob

public void submitJob()
Submits the current Job to the Unicore Server. This method must be called after: -Configuring all the uParam Parameters -Call build() to set up the request


saveJob

public void saveJob()
Saves the current Job to disc. The object is saved in two ways, a serialized version suffixed with .ajo, and a .xml version. It is important to configure the Job FileName before calling saveJob(...), this can be done with: jc.setFilename(String filename); Currently the FileName is the same as the JobName.


main

public static void main(java.lang.String[] args)
Direct usage of client is discouraged. Recomended usage is through a ProActive Descriptor file.


parseArgs

public static UnicoreParameters parseArgs(java.lang.String[] args)


Copyright 2001-2005 INRIA All Rights Reserved.