cct.grid
Class TaskProvider

java.lang.Object
  extended by cct.grid.TaskProvider

public class TaskProvider
extends java.lang.Object

Title: Molecular Structure Viewer/Editor

Description: Computational Chemistry Toolkit

Copyright: Copyright (c) 2006

Company: ANU


Field Summary
static java.lang.String CCT_PROVIDER_PROPERTY_FILE
           
static java.lang.String GLOBUS_2_PROVIDER
           
static java.lang.String GLOBUS_4_PROVIDER
           
static java.lang.String LOCAL_PROVIDER
           
static java.lang.String SSH_PROVIDER
           
 
Method Summary
static void addTaskProviders(java.util.LinkedHashMap providers)
           
static void downloadOutputFiles(CheckPoint chkp)
           
static java.util.LinkedHashMap getAvailableTaskProviders()
           
 java.lang.String getJobHandle()
           
static java.lang.String getJobStatus(CheckPoint chkp)
          Returns job status as a string for a given checkpoint
static java.lang.Object getProvider(java.lang.String provider)
           
static FileChooserInterface getRemoteFileChooser(java.lang.String provider)
           
static boolean isValidServiceProvider(java.lang.String provider)
           
static void killJob(CheckPoint chkp)
          Kills a job
static void setAvailableTaskProviders(java.util.LinkedHashMap providers)
           
 java.lang.String submitJob(JobDescription job)
           
static boolean transferFile(java.lang.String source, java.lang.String destination, CheckPoint chkp)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CCT_PROVIDER_PROPERTY_FILE

public static final java.lang.String CCT_PROVIDER_PROPERTY_FILE
See Also:
Constant Field Values

GLOBUS_2_PROVIDER

public static final java.lang.String GLOBUS_2_PROVIDER
See Also:
Constant Field Values

GLOBUS_4_PROVIDER

public static final java.lang.String GLOBUS_4_PROVIDER
See Also:
Constant Field Values

SSH_PROVIDER

public static final java.lang.String SSH_PROVIDER
See Also:
Constant Field Values

LOCAL_PROVIDER

public static final java.lang.String LOCAL_PROVIDER
See Also:
Constant Field Values
Method Detail

setAvailableTaskProviders

public static void setAvailableTaskProviders(java.util.LinkedHashMap providers)

addTaskProviders

public static void addTaskProviders(java.util.LinkedHashMap providers)

getProvider

public static java.lang.Object getProvider(java.lang.String provider)

getAvailableTaskProviders

public static java.util.LinkedHashMap getAvailableTaskProviders()

isValidServiceProvider

public static boolean isValidServiceProvider(java.lang.String provider)

submitJob

public java.lang.String submitJob(JobDescription job)
                           throws java.lang.Exception
Throws:
java.lang.Exception

getJobHandle

public java.lang.String getJobHandle()

getJobStatus

public static java.lang.String getJobStatus(CheckPoint chkp)
                                     throws java.lang.Exception
Returns job status as a string for a given checkpoint

Parameters:
chkp - CheckPoint
Returns:
String
Throws:
java.lang.Exception

downloadOutputFiles

public static void downloadOutputFiles(CheckPoint chkp)
                                throws java.lang.Exception
Throws:
java.lang.Exception

transferFile

public static boolean transferFile(java.lang.String source,
                                   java.lang.String destination,
                                   CheckPoint chkp)
                            throws java.lang.Exception
Throws:
java.lang.Exception

killJob

public static void killJob(CheckPoint chkp)
                    throws java.lang.Exception
Kills a job

Parameters:
chkp - CheckPoint
Throws:
java.lang.Exception

getRemoteFileChooser

public static FileChooserInterface getRemoteFileChooser(java.lang.String provider)