|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.icenigrid.gridsam.core.plugin.connector.common.AbstractDRMConnectorManager
org.icenigrid.gridsam.core.plugin.connector.condor.ShellBasedCondorDRMConnectorManager
DRMConnectorManager implementation for the shell-based condor integration
Constructor Summary | |
ShellBasedCondorDRMConnectorManager()
default constructor |
Method Summary | |
void |
addCondorEventListener(CondorEventListener pListener)
add a CondorEventListener |
List |
getCondorEventListeners()
get the condor event listeners |
String |
getCondorLogFile()
get the condor log file |
String |
getCondorRmCommand()
get the condor_rm command |
DRMConnector |
getDRMConnector()
return a DRMConnector instance based on the configuration |
Shell |
getShell()
get the shell to use to for launching job |
String |
getTailCommand()
get the condor log file |
boolean |
hasShell()
test if a shell has been associated with this stage |
void |
initialise(JobManagerContext pContext)
called by the Job Manager to initialise this DRMConnectorBuilder |
void |
registryDidShutdown()
handle shutdown |
void |
removeCondorEventListener(CondorEventListener pListener)
remove a condor event listener |
void |
setCondorLogFile(String pFile)
set condor log file location |
void |
setCondorRmCommand(String pFile)
set the condor_rm command |
void |
setShell(Shell pShell)
set the shell to use |
void |
setTailCommand(String pFile)
set condor log file location |
void |
terminate(JobContext pJobContext)
called by the Job Manager to terminate the job previously handled by this DRMConnectorManager |
Methods inherited from class org.icenigrid.gridsam.core.plugin.connector.common.AbstractDRMConnectorManager |
getJobManagerContext |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ShellBasedCondorDRMConnectorManager()
Method Detail |
public void terminate(JobContext pJobContext) throws ControlException
terminate
in interface DRMConnectorManager
terminate
in class AbstractDRMConnectorManager
pJobContext
- the job
ControlException
- the job cannot be terminatedpublic void setCondorLogFile(String pFile)
pFile
- the log filepublic String getCondorLogFile()
public void setTailCommand(String pFile)
pFile
- the log filepublic String getTailCommand()
public void setCondorRmCommand(String pFile)
pFile
- the log filepublic String getCondorRmCommand()
public void setShell(Shell pShell)
pShell
- the shell for launching jobpublic Shell getShell()
public boolean hasShell()
public void addCondorEventListener(CondorEventListener pListener)
pListener
- the listenerpublic void removeCondorEventListener(CondorEventListener pListener)
pListener
- the listener to be removedpublic List getCondorEventListeners()
public void initialise(JobManagerContext pContext) throws ConfigurationException
initialise
in interface DRMConnectorManager
initialise
in class AbstractDRMConnectorManager
pContext
- object for the DRMConnectorBuilder to interact with the Job Manager
ConfigurationException
- to indicate the context contains missing configuration information for this builder to functionpublic void registryDidShutdown()
registryDidShutdown
in interface RegistryShutdownListener
public DRMConnector getDRMConnector() throws ConfigurationException
getDRMConnector
in interface DRMConnectorManager
ConfigurationException
- if the instance cannot be built
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |