|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.globus.net.BaseServer
org.globus.gatekeeper.jobmanager.internal.JobManagerServer
public class JobManagerServer
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 |
---|
protected JobManagerService _jobmanager
Constructor Detail |
---|
public JobManagerServer() throws IOException
IOException
public JobManagerServer(GSSCredential cred) throws IOException
cred
- the credentials used by this server to authenticate itself with
clients
IOException
public JobManagerServer(GSSCredential cred, int port) throws IOException
cred
- the credentials used by this server to authenticate itself with
clientsport
-
IOException
Method Detail |
---|
public void setJobManager(JobManagerService jm)
jm
- the jobmanager that will be used to request information or
invoke actionspublic void setCredentials(GSSCredential cred)
cred
- the credentials which will be used by this Server must be
the same as the JobManagerprotected void handleConnection(Socket socket)
handleConnection
in class BaseServer
socket
- a connected socket to the client
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |