org.globus.gatekeeper.jobmanager.internal
Class JobManagerServer

java.lang.Object
  extended byorg.globus.net.BaseServer
      extended byorg.globus.gatekeeper.jobmanager.internal.JobManagerServer
All Implemented Interfaces:
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, gssMode, SO_TIMEOUT, timeout, url
 
Constructor Summary
JobManagerServer()
          initializes and starts the JobManagerServer with default credentials
JobManagerServer(GSSCredential cred)
          initializes and starts the JobManagerServer
JobManagerServer(GSSCredential cred, int port)
          initializes and starts the JobManagerServer
 
Method Summary
protected  void handleConnection(Socket socket)
          Method called after a connection has been established between the client and the server.
 void setCredentials(GSSCredential cred)
          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, getHost, getHostname, getPort, getProtocol, getTimeout, getURL, initialize, registerDefaultDeactivator, run, setAuthorization, setGssMode, setTimeout, shutdown, start, unregisterDefaultDeactivator, wrapSocket
 
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 IOException
initializes and starts the JobManagerServer with default credentials


JobManagerServer

public JobManagerServer(GSSCredential cred)
                 throws IOException
initializes and starts the JobManagerServer

Parameters:
cred - the credentials used by this server to authenticate itself with clients

JobManagerServer

public JobManagerServer(GSSCredential cred,
                        int port)
                 throws IOException
initializes and starts the JobManagerServer

Parameters:
cred - 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(GSSCredential cred)
Sets the corresponding credentials for the server in order to verify that it is serving the specific JobManager (proof of identity).

Parameters:
cred - the credentials which will be used by this Server must be the same as the JobManager

handleConnection

protected void handleConnection(Socket socket)
Method called after a connection has been established between the client and the server. Handles the client request.

Specified by:
handleConnection in class BaseServer
Parameters:
socket - a connected socket to the client