Runnablepublic class CallbackHandler extends BaseServer
Server class acts as a basic multi-threaded HTTPS
server._server, accept, authorization, credentials, deactivator, gssMode, SO_TIMEOUT, timeout, url| Constructor | Description |
|---|---|
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.
|
| Modifier and Type | Method | Description |
|---|---|---|
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
|
getCredentials, getHost, getHostname, getPort, getProtocol, getTimeout, initialize, registerDefaultDeactivator, run, setAuthorization, setGssMode, setTimeout, shutdown, start, unregisterDefaultDeactivator, wrapSocketpublic CallbackHandler()
throws IOException
IOExceptionpublic 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 assignedIOExceptionpublic void registerJob(GramJob job)
job - gram jobpublic void unregisterJob(GramJob job)
job - gram jobpublic int getRegisteredJobsSize()
public String getURL()
BaseServergetURL in class BaseServerprotected void handleConnection(Socket socket)
BaseServerhandleConnection in class BaseServerCopyright © 2018. All rights reserved.