Java Globus API: Class JobManagerServer

org.globus.gatekeeper.jobmanager.internal
Class JobManagerServer

java.lang.Object
  |
  +--org.globus.net.BaseServer
        |
        +--org.globus.gatekeeper.jobmanager.internal.JobManagerServer
All Implemented Interfaces:
java.lang.Runnable

public class JobManagerServer
extends BaseServer

JobManagerServer extends the BaseServer abstract class to run as a server listening for clients who will request information from the JobManager or invoke actions for the JobManager.


Field Summary
protected  JobManagerService _jobmanager
           
 
Fields inherited from class org.globus.net.BaseServer
_server, accept, authorization, credentials, deactivator, SO_TIMEOUT
 
Constructor Summary
JobManagerServer()
          initializes and starts the JobManagerServer with default credentials
JobManagerServer(GlobusProxy proxy)
          initializes and starts the JobManagerServer
JobManagerServer(GlobusProxy proxy, int port)
          initializes and starts the JobManagerServer
 
Method Summary
protected  void handleConnection(java.net.Socket socket)
          Method called after a connection has been established between the client and the server.
 void setCredentials(GlobusProxy proxy)
          Sets the corresponding credentials for the server in order to verify that it is serving the specific JobManager (proof of identity).
 void setJobManager(JobManagerService jm)
          sets the JobManager which will be used by this server
 
Methods inherited from class org.globus.net.BaseServer
getCredentials, getHostname, getPort, getProtocol, getURL, initialize, registerDefaultDeactivator, run, setAuthorization, shutdown, start, unregisterDefaultDeactivator
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_jobmanager

protected JobManagerService _jobmanager
Constructor Detail

JobManagerServer

public JobManagerServer()
                 throws GlobusProxyException,
                        java.io.IOException
initializes and starts the JobManagerServer with default credentials

JobManagerServer

public JobManagerServer(GlobusProxy proxy)
                 throws GlobusProxyException,
                        java.io.IOException
initializes and starts the JobManagerServer
Parameters:
proxy - the credentials used by this server to authenticate itself with clients

JobManagerServer

public JobManagerServer(GlobusProxy proxy,
                        int port)
                 throws GlobusProxyException,
                        java.io.IOException
initializes and starts the JobManagerServer
Parameters:
proxy - the credentials used by this server to authenticate itself with clients
port -  
Method Detail

setJobManager

public void setJobManager(JobManagerService jm)
sets the JobManager which will be used by this server
Parameters:
jm - the jobmanager that will be used to request information or invoke actions

setCredentials

public void setCredentials(GlobusProxy proxy)
Sets the corresponding credentials for the server in order to verify that it is serving the specific JobManager (proof of identity).
Parameters:
proxy - the credentials which will be used by this Server must be the same as the JobManager

handleConnection

protected void handleConnection(java.net.Socket socket)
Method called after a connection has been established between the client and the server. Handles the client request.
Overrides:
handleConnection in class BaseServer
Parameters:
socket - a connected socket to the client