gov.bnl.star.offline.scheduler.Dispatchers.condorg
Class CondorGRSLDispatcher

java.lang.Object
  extended by gov.bnl.star.offline.scheduler.Dispatchers.DispatcherBase
      extended by gov.bnl.star.offline.scheduler.Dispatchers.lsf.LSFDispatcher
          extended by gov.bnl.star.offline.scheduler.Dispatchers.condorg.CondorGRSLDispatcher
All Implemented Interfaces:
Dispatcher, java.io.Serializable

public class CondorGRSLDispatcher
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, Levente Hajdu
See Also:
Serialized Form

Field Summary
protected  CSHApplication application
           
 
Fields inherited from class gov.bnl.star.offline.scheduler.Dispatchers.lsf.LSFDispatcher
reportedFailure, run, scratchDir, simulation
 
Fields inherited from class gov.bnl.star.offline.scheduler.Dispatchers.DispatcherBase
threadOuput
 
Constructor Summary
CondorGRSLDispatcher()
          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.
 CSHApplication getApplication()
          Get the class that writes the sricpt that will be executed by the batch system
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 getCondorGOptions()
           
 java.lang.String getRemoteInitialDir()
           
protected  java.lang.String getResourceUsageSwitch(Job job)
           
 boolean getUseLSFMod()
           
 boolean getUseRSL()
           
 boolean isTransferExecutable()
          Getter for property transferExecutable.
 void Kill(Request request, java.util.List jobs)
          Kills the processes associated with this job.
 void setApplication(CSHApplication application)
          Set the class that writes the sricpt that will be executed by the batch system
 void setCondorEx(java.lang.String condorEx)
           
 void setCondorGOptions(java.lang.String condorGOptions)
           
 void setRemoteInitialDir(java.lang.String remoteInitialDir)
           
 void setTransferExecutable(boolean transferExecutable)
          Setter for property transferExecutable.
 void setUseLSFMod(boolean useLSFMod)
           
 void setUseRSL(boolean useRSL)
           
 java.lang.String Status(Job job, int Processe)
          Returns The status of the job
 void stop()
          Cases the dispacher to stop dispaching and trys to kill dispached jobs This is currently not implemented by any dispatchers.
 boolean test(Queue queue)
          Runs test(s) on underlying components to determine if submitting jobs should be attempted.
 
Methods inherited from class gov.bnl.star.offline.scheduler.Dispatchers.lsf.LSFDispatcher
addResourceStrategy, getBsubEx, getBsubOptions, getClusterName, getMaxAttempts, getMaxElapseTime, getMsBtwnFailure, getMsBtwnSuccess, getNodePriorityStringGenerator, getOmitTargetNode, getQueueName, getQueueName, getResourceStrategyList, reportFailure, reportProcessSubmissionFailure, retrieveOutput, setBsubEx, setBsubOptions, setClusterName, setMaxAttempts, setMaxElapseTime, setMsBtwnFailure, setMsBtwnSuccess, setNodePriorityStringGenerator, setOmitTargetNode, setQueueName, setResourceRequirementStringDefinition, setResourceStrategy, setResourceStrategyList, useSimulationMode
 
Methods inherited from class gov.bnl.star.offline.scheduler.Dispatchers.DispatcherBase
getTestQueueCommand, getTestQueueCommandMustMatch, runInTimeLimitedThread, setTestQueueCommand, setTestQueueCommandMustMatch
 
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

CondorGRSLDispatcher

public CondorGRSLDispatcher()
Creates a new dispatcher

Method Detail

setUseRSL

public void setUseRSL(boolean useRSL)

getUseRSL

public boolean getUseRSL()

setCondorEx

public void setCondorEx(java.lang.String condorEx)

getCondorEx

public java.lang.String getCondorEx()

getCondorGOptions

public java.lang.String getCondorGOptions()

setCondorGOptions

public void setCondorGOptions(java.lang.String condorGOptions)

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

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.

setApplication

public void setApplication(CSHApplication application)
Set the class that writes the sricpt that will be executed by the batch system

Overrides:
setApplication in class LSFDispatcher
Parameters:
application - The initialized CSH writer object

getApplication

public CSHApplication getApplication()
Get the class that writes the sricpt that will be executed by the batch system

Overrides:
getApplication in class LSFDispatcher
Returns:
the object that writes the csh script

Kill

public void Kill(Request request,
                 java.util.List jobs)
Description copied from interface: Dispatcher
Kills the processes associated with this job.

Specified by:
Kill in interface Dispatcher
Overrides:
Kill in class LSFDispatcher

Status

public java.lang.String Status(Job job,
                               int Processe)
Description copied from interface: Dispatcher
Returns The status of the job

Specified by:
Status in interface Dispatcher
Overrides:
Status in class LSFDispatcher

stop

public void stop()
Description copied from interface: Dispatcher
Cases the dispacher to stop dispaching and trys to kill dispached jobs This is currently not implemented by any dispatchers.

Specified by:
stop in interface Dispatcher
Overrides:
stop in class LSFDispatcher

test

public boolean test(Queue queue)
Runs test(s) on underlying components to determine if submitting jobs should be attempted.

Specified by:
test in interface Dispatcher
Overrides:
test in class LSFDispatcher
Parameters:
queue - The queue object to be tested
Returns:
Will return true to indicate everything is alright and false if the test has failed

setUseLSFMod

public void setUseLSFMod(boolean useLSFMod)

getUseLSFMod

public boolean getUseLSFMod()


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