class WebHubConnection extends XmlRpcHubConnection
Modifier and Type | Class and Description |
---|---|
private static class |
WebHubConnection.CallWorker
Thread that performs repeated long polls to pull callbacks from the
hub and passes them on to this connection's CallableClient for
execution.
|
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
appName_ |
private WebHubConnection.CallWorker |
callWorker_ |
private java.lang.String |
clientKey_ |
private static java.util.logging.Logger |
logger_ |
Constructor and Description |
---|
WebHubConnection(SampXmlRpcClient xClient,
java.util.Map securityMap)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
getClientKey()
Returns an object which is used as the first argument of most
XML-RPC calls to the hub.
|
void |
setCallable(CallableClient client)
Tells the hub how it can perform callbacks on the client by providing
a CallableClient object.
|
call, callAll, callAndWait, declareMetadata, declareSubscriptions, exec, finalize, getMetadata, getRegInfo, getRegisteredClients, getSubscribedClients, getSubscriptions, notify, notifyAll, ping, rawExec, reply, unregister
private final java.lang.String appName_
private final java.lang.String clientKey_
private WebHubConnection.CallWorker callWorker_
private static java.util.logging.Logger logger_
public WebHubConnection(SampXmlRpcClient xClient, java.util.Map securityMap) throws SampException
xClient
- XML-RPC clientsecurityMap
- security information mapappName
- client's declared nameSampException
public java.lang.Object getClientKey()
XmlRpcHubConnection
getClientKey
in class XmlRpcHubConnection
public void setCallable(CallableClient client) throws SampException
HubConnection
client
- callable clientSampException