org.globus.gatekeeper.jobmanager
Class JobManagerService

java.lang.Object
  extended by org.globus.gatekeeper.jobmanager.JobManagerService
All Implemented Interfaces:
Service
Direct Known Subclasses:
ForkJobManagerService, ShellJobManagerService

public class JobManagerService
extends Object
implements Service


Field Summary
protected  GSSCredential _credentials
           
protected  String _handle
           
protected  JobManagerServer _jmServer
           
protected  AbstractJobManager _jobManager
           
protected  org.apache.log4j.Logger _logger
           
protected  JobManagerProtocol _protocol
           
 
Constructor Summary
JobManagerService(AbstractJobManager jobManager)
           
 
Method Summary
 void cancel()
           
 int getFailureCode()
           
 String getHandle()
          Retrieves a handle to this service.
 String getRequestFailMessage(Exception e)
           
 String getRequestSuccessMessage()
           
 int getStatus()
           
 void register(String url, int statusMask)
           
 void request(ServiceRequest request)
          Invokes the service with given request.
 void setArguments(String[] args)
           
 void setCredentials(GSSCredential credentials)
          Sets the credentials for the service.
 void shutdown()
           
 void signal(int signal, String args)
           
 void unregister(String url)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_jmServer

protected JobManagerServer _jmServer

_protocol

protected JobManagerProtocol _protocol

_jobManager

protected AbstractJobManager _jobManager

_handle

protected String _handle

_credentials

protected GSSCredential _credentials

_logger

protected org.apache.log4j.Logger _logger
Constructor Detail

JobManagerService

public JobManagerService(AbstractJobManager jobManager)
Method Detail

getRequestSuccessMessage

public String getRequestSuccessMessage()
Specified by:
getRequestSuccessMessage in interface Service

getRequestFailMessage

public String getRequestFailMessage(Exception e)
Specified by:
getRequestFailMessage in interface Service

setCredentials

public void setCredentials(GSSCredential credentials)
Description copied from interface: Service
Sets the credentials for the service.

Specified by:
setCredentials in interface Service

getHandle

public String getHandle()
Description copied from interface: Service
Retrieves a handle to this service.

Specified by:
getHandle in interface Service

setArguments

public void setArguments(String[] args)
                  throws ServiceException
Specified by:
setArguments in interface Service
Throws:
ServiceException

request

public void request(ServiceRequest request)
             throws ServiceException
Description copied from interface: Service
Invokes the service with given request.

Specified by:
request in interface Service
Throws:
ServiceException

cancel

public void cancel()
            throws JobManagerException
Throws:
JobManagerException

signal

public void signal(int signal,
                   String args)
            throws JobManagerException
Throws:
JobManagerException

getStatus

public int getStatus()

getFailureCode

public int getFailureCode()

register

public void register(String url,
                     int statusMask)
              throws JobManagerException
Throws:
JobManagerException

unregister

public void unregister(String url)
                throws JobManagerException
Throws:
JobManagerException

shutdown

public void shutdown()