public 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 and 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 and 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, wrapSocket
public CallbackHandler() throws IOException
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 assignedIOException
public void registerJob(GramJob job)
job
- gram jobpublic void unregisterJob(GramJob job)
job
- gram jobpublic int getRegisteredJobsSize()
public String getURL()
BaseServer
getURL
in class BaseServer
protected void handleConnection(Socket socket)
BaseServer
handleConnection
in class BaseServer
Copyright © 2016. All rights reserved.