org.globus.gatekeeper.jobmanager
Interface JobManager

All Known Implementing Classes:
AbstractJobManager, ForkJobManager, ShellJobManager

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

void setCredentials(GSSCredential credentials)

getCredentials

GSSCredential getCredentials()

getID

String getID()

setID

void setID(String id)

getSymbolTable

Properties getSymbolTable()

request

void request(String rsl)
             throws JobManagerException
Throws:
JobManagerException

getStatus

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

Returns:
the current status value

getFailureCode

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

Returns:
the current failure code

cancel

void cancel()
            throws JobManagerException
Cancels the job.

Throws:
JobManagerException

signal

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

Throws:
JobManagerException

addJobStatusListener

void addJobStatusListener(JobStatusListener listener)
                          throws JobManagerException
Throws:
JobManagerException

removeJobStatusListener

void removeJobStatusListener(JobStatusListener listenter)
                             throws JobManagerException
Throws:
JobManagerException

removeJobStatusListenerByID

void removeJobStatusListenerByID(String id)
                                 throws JobManagerException
Throws:
JobManagerException