com.friendshipsystems.fsshresourcemanager
Class FJob

java.lang.Object
  extended by com.friendshipsystems.fsshresourcemanager.utils.FDBObject
      extended by com.friendshipsystems.fsshresourcemanager.FJob
All Implemented Interfaces:
com.jcraft.jsch.UserInfo

public class FJob
extends com.friendshipsystems.fsshresourcemanager.utils.FDBObject
implements com.jcraft.jsch.UserInfo

This class represents an external process that should be started on a remote machine using ssh. It includes an arbitrary number of FTasks, but only can be a FProcessTask at the moment (should be changed later on).

Author:
FRIENDSHIP SYSTEMS

Method Summary
 FApplicationInfo getAppInfo()
           
 FSshConnectionError getConnectionError()
           
 java.lang.String getDesignName()
           
 int getExitStatus()
           
 java.util.Date getFinishTime()
           
 java.lang.String getFrameworkAddress()
           
 int getId()
           
 java.lang.String getJobId()
           
 java.lang.String getOwner()
           
 java.lang.String getPassphrase()
           
 java.lang.String getPassword()
           
 java.lang.String getProjectName()
           
 java.util.Date getStartTime()
           
 java.lang.String getSubmitter()
           
 java.util.Date getSubmitTime()
           
 boolean hadConnectionError()
           
 boolean needsAuth()
           
 boolean promptPassphrase(java.lang.String arg0)
           
 boolean promptPassword(java.lang.String arg0)
           
 boolean promptYesNo(java.lang.String arg0)
           
 void showMessage(java.lang.String arg0)
           
 java.util.Map<java.lang.String,java.lang.Object> toMap()
           
 
Methods inherited from class com.friendshipsystems.fsshresourcemanager.utils.FDBObject
delete, save, update
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getJobId

public java.lang.String getJobId()

getPassphrase

public java.lang.String getPassphrase()
Specified by:
getPassphrase in interface com.jcraft.jsch.UserInfo

getPassword

public java.lang.String getPassword()
Specified by:
getPassword in interface com.jcraft.jsch.UserInfo
Returns:
the password

promptPassphrase

public boolean promptPassphrase(java.lang.String arg0)
Specified by:
promptPassphrase in interface com.jcraft.jsch.UserInfo

promptPassword

public boolean promptPassword(java.lang.String arg0)
Specified by:
promptPassword in interface com.jcraft.jsch.UserInfo

promptYesNo

public boolean promptYesNo(java.lang.String arg0)
Specified by:
promptYesNo in interface com.jcraft.jsch.UserInfo

needsAuth

public boolean needsAuth()

showMessage

public void showMessage(java.lang.String arg0)
Specified by:
showMessage in interface com.jcraft.jsch.UserInfo

toMap

public java.util.Map<java.lang.String,java.lang.Object> toMap()
Specified by:
toMap in class com.friendshipsystems.fsshresourcemanager.utils.FDBObject

getId

public int getId()
Returns:
the id

getAppInfo

public FApplicationInfo getAppInfo()
Returns:
the executionHost

getOwner

public java.lang.String getOwner()
Returns:
The name of the user that submitted this job.

getSubmitTime

public java.util.Date getSubmitTime()
Returns:
The time this job was received by the SshResourceManager i.e. submitted by the FRIENDSHIP-Framework (+ transport time of course)

getSubmitter

public java.lang.String getSubmitter()
Returns:
the submitter

getExitStatus

public int getExitStatus()

getStartTime

public java.util.Date getStartTime()
Returns:
the startTime

getFinishTime

public java.util.Date getFinishTime()
Returns:
the finishTime

getFrameworkAddress

public java.lang.String getFrameworkAddress()

getDesignName

public java.lang.String getDesignName()
Returns:
the designName

getProjectName

public java.lang.String getProjectName()
Returns:
the projectName

getConnectionError

public FSshConnectionError getConnectionError()
Returns:
the connError

hadConnectionError

public boolean hadConnectionError()