Package | Description |
---|---|
org.astrogrid.samp.bridge |
Classes for the SAMP Bridge.
|
org.astrogrid.samp.client |
Classes required only for SAMP clients.
|
org.astrogrid.samp.gui |
Classes required only for graphical components based on SAMP classes.
|
org.astrogrid.samp.hub |
Classes required only for running a SAMP hub.
|
org.astrogrid.samp.test |
Classes for testing.
|
org.astrogrid.samp.web |
Classes relating to the SAMP Web Profile.
|
org.astrogrid.samp.xmlrpc |
Classes relating to Standard Profile and XML-RPC pluggable implementation layer.
|
Modifier and Type | Method and Description |
---|---|
void |
ProxyManager.ProxyCallableClient.receiveCall(java.lang.String remoteSenderId,
java.lang.String remoteMsgId,
Message msg) |
void |
ProxyManager.ProxyCallableClient.receiveNotification(java.lang.String remoteSenderId,
Message msg) |
void |
ProxyManager.ProxyCallableClient.receiveResponse(java.lang.String remoteResponderId,
java.lang.String remoteMsgTag,
Response response) |
Modifier and Type | Method and Description |
---|---|
void |
HubConnector.call(java.lang.String recipientId,
java.util.Map msg,
ResultHandler resultHandler,
int timeout)
Sends a message asynchronously to a single client, making a callback
on a supplied ResultHandler object when the result arrives.
|
java.lang.String |
HubConnection.call(java.lang.String recipientId,
java.lang.String msgTag,
java.util.Map msg)
Sends a message to a given client expecting a response.
|
void |
HubConnector.callAll(java.util.Map msg,
ResultHandler resultHandler,
int timeout)
Sends a message asynchronously to all subscribed clients,
making callbacks on a supplied ResultHandler object when the
results arrive.
|
java.util.Map |
HubConnection.callAll(java.lang.String msgTag,
java.util.Map msg)
Sends a message to all subscribed clients expecting responses.
|
Response |
HubConnector.callAndWait(java.lang.String recipientId,
java.util.Map msg,
int timeout)
Sends a message synchronously to a client, waiting for the response.
|
Response |
HubConnection.callAndWait(java.lang.String recipientId,
java.util.Map msg,
int timeout)
Sends a message synchronously to a client, waiting for the response.
|
void |
HubConnector.configureConnection(HubConnection connection)
Configures a connection with a hub in accordance with the state of
this object.
|
protected HubConnection |
HubConnector.createConnection()
Invoked by this class to create a hub connection.
|
void |
HubConnection.declareMetadata(java.util.Map meta)
Declares this registered client's metadata.
|
void |
HubConnection.declareSubscriptions(java.util.Map subs)
Declares this registered client's MType subscriptions.
|
HubConnection |
HubConnector.getConnection()
If necessary attempts to acquire, and returns, a connection to a
running hub.
|
Metadata |
HubConnection.getMetadata(java.lang.String clientId)
Returns the metadata for another registered client.
|
java.lang.String[] |
HubConnection.getRegisteredClients()
Returns the list of client public IDs for those clients currently
registered.
|
java.util.Map |
HubConnection.getSubscribedClients(java.lang.String mtype)
Returns a map of subscriptions for a given MType.
|
Subscriptions |
HubConnection.getSubscriptions(java.lang.String clientId)
Returns the subscriptions for another registered client.
|
void |
ClientTracker.initialise(HubConnection connection)
Initialises this tracker from a hub connection.
|
void |
HubConnection.notify(java.lang.String recipientId,
java.util.Map msg)
Sends a message to a given client without wanting a response.
|
java.util.List |
HubConnection.notifyAll(java.util.Map msg)
Sends a message to all subscribed clients without wanting a response.
|
void |
HubConnection.ping()
Tests whether the connection is currently open.
|
void |
AbstractMessageHandler.receiveCall(HubConnection connection,
java.lang.String senderId,
java.lang.String msgId,
Message message)
Calls
AbstractMessageHandler.processCall(org.astrogrid.samp.client.HubConnection, java.lang.String, org.astrogrid.samp.Message) , generates a response from the result
using AbstractMessageHandler.createResponse(java.util.Map) , and sends the resulting response
as a reply to the hub. |
HubConnection |
ClientProfile.register()
Attempts to register with a SAMP hub and return a corresponding
connection object.
|
void |
HubConnection.reply(java.lang.String msgId,
java.util.Map response)
Supplies a response to a previously received message.
|
void |
HubConnection.setCallable(CallableClient callable)
Tells the hub how it can perform callbacks on the client by providing
a CallableClient object.
|
void |
HubConnection.unregister()
Unregisters the client and terminates this connection.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
WrapperHubConnection.call(java.lang.String recipientId,
java.lang.String msgTag,
java.util.Map msg) |
java.lang.String |
MessageTrackerHubConnector.MessageTrackerHubConnection.call(java.lang.String recipientId,
java.lang.String msgTag,
java.util.Map msg) |
java.util.Map |
WrapperHubConnection.callAll(java.lang.String msgTag,
java.util.Map msg) |
java.util.Map |
MessageTrackerHubConnector.MessageTrackerHubConnection.callAll(java.lang.String msgTag,
java.util.Map msg) |
Response |
WrapperHubConnection.callAndWait(java.lang.String recipientId,
java.util.Map msg,
int timeout) |
Response |
MessageTrackerHubConnector.MessageTrackerHubConnection.callAndWait(java.lang.String recipientId,
java.util.Map msg,
int timeout) |
protected HubConnection |
MessageTrackerHubConnector.createConnection() |
protected void |
GuiHubService.declareMetadata(HubClient caller,
java.util.Map meta) |
void |
WrapperHubConnection.declareMetadata(java.util.Map meta) |
protected void |
GuiHubService.declareSubscriptions(HubClient caller,
java.util.Map subscriptions) |
void |
WrapperHubConnection.declareSubscriptions(java.util.Map subs) |
Metadata |
WrapperHubConnection.getMetadata(java.lang.String clientId) |
java.lang.String[] |
WrapperHubConnection.getRegisteredClients() |
java.util.Map |
WrapperHubConnection.getSubscribedClients(java.lang.String mtype) |
Subscriptions |
WrapperHubConnection.getSubscriptions(java.lang.String clientId) |
void |
WrapperHubConnection.notify(java.lang.String recipientId,
java.util.Map msg) |
void |
MessageTrackerHubConnector.MessageTrackerHubConnection.notify(java.lang.String recipientId,
java.util.Map msg) |
java.util.List |
WrapperHubConnection.notifyAll(java.util.Map msg) |
java.util.List |
MessageTrackerHubConnector.MessageTrackerHubConnection.notifyAll(java.util.Map msg) |
void |
WrapperHubConnection.ping() |
void |
MessageTrackerHubService.MessageTrackerCallableClient.receiveCall(java.lang.String senderId,
java.lang.String msgId,
Message msg) |
void |
MessageTrackerHubService.MessageTrackerCallableClient.receiveNotification(java.lang.String senderId,
Message msg) |
protected void |
MessageTrackerHubService.reply(HubClient caller,
java.lang.String msgId,
java.util.Map response) |
void |
WrapperHubConnection.reply(java.lang.String msgId,
java.util.Map response) |
void |
MessageTrackerHubConnector.MessageTrackerHubConnection.reply(java.lang.String msgId,
java.util.Map response) |
protected abstract void |
SampThread.sampRun()
Called from the
SampThread.run() method. |
void |
WrapperHubConnection.setCallable(CallableClient callable) |
void |
MessageTrackerHubConnector.MessageTrackerHubConnection.setCallable(CallableClient callable) |
void |
WrapperHubConnection.unregister() |
Modifier and Type | Method and Description |
---|---|
protected java.lang.String |
BasicHubService.call(HubClient caller,
java.lang.String recipientId,
java.lang.String msgTag,
java.util.Map message)
Does the work for the
call method of connections
registered with this service. |
java.lang.String |
WrapperHubConnection.call(java.lang.String recipientId,
java.lang.String msgTag,
java.util.Map msg) |
protected java.util.Map |
BasicHubService.callAll(HubClient caller,
java.lang.String msgTag,
java.util.Map message)
Does the work for the
call method of connections
registered with this service. |
java.util.Map |
WrapperHubConnection.callAll(java.lang.String msgTag,
java.util.Map msg) |
protected Response |
BasicHubService.callAndWait(HubClient caller,
java.lang.String recipientId,
java.util.Map message,
int timeout)
Does the work for the
callAndWait method of connections
registered with this service. |
Response |
WrapperHubConnection.callAndWait(java.lang.String recipientId,
java.util.Map msg,
int timeout) |
private void |
BasicHubService.checkSend(HubClient sender,
HubClient recipient,
java.lang.String mtype)
Checks if a given send is permitted.
|
protected void |
BasicHubService.declareMetadata(HubClient caller,
java.util.Map meta)
Does the work for the
declareMetadata method of connections
registered with this service. |
void |
WrapperHubConnection.declareMetadata(java.util.Map meta) |
protected void |
BasicHubService.declareSubscriptions(HubClient caller,
java.util.Map subscriptions)
Does the work for the
declareSubscriptions method of
connections registered with this service. |
void |
WrapperHubConnection.declareSubscriptions(java.util.Map subs) |
void |
FacadeHubService.FacadeHubConnection.declareSubscriptions(java.util.Map subs) |
static BasicHubService.MessageId |
BasicHubService.MessageId.decode(java.lang.String msgId)
Decodes a msgId string to return the corresponding MessageId object.
|
private HubClient |
BasicHubService.getClient(java.lang.String id)
Returns the client object corresponding to a public client ID.
|
private AbstractMessageHandler |
HubCallableClient.getHandler(java.lang.String mtype)
Returns a handler owned by this callable client which can handle
a given MType.
|
protected Metadata |
BasicHubService.getMetadata(HubClient caller,
java.lang.String clientId)
Does the work for the
getMetadata method of connections
registered with this service. |
Metadata |
WrapperHubConnection.getMetadata(java.lang.String clientId) |
java.lang.String[] |
WrapperHubConnection.getRegisteredClients() |
protected java.lang.String[] |
BasicHubService.getRegisteredClients(HubClient caller)
Does the work for the
getRegisteredClients method of
connections registered with this service. |
protected java.util.Map |
BasicHubService.getSubscribedClients(HubClient caller,
java.lang.String mtype)
Does the work for the
getSubscribedClients method of
connections registered with this service. |
java.util.Map |
WrapperHubConnection.getSubscribedClients(java.lang.String mtype) |
protected Subscriptions |
BasicHubService.getSubscriptions(HubClient caller,
java.lang.String clientId)
Does the work for the
getSubscriptions method of connections
registered with this service. |
Subscriptions |
WrapperHubConnection.getSubscriptions(java.lang.String clientId) |
protected void |
BasicHubService.notify(HubClient caller,
java.lang.String recipientId,
java.util.Map message)
Does the work for the
notify method of connections
registered with this service. |
void |
WrapperHubConnection.notify(java.lang.String recipientId,
java.util.Map msg) |
protected java.util.List |
BasicHubService.notifyAll(HubClient caller,
java.util.Map message)
Does the work for the
notifyAll method of connections
registered with this service. |
java.util.List |
WrapperHubConnection.notifyAll(java.util.Map msg) |
void |
WrapperHubConnection.ping() |
void |
HubClient.NoCallableClient.receiveCall(java.lang.String senderId,
java.lang.String msgId,
Message message) |
void |
HubCallableClient.receiveCall(java.lang.String senderId,
java.lang.String msgId,
Message msg) |
void |
HubClient.NoCallableClient.receiveNotification(java.lang.String senderId,
Message message) |
void |
HubCallableClient.receiveNotification(java.lang.String senderId,
Message msg) |
void |
HubClient.NoCallableClient.receiveResponse(java.lang.String responderId,
java.lang.String msgId,
Response response) |
void |
HubCallableClient.receiveResponse(java.lang.String responderId,
java.lang.String msgTag,
Response response) |
private void |
HubClient.NoCallableClient.refuse() |
HubConnection |
FacadeHubService.register(ProfileToken profileToken) |
HubConnection |
HubService.register(ProfileToken profileToken)
Creates a new connection to this hub service, thereby initiating
a new registered client.
|
HubConnection |
BasicHubService.register(ProfileToken ptoken) |
protected void |
BasicHubService.reply(HubClient caller,
java.lang.String msgIdStr,
java.util.Map resp)
Does the work for the
reply method of connections
registered with this service. |
void |
WrapperHubConnection.reply(java.lang.String msgId,
java.util.Map response) |
void |
WrapperHubConnection.setCallable(CallableClient client) |
void |
FacadeHubService.FacadeHubConnection.setCallable(CallableClient callable) |
protected void |
BasicHubService.setCallable(HubClient caller,
CallableClient callable)
Does the work for the
setCallable method of connections
registered with this service. |
void |
WrapperHubConnection.unregister() |
protected void |
BasicHubService.unregister(HubClient caller)
Does the work for the
unregister method of conections
registered with this service. |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
ReplyCollector.call(java.lang.String recipientId,
java.lang.String msgTag,
java.util.Map msg)
Performs a
call method on this collector's hub connection. |
java.util.Map |
ReplyCollector.callAll(java.lang.String msgTag,
java.util.Map msg)
Performs a
callAll method on this collector's
hub connection. |
private static java.lang.String[] |
MessageSender.namesToIds(HubConnection conn,
java.lang.String[] names)
Translates an array of client names to client IDs.
|
void |
Calculator.receiveCall(java.lang.String senderId,
java.lang.String msgId,
Message msg) |
void |
HubTester.TestCallableClient.receiveCall(java.lang.String senderId,
java.lang.String msgId,
Message msg) |
private HubConnection |
HubTester.register()
Registers with the hub, performing various checks.
|
(package private) abstract void |
Calculator.SendMode.send(Calculator calc,
java.lang.String receiverId,
Calculator.CalcRequest request,
int iseq)
Sends a message from one calculator client to another using this
send mode.
|
void |
Calculator.sendMessage(java.lang.String receiverId,
Calculator.SendMode mode)
Sends a randomly generated message in a randomly generated way to
a given receiver.
|
Constructor and Description |
---|
Calculator(HubConnection connection,
java.util.Random random)
Constructor.
|
MetaClient(java.lang.String id,
HubConnection connection)
Constructor which attempts to acquire metadata from a given
hub connection.
|
Modifier and Type | Method and Description |
---|---|
void |
WebHubActor.allowReverseCallbacks(java.lang.String privateKey,
java.lang.String allow)
Indicates that the client will or will not be calling
WebHubActor.pullCallbacks(java.lang.String, java.lang.String) to receive callable client-type
callbacks until further notice. |
void |
WebHubXmlRpcHandler.WebHubActorImpl.allowReverseCallbacks(java.lang.String clientKey,
java.lang.String allow) |
java.lang.String |
UrlTrackerHubConnection.call(java.lang.String recipientId,
java.lang.String msgTag,
java.util.Map msg) |
java.lang.String |
WebHubActor.call(java.lang.String privateKey,
java.lang.String recipientId,
java.lang.String msgTag,
java.util.Map msg)
Sends a message to a given client expecting a response.
|
java.lang.String |
WebHubXmlRpcHandler.WebHubActorImpl.call(java.lang.String clientKey,
java.lang.String recipientId,
java.lang.String msgTag,
java.util.Map msg) |
java.util.Map |
UrlTrackerHubConnection.callAll(java.lang.String msgTag,
java.util.Map msg) |
java.util.Map |
WebHubActor.callAll(java.lang.String privateKey,
java.lang.String msgTag,
java.util.Map msg)
Sends a message to all subscribed clients expecting responses.
|
java.util.Map |
WebHubXmlRpcHandler.WebHubActorImpl.callAll(java.lang.String clientKey,
java.lang.String msgTag,
java.util.Map msg) |
Response |
UrlTrackerHubConnection.callAndWait(java.lang.String recipientId,
java.util.Map msg,
int timeout) |
java.util.Map |
WebHubActor.callAndWait(java.lang.String privateKey,
java.lang.String recipientId,
java.util.Map msg,
java.lang.String timeout)
Sends a message synchronously to a client.
|
java.util.Map |
WebHubXmlRpcHandler.WebHubActorImpl.callAndWait(java.lang.String clientKey,
java.lang.String recipientId,
java.util.Map msg,
java.lang.String timeout) |
void |
UrlTrackerHubConnection.declareMetadata(java.util.Map meta) |
void |
WebHubActor.declareMetadata(java.lang.String privateKey,
java.util.Map meta)
Declares metadata for the calling client.
|
void |
WebHubXmlRpcHandler.WebHubActorImpl.declareMetadata(java.lang.String clientKey,
java.util.Map meta) |
void |
UrlTrackerHubConnection.declareSubscriptions(java.util.Map subs) |
void |
WebHubActor.declareSubscriptions(java.lang.String privateKey,
java.util.Map subs)
Declares subscription information for the calling client.
|
void |
WebHubXmlRpcHandler.WebHubActorImpl.declareSubscriptions(java.lang.String clientKey,
java.util.Map subs) |
private HubConnection |
WebHubXmlRpcHandler.WebHubActorImpl.getConnection(java.lang.String privateKey)
Returns the connection object associated with a given private key.
|
Metadata |
UrlTrackerHubConnection.getMetadata(java.lang.String clientId) |
java.util.Map |
WebHubActor.getMetadata(java.lang.String privateKey,
java.lang.String clientId)
Returns metadata for a given client.
|
java.util.Map |
WebHubXmlRpcHandler.WebHubActorImpl.getMetadata(java.lang.String clientKey,
java.lang.String clientId) |
java.lang.String[] |
UrlTrackerHubConnection.getRegisteredClients() |
java.util.List |
WebHubActor.getRegisteredClients(java.lang.String privateKey)
Returns a list of the public-ids of all currently registered clients.
|
java.util.List |
WebHubXmlRpcHandler.WebHubActorImpl.getRegisteredClients(java.lang.String clientKey) |
private WebHubXmlRpcHandler.Registration |
WebHubXmlRpcHandler.WebHubActorImpl.getRegistration(java.lang.String privateKey)
Returns the registration object associated with a given private key.
|
java.util.Map |
UrlTrackerHubConnection.getSubscribedClients(java.lang.String mtype) |
java.util.Map |
WebHubActor.getSubscribedClients(java.lang.String privateKey,
java.lang.String mtype)
Returns a map of the clients subscribed to a given MType.
|
java.util.Map |
WebHubXmlRpcHandler.WebHubActorImpl.getSubscribedClients(java.lang.String clientKey,
java.lang.String mtype) |
Subscriptions |
UrlTrackerHubConnection.getSubscriptions(java.lang.String clientId) |
java.util.Map |
WebHubActor.getSubscriptions(java.lang.String privateKey,
java.lang.String clientId)
Returns subscriptions for a given client.
|
java.util.Map |
WebHubXmlRpcHandler.WebHubActorImpl.getSubscriptions(java.lang.String clientKey,
java.lang.String clientId) |
void |
UrlTrackerHubConnection.notify(java.lang.String recipientId,
java.util.Map msg) |
void |
WebHubActor.notify(java.lang.String privateKey,
java.lang.String recipientId,
java.util.Map msg)
Sends a message to a given client without wanting a response.
|
void |
WebHubXmlRpcHandler.WebHubActorImpl.notify(java.lang.String clientKey,
java.lang.String recipientId,
java.util.Map msg) |
java.util.List |
UrlTrackerHubConnection.notifyAll(java.util.Map msg) |
java.util.List |
WebHubActor.notifyAll(java.lang.String privateKey,
java.util.Map msg)
Sends a message to all subscribed clients without wanting a response.
|
java.util.List |
WebHubXmlRpcHandler.WebHubActorImpl.notifyAll(java.lang.String clientKey,
java.util.Map msg) |
void |
WebHubActor.ping()
Throws an exception if service is not operating.
|
void |
UrlTrackerHubConnection.ping() |
void |
WebHubActor.ping(java.lang.String privateKey)
Throws an exception if service is not operating.
|
java.util.List |
WebCallableClient.pullCallbacks(int timeout)
Blocks for up to a given number of seconds or until any callbacks
are ready, then returns any ready callbacks.
|
java.util.List |
WebHubActor.pullCallbacks(java.lang.String privateKey,
java.lang.String timeout)
Waits for up to a certain length of time for any callbacks to be
delivered.
|
java.util.List |
WebHubXmlRpcHandler.WebHubActorImpl.pullCallbacks(java.lang.String clientKey,
java.lang.String timeout) |
HubConnection |
WebClientProfile.register() |
RegInfo |
WebHubXmlRpcHandler.WebHubActorImpl.register(HttpServer.Request request,
java.util.Map securityMap)
Attempt client registration.
|
void |
UrlTrackerHubConnection.reply(java.lang.String msgId,
java.util.Map response) |
void |
WebHubActor.reply(java.lang.String privateKey,
java.lang.String msgId,
java.util.Map response)
Responds to a previously sent message.
|
void |
WebHubXmlRpcHandler.WebHubActorImpl.reply(java.lang.String clientKey,
java.lang.String msgId,
java.util.Map response) |
void |
WebHubConnection.setCallable(CallableClient client) |
void |
UrlTrackerHubConnection.setCallable(CallableClient callable) |
void |
UrlTrackerHubConnection.unregister() |
void |
WebHubActor.unregister(java.lang.String privateKey)
Unregisters a registered client.
|
void |
WebHubXmlRpcHandler.WebHubActorImpl.unregister(java.lang.String clientKey) |
Constructor and Description |
---|
WebHubConnection(SampXmlRpcClient xClient,
java.util.Map securityMap)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
private java.util.List |
XmlRpcHubConnection.asList(java.lang.Object obj)
Utility method to cast an object to a list.
|
private java.util.Map |
XmlRpcHubConnection.asMap(java.lang.Object obj)
Utility method to cast an object to a map.
|
private java.lang.String |
XmlRpcHubConnection.asString(java.lang.Object obj)
Utility method to cast an object to a string.
|
private static java.lang.Object |
XmlRpcHubConnection.asType(java.lang.Object obj,
java.lang.Class clazz,
java.lang.String name)
Utility method to cast an object to a given SAMP-like type.
|
java.lang.String |
XmlRpcHubConnection.call(java.lang.String recipientId,
java.lang.String msgTag,
java.util.Map msg) |
java.lang.String |
HubXmlRpcHandler.HubActorImpl.call(java.lang.String privateKey,
java.lang.String recipientId,
java.lang.String msgTag,
java.util.Map msg) |
java.lang.String |
HubActor.call(java.lang.String privateKey,
java.lang.String recipientId,
java.lang.String msgTag,
java.util.Map msg)
Sends a message to a given client expecting a response.
|
java.util.Map |
XmlRpcHubConnection.callAll(java.lang.String msgTag,
java.util.Map msg) |
java.util.Map |
HubXmlRpcHandler.HubActorImpl.callAll(java.lang.String privateKey,
java.lang.String msgTag,
java.util.Map msg) |
java.util.Map |
HubActor.callAll(java.lang.String privateKey,
java.lang.String msgTag,
java.util.Map msg)
Sends a message to all subscribed clients expecting responses.
|
Response |
XmlRpcHubConnection.callAndWait(java.lang.String recipientId,
java.util.Map msg,
int timeout) |
java.util.Map |
HubXmlRpcHandler.HubActorImpl.callAndWait(java.lang.String privateKey,
java.lang.String recipientId,
java.util.Map msg,
java.lang.String timeoutStr) |
java.util.Map |
HubActor.callAndWait(java.lang.String privateKey,
java.lang.String recipientId,
java.util.Map msg,
java.lang.String timeout)
Sends a message synchronously to a client.
|
void |
XmlRpcHubConnection.declareMetadata(java.util.Map meta) |
void |
HubXmlRpcHandler.HubActorImpl.declareMetadata(java.lang.String privateKey,
java.util.Map metadata) |
void |
HubActor.declareMetadata(java.lang.String privateKey,
java.util.Map meta)
Declares metadata for the calling client.
|
void |
XmlRpcHubConnection.declareSubscriptions(java.util.Map subs) |
void |
HubXmlRpcHandler.HubActorImpl.declareSubscriptions(java.lang.String privateKey,
java.util.Map subs) |
void |
HubActor.declareSubscriptions(java.lang.String privateKey,
java.util.Map subs)
Declares subscription information for the calling client.
|
java.lang.Object |
XmlRpcHubConnection.exec(java.lang.String methodName,
java.lang.Object[] params)
Makes an XML-RPC call to the SAMP hub represented by this connection.
|
private void |
XmlRpcCallableClient.exec(java.lang.String methodName,
java.lang.Object[] params)
Makes an XML-RPC call to the SAMP callable client represented
by this receiver.
|
private HubConnection |
HubXmlRpcHandler.HubActorImpl.getConnection(java.lang.String privateKey)
Returns the HubConnection associated with a private key used
by this hub actor.
|
Metadata |
XmlRpcHubConnection.getMetadata(java.lang.String clientId) |
java.util.Map |
HubXmlRpcHandler.HubActorImpl.getMetadata(java.lang.String privateKey,
java.lang.String clientId) |
java.util.Map |
HubActor.getMetadata(java.lang.String privateKey,
java.lang.String clientId)
Returns metadata for a given client.
|
java.lang.String[] |
XmlRpcHubConnection.getRegisteredClients() |
java.util.List |
HubXmlRpcHandler.HubActorImpl.getRegisteredClients(java.lang.String privateKey) |
java.util.List |
HubActor.getRegisteredClients(java.lang.String privateKey)
Returns a list of the public-ids of all currently registered clients.
|
java.util.Map |
XmlRpcHubConnection.getSubscribedClients(java.lang.String mtype) |
java.util.Map |
HubXmlRpcHandler.HubActorImpl.getSubscribedClients(java.lang.String privateKey,
java.lang.String mtype) |
java.util.Map |
HubActor.getSubscribedClients(java.lang.String privateKey,
java.lang.String mtype)
Returns a map of the clients subscribed to a given MType.
|
Subscriptions |
XmlRpcHubConnection.getSubscriptions(java.lang.String clientId) |
java.util.Map |
HubXmlRpcHandler.HubActorImpl.getSubscriptions(java.lang.String privateKey,
java.lang.String clientId) |
java.util.Map |
HubActor.getSubscriptions(java.lang.String privateKey,
java.lang.String clientId)
Returns subscriptions for a given client.
|
void |
XmlRpcHubConnection.notify(java.lang.String recipientId,
java.util.Map msg) |
void |
HubXmlRpcHandler.HubActorImpl.notify(java.lang.String privateKey,
java.lang.String recipientId,
java.util.Map msg) |
void |
HubActor.notify(java.lang.String privateKey,
java.lang.String recipientId,
java.util.Map msg)
Sends a message to a given client without wanting a response.
|
java.util.List |
XmlRpcHubConnection.notifyAll(java.util.Map msg) |
java.util.List |
HubXmlRpcHandler.HubActorImpl.notifyAll(java.lang.String privateKey,
java.util.Map msg) |
java.util.List |
HubActor.notifyAll(java.lang.String privateKey,
java.util.Map msg)
Sends a message to all subscribed clients without wanting a response.
|
void |
HubXmlRpcHandler.HubActorImpl.ping() |
void |
XmlRpcHubConnection.ping() |
void |
HubActor.ping()
Throws an exception if service is not operating.
|
void |
HubXmlRpcHandler.HubActorImpl.ping(java.lang.String privateKey) |
void |
HubActor.ping(java.lang.String privateKey)
Throws an exception if service is not operating.
|
java.lang.Object |
XmlRpcHubConnection.rawExec(java.lang.String fqName,
java.util.List paramList)
Actually makes an XML-RPC call to the SAMP hub represented by this
connection.
|
void |
XmlRpcCallableClient.receiveCall(java.lang.String senderId,
java.lang.String msgId,
Message msg) |
void |
XmlRpcCallableClient.receiveNotification(java.lang.String senderId,
Message msg) |
void |
XmlRpcCallableClient.receiveResponse(java.lang.String responderId,
java.lang.String msgTag,
Response response) |
HubConnection |
StandardClientProfile.register() |
java.util.Map |
HubXmlRpcHandler.HubActorImpl.register(java.lang.String secret) |
java.util.Map |
HubActor.register(java.lang.String secret)
Registers a new client and returns a map with registration information.
|
void |
XmlRpcHubConnection.reply(java.lang.String msgId,
java.util.Map response) |
void |
HubXmlRpcHandler.HubActorImpl.reply(java.lang.String privateKey,
java.lang.String msgId,
java.util.Map response) |
void |
HubActor.reply(java.lang.String privateKey,
java.lang.String msgId,
java.util.Map response)
Responds to a previously sent message.
|
void |
StandardHubConnection.setCallable(CallableClient callable) |
void |
HubXmlRpcHandler.HubActorImpl.setXmlrpcCallback(java.lang.String privateKey,
java.lang.String surl) |
void |
HubActor.setXmlrpcCallback(java.lang.String privateKey,
java.lang.String url)
Sets the XML-RPC URL to use for callbacks for a callable client.
|
void |
XmlRpcHubConnection.unregister() |
void |
StandardHubConnection.unregister() |
void |
HubXmlRpcHandler.HubActorImpl.unregister(java.lang.String privateKey) |
void |
HubActor.unregister(java.lang.String privateKey)
Unregisters a registered client.
|
Constructor and Description |
---|
StandardHubConnection(SampXmlRpcClient xClient,
SampXmlRpcServerFactory serverFactory,
java.lang.String secret)
Constructor.
|
XmlRpcHubConnection(SampXmlRpcClient xClient,
java.lang.String prefix,
java.util.List registerArgs)
Constructor.
|