uk.ac.soton.itinnovation.grid.service.job
Class RMConnectors

java.lang.Object
  extended by uk.ac.soton.itinnovation.grid.service.job.RMConnectors

public class RMConnectors
extends Object


Nested Class Summary
static class RMConnectors.Operation
           
 
Field Summary
static String APP_EXIT_CODE
           
static String APP_WRAPPER_ENDED
           
static String FAILED
           
static int JOB_STATUS_FAILED
           
static int JOB_STATUS_INTERNAL_ERROR
           
static int JOB_STATUS_KILLED
           
static int JOB_STATUS_STILL_RUNNING
           
static int JOB_STATUS_SUCCESS
           
static String KILLED
           
static String PROPERTIES_FILE_NAME
           
static String RM_CONNECTORS_NS
           
 
Constructor Summary
RMConnectors()
           
 
Method Summary
static String checkJob(File workingDir, File appDir)
           
static Calendar getJobStartedTimestamp(File workDir)
           
static UsageReport[] getJobUsage(File workDir, File wrapperDirectory, org.apache.axis.message.addressing.EndpointReferenceType epr)
           
static List<RMConnectorPlugin> getResourceManagerList()
           
static void jobStatus(File jobDir)
           
static void killJob(File workingDirectory, File appDirectory)
          Kill a submitted job
static void setConfDir(File confDir)
           
static void submitJob(File workingDirectory, File jsdl, String[] rms)
          Submit a job
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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
Constructor Detail

RMConnectors

public RMConnectors()
Method Detail

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 use
jsdl - The job JSDL file
rms - 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 directory
appDirectory - 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.