org.gwe.drivers.resManagers
Class ResourceManagerDriver
java.lang.Object
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
id
protected java.lang.String id
agentScriptPreffix
protected java.lang.String agentScriptPreffix
configuration
protected DaemonConfigDesc configuration
ResourceManagerDriver
public ResourceManagerDriver()
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.