org.globus.gatekeeper.jobmanager
Interface JobManager

All Known Implementing Classes:
AbstractJobManager

public interface JobManager

JobManager interface provides the common methods that is used by all extensions of JobManager


Method Summary
 void addJobStatusListener(JobStatusListener listener)
           
 void cancel()
          Cancels the job.
 GSSCredential getCredentials()
           
 int getFailureCode()
          Retrieves the failure code of the running process.
 String getID()
           
 int getStatus()
          Retrieves the current state of the process.
 Properties getSymbolTable()
           
 void removeJobStatusListener(JobStatusListener listenter)
           
 void removeJobStatusListenerByID(String id)
           
 void request(String rsl)
           
 void setCredentials(GSSCredential credentials)
           
 void setID(String id)
           
 void signal(int signal, String argument)
          Sends a signal to the JobManager.
 

Method Detail

setCredentials

public void setCredentials(GSSCredential credentials)

getCredentials

public GSSCredential getCredentials()

getID

public String getID()

setID

public void setID(String id)

getSymbolTable

public Properties getSymbolTable()

request

public void request(String rsl)
             throws JobManagerException
Throws:
JobManagerException

getStatus

public int getStatus()
Retrieves the current state of the process.

Returns:
the current status value

getFailureCode

public int getFailureCode()
Retrieves the failure code of the running process. By default it is equal to zero

Returns:
the current failure code

cancel

public void cancel()
            throws JobManagerException
Cancels the job.

Throws:
JobManagerException

signal

public void signal(int signal,
                   String argument)
            throws JobManagerException
Sends a signal to the JobManager.

Throws:
JobManagerException

addJobStatusListener

public void addJobStatusListener(JobStatusListener listener)
                          throws JobManagerException
Throws:
JobManagerException

removeJobStatusListener

public void removeJobStatusListener(JobStatusListener listenter)
                             throws JobManagerException
Throws:
JobManagerException

removeJobStatusListenerByID

public void removeJobStatusListenerByID(String id)
                                 throws JobManagerException
Throws:
JobManagerException