org.gwe.drivers.resManagers
Class ResourceManagerDriver

java.lang.Object
  extended by org.gwe.drivers.resManagers.ResourceManagerDriver
Direct Known Subclasses:
CommandLineResourceManagerDriver, GWEResourceManagerDriver, MultiThreadsDriver

public abstract class ResourceManagerDriver
extends java.lang.Object

Since:
Aug 8, 2007
Author:
Marco Ruiz

Field Summary
protected  java.lang.String agentScriptPreffix
           
protected  DaemonConfigDesc configuration
           
protected  java.lang.String id
           
 
Constructor Summary
ResourceManagerDriver()
           
 
Method Summary
 void allocateComputeResource(AllocationInfo alloc)
           
abstract  AllocationPhase checkAllocation(AllocationInfo alloc)
           
 java.lang.String getAllocWorkspace(AllocationInfo alloc)
           
 java.lang.String getId()
           
abstract  boolean isSupportedJobManagerAvailable()
           
abstract  AllocationPhase killAllocation(AllocationInfo alloc)
           
abstract  java.lang.String queueAllocationRequest(AllocationInfo alloc)
           
protected  java.lang.String[] runQueueCommand(java.lang.String cmd, AllocationInfo alloc)
           
 void setConfiguration(DaemonConfigDesc config)
           
 void setId(java.lang.String id)
           
protected  java.lang.String writeAllocationFile(java.lang.String fileName, java.lang.String content, AllocationInfo alloc)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

id

protected java.lang.String id

agentScriptPreffix

protected java.lang.String agentScriptPreffix

configuration

protected DaemonConfigDesc configuration
Constructor Detail

ResourceManagerDriver

public ResourceManagerDriver()
Method Detail

isSupportedJobManagerAvailable

public abstract boolean isSupportedJobManagerAvailable()

getId

public java.lang.String getId()

setId

public void setId(java.lang.String id)

setConfiguration

public void setConfiguration(DaemonConfigDesc config)

getAllocWorkspace

public java.lang.String getAllocWorkspace(AllocationInfo alloc)

allocateComputeResource

public final void allocateComputeResource(AllocationInfo alloc)
                                   throws ResourceAllocationException
Throws:
ResourceAllocationException

runQueueCommand

protected java.lang.String[] runQueueCommand(java.lang.String cmd,
                                             AllocationInfo alloc)
                                      throws ResourceAllocationException
Throws:
ResourceAllocationException

queueAllocationRequest

public abstract java.lang.String queueAllocationRequest(AllocationInfo alloc)
                                                 throws ResourceAllocationException
Throws:
ResourceAllocationException

writeAllocationFile

protected java.lang.String writeAllocationFile(java.lang.String fileName,
                                               java.lang.String content,
                                               AllocationInfo alloc)
                                        throws ResourceAllocationException
Throws:
ResourceAllocationException

killAllocation

public abstract AllocationPhase killAllocation(AllocationInfo alloc)
                                        throws ResourceAllocationException
Throws:
ResourceAllocationException

checkAllocation

public abstract AllocationPhase checkAllocation(AllocationInfo alloc)
                                         throws ResourceAllocationException
Throws:
ResourceAllocationException


Copyright © 2007-2009. All Rights Reserved.