uk.ac.soton.itinnovation.grid.service.job
Class RMConnectors
java.lang.Object
uk.ac.soton.itinnovation.grid.service.job.RMConnectors
public class RMConnectors
- extends Object
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JOB_STATUS_SUCCESS
public static final int JOB_STATUS_SUCCESS
- See Also:
- Constant Field Values
JOB_STATUS_INTERNAL_ERROR
public static final int JOB_STATUS_INTERNAL_ERROR
- See Also:
- Constant Field Values
JOB_STATUS_KILLED
public static final int JOB_STATUS_KILLED
- See Also:
- Constant Field Values
JOB_STATUS_STILL_RUNNING
public static final int JOB_STATUS_STILL_RUNNING
- See Also:
- Constant Field Values
JOB_STATUS_FAILED
public static final int JOB_STATUS_FAILED
- See Also:
- Constant Field Values
APP_WRAPPER_ENDED
public static final String APP_WRAPPER_ENDED
- See Also:
- Constant Field Values
APP_EXIT_CODE
public static final String APP_EXIT_CODE
- See Also:
- Constant Field Values
KILLED
public static final String KILLED
- See Also:
- Constant Field Values
FAILED
public static final String FAILED
- See Also:
- Constant Field Values
PROPERTIES_FILE_NAME
public static final String PROPERTIES_FILE_NAME
- See Also:
- Constant Field Values
RM_CONNECTORS_NS
public static final String RM_CONNECTORS_NS
- See Also:
- Constant Field Values
RMConnectors
public RMConnectors()
submitJob
public static void submitJob(File workingDirectory,
File jsdl,
String[] rms)
throws GridFailureException
- Submit a job
- Parameters:
workingDirectory - The working directory for the job to usejsdl - The job JSDL filerms - The names of the resource managers on which this application is installed
- Throws:
GridErrorException - If there is a problem invoking the submission script
GridFailureException
killJob
public static void killJob(File workingDirectory,
File appDirectory)
throws GridFailureException,
GridErrorException
- Kill a submitted job
- Parameters:
workingDirectory - The job's scratch directoryappDirectory - The application directory, or null if it doesn't have one
- Throws:
GridFailureException
GridErrorException
getResourceManagerList
public static List<RMConnectorPlugin> getResourceManagerList()
throws GridFailureException
- Throws:
GridFailureException
checkJob
public static String checkJob(File workingDir,
File appDir)
throws GridFailureException
- Throws:
GridFailureException
setConfDir
public static void setConfDir(File confDir)
jobStatus
public static void jobStatus(File jobDir)
throws GridFailureException
- Throws:
GridFailureException
getJobUsage
public static UsageReport[] getJobUsage(File workDir,
File wrapperDirectory,
org.apache.axis.message.addressing.EndpointReferenceType epr)
throws GridFailureException
- Throws:
GridFailureException
getJobStartedTimestamp
public static Calendar getJobStartedTimestamp(File workDir)
throws GridFailureException
- Throws:
GridFailureException
Copyright © 2001-2007 University of Southampton IT Innovation Centre. All Rights Reserved.