org.gwe.drivers.resManagers
Class CommandLineResourceManagerDriver

java.lang.Object
  extended by org.gwe.drivers.resManagers.ResourceManagerDriver
      extended by org.gwe.drivers.resManagers.CommandLineResourceManagerDriver
Direct Known Subclasses:
BsubDriver, CondorDriver, MultiProcessesDriver, QsubDriver

public abstract class CommandLineResourceManagerDriver
extends ResourceManagerDriver

Since:
Oct 26, 2008
Author:
Marco Ruiz

Field Summary
protected  java.lang.String discoveryCommand
           
protected  java.lang.String submissionCommand
           
protected  java.lang.String template
           
 
Fields inherited from class org.gwe.drivers.resManagers.ResourceManagerDriver
agentScriptPreffix, configuration, id
 
Constructor Summary
CommandLineResourceManagerDriver(java.lang.String discoveryCommand, java.lang.String submissionCommand, java.lang.String submissionTemplateFile)
           
 
Method Summary
protected abstract  java.lang.String extractIdFromSubmissionOutput(java.lang.String[] results)
           
protected  java.lang.String getSubmitContent(AllocationInfo alloc)
           
 boolean isSupportedJobManagerAvailable()
           
 java.lang.String queueAllocationRequest(AllocationInfo alloc)
           
protected  java.lang.String writeSubmitFile(AllocationInfo alloc)
           
 
Methods inherited from class org.gwe.drivers.resManagers.ResourceManagerDriver
allocateComputeResource, checkAllocation, getAllocWorkspace, getId, killAllocation, runQueueCommand, setConfiguration, setId, writeAllocationFile
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

discoveryCommand

protected java.lang.String discoveryCommand

submissionCommand

protected java.lang.String submissionCommand

template

protected java.lang.String template
Constructor Detail

CommandLineResourceManagerDriver

public CommandLineResourceManagerDriver(java.lang.String discoveryCommand,
                                        java.lang.String submissionCommand,
                                        java.lang.String submissionTemplateFile)
Method Detail

isSupportedJobManagerAvailable

public boolean isSupportedJobManagerAvailable()
Specified by:
isSupportedJobManagerAvailable in class ResourceManagerDriver

queueAllocationRequest

public java.lang.String queueAllocationRequest(AllocationInfo alloc)
                                        throws ResourceAllocationException
Specified by:
queueAllocationRequest in class ResourceManagerDriver
Throws:
ResourceAllocationException

extractIdFromSubmissionOutput

protected abstract java.lang.String extractIdFromSubmissionOutput(java.lang.String[] results)

writeSubmitFile

protected java.lang.String writeSubmitFile(AllocationInfo alloc)
                                    throws ResourceAllocationException
Throws:
ResourceAllocationException

getSubmitContent

protected final java.lang.String getSubmitContent(AllocationInfo alloc)


Copyright © 2007-2009. All Rights Reserved.