gov.bnl.star.offline.scheduler.condorg
Class CondorGPBSDispatcher

java.lang.Object
  extended bygov.bnl.star.offline.scheduler.Dispatchers.lsf.LSFDispatcher
      extended bygov.bnl.star.offline.scheduler.condorg.CondorGPBSDispatcher
All Implemented Interfaces:
Dispatcher

public class CondorGPBSDispatcher
extends LSFDispatcher

Dispatches jobs using Condor-G on a remote site that uses PBS. It will NOT use extra rsl attributes for PBS. If needed they will be added later.

Version:
1.0 2004/06/08
Author:
Alex Withers

Field Summary
protected  CSHApplication application
           
 
Fields inherited from class gov.bnl.star.offline.scheduler.Dispatchers.lsf.LSFDispatcher
reportedFailure, scratchDir, simulation
 
Constructor Summary
CondorGPBSDispatcher()
          Creates a new dispatcher
 
Method Summary
protected  void dispatch(Request request, Job job)
           
 void dispatch(Request request, java.util.List jobs)
          Creates the scripts and dispatches the job on the target machine.
protected  java.lang.String getClassAdName(Request request, Job job)
          Returns the name of the file containing the class ad.
 java.lang.String getCondorEx()
           
protected  java.lang.String getCondorGCommand(Request request, Job job)
          Returns the command line to submit the job through condor-g.
 java.lang.String getGlobusGatekeeper()
           
 java.lang.String getRemoteInitialDir()
           
protected  java.lang.String getResourceUsageSwitch(Job job)
           
 boolean isTransferExecutable()
          Getter for property transferExecutable.
 void setCondorEx(java.lang.String condorEx)
           
 void setGlobusGatekeeper(java.lang.String gatekeeper)
           
 void setRemoteInitialDir(java.lang.String remoteInitialDir)
           
 void setTransferExecutable(boolean transferExecutable)
          Setter for property transferExecutable.
 
Methods inherited from class gov.bnl.star.offline.scheduler.Dispatchers.lsf.LSFDispatcher
getBsubEx, getBsubOptions, getClusterName, getMaxAttempts, getMsBtwnFailure, getMsBtwnSuccess, getQueueName, getQueueName, getResourceStrategy, getScratchDir, reportFailure, reportProcessSubmissionFailure, retrieveOutput, setBsubEx, setBsubOptions, setClusterName, setMaxAttempts, setMsBtwnFailure, setMsBtwnSuccess, setQueueName, setResourceRequirementStringDefinition, setResourceStrategy, setScratchDir, useSimulationMode
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

application

protected CSHApplication application
Constructor Detail

CondorGPBSDispatcher

public CondorGPBSDispatcher()
Creates a new dispatcher

Method Detail

setCondorEx

public void setCondorEx(java.lang.String condorEx)

getCondorEx

public java.lang.String getCondorEx()

dispatch

public void dispatch(Request request,
                     java.util.List jobs)
Creates the scripts and dispatches the job on the target machine.

Specified by:
dispatch in interface Dispatcher
Overrides:
dispatch in class LSFDispatcher
Parameters:
request - the job request

dispatch

protected void dispatch(Request request,
                        Job job)
Overrides:
dispatch in class LSFDispatcher

getCondorGCommand

protected java.lang.String getCondorGCommand(Request request,
                                             Job job)
Returns the command line to submit the job through condor-g.

Parameters:
request - the request that originated the job
job - the job to be dispatched
Returns:
the commandline to submit the job

getClassAdName

protected java.lang.String getClassAdName(Request request,
                                          Job job)
Returns the name of the file containing the class ad. Class ad is the job description required by condor to submit a job.

Parameters:
request - the request that originated the job
job - the job to be submitted
Returns:
the file name of the class ad

setGlobusGatekeeper

public void setGlobusGatekeeper(java.lang.String gatekeeper)

getGlobusGatekeeper

public java.lang.String getGlobusGatekeeper()

setRemoteInitialDir

public void setRemoteInitialDir(java.lang.String remoteInitialDir)

getRemoteInitialDir

public java.lang.String getRemoteInitialDir()

getResourceUsageSwitch

protected java.lang.String getResourceUsageSwitch(Job job)
Overrides:
getResourceUsageSwitch in class LSFDispatcher

isTransferExecutable

public boolean isTransferExecutable()
Getter for property transferExecutable.

Returns:
Value of property transferExecutable.

setTransferExecutable

public void setTransferExecutable(boolean transferExecutable)
Setter for property transferExecutable.

Parameters:
transferExecutable - New value of property transferExecutable.


Copyright © 2002-2004 STAR collaboration - Brookhaven National Laboratory. All Rights Reserved.