|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.globus.net.BaseServer
org.globus.gram.CallbackHandler
The Server
class acts as a basic multi-threaded HTTPS
server.
Field Summary |
Fields inherited from class org.globus.net.BaseServer |
_server, accept, authorization, credentials, deactivator, gssMode, SO_TIMEOUT, timeout, url |
Constructor Summary | |
CallbackHandler()
Construct a GRAM callback handler with default user credentials. |
|
CallbackHandler(GSSCredential cred,
int port)
Construct a GRAM callback handler with specifed credentials and given port. |
Method Summary | |
protected GramJob |
getJob(String url)
|
int |
getRegisteredJobsSize()
Returns number of registered jobs |
String |
getURL()
Returns url of this server |
protected void |
handleConnection(Socket socket)
This method needs to be implemented by subclasses. |
void |
registerJob(GramJob job)
Registers gram job to listen for status updates |
void |
unregisterJob(GramJob job)
Unregisters gram job from listening to status updates |
Methods inherited from class org.globus.net.BaseServer |
getCredentials, getHost, getHostname, getPort, getProtocol, getTimeout, 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 |
Constructor Detail |
public CallbackHandler() throws IOException
public CallbackHandler(GSSCredential cred, int port) throws IOException
cred
- credentials to use. if null default
user credentials will be usedport
- server port to listen on. if set to 0
the port will be dynamically assignedMethod Detail |
public void registerJob(GramJob job)
job
- gram jobpublic void unregisterJob(GramJob job)
job
- gram jobprotected GramJob getJob(String url)
public int getRegisteredJobsSize()
public String getURL()
BaseServer
getURL
in class BaseServer
protected void handleConnection(Socket socket)
BaseServer
handleConnection
in class BaseServer
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |