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 | Field and Description |
---|---|
private HubConnection |
ProxyManager.ProxyCallableClient.remoteProxy_ |
Modifier and Type | Method and Description |
---|---|
private HubConnection |
ProxyManager.ProxyCallableClient.getLocalProxy(java.lang.String remoteClientId)
Returns the hub connection for the proxy on the local hub
which corresponds to a given remote client.
|
private HubConnection |
ProxyManager.getProxyConnection(ProxyManager remoteManager,
java.lang.String localClientId)
Returns the connection on the hub associated with a remote
proxy manager which is the proxy for a given local client.
|
Constructor and Description |
---|
ProxyCallableClient(Client localClient,
HubConnection remoteProxy,
ProxyManager remoteManager)
Constructor.
|
Modifier and Type | Field and Description |
---|---|
private HubConnection |
HubConnector.ConnectorCallableClient.conn_ |
private HubConnection |
HubConnector.connection_ |
Modifier and Type | Method and Description |
---|---|
protected HubConnection |
HubConnector.createConnection()
Invoked by this class to create a hub connection.
|
HubConnection |
HubConnector.getConnection()
If necessary attempts to acquire, and returns, a connection to a
running hub.
|
HubConnection |
ClientProfile.register()
Attempts to register with a SAMP hub and return a corresponding
connection object.
|
Modifier and Type | Method and Description |
---|---|
private void |
HubConnector.checkHubMessage(HubConnection connection,
java.lang.String senderId,
java.lang.String mtype)
Performs sanity checking on a message which is normally expected to
be sent only by the hub client itself.
|
void |
HubConnector.configureConnection(HubConnection connection)
Configures a connection with a hub in accordance with the state of
this object.
|
void |
ClientTracker.initialise(HubConnection connection)
Initialises this tracker from a hub connection.
|
private void |
ClientTracker.performClientOperation(ClientTracker.ClientOperation op,
HubConnection connection)
Performs an operation on a ClientOperation object.
|
java.util.Map |
ClientTracker.processCall(HubConnection connection,
java.lang.String senderId,
Message message) |
abstract java.util.Map |
AbstractMessageHandler.processCall(HubConnection connection,
java.lang.String senderId,
Message message)
Implements message processing.
|
void |
MessageHandler.receiveCall(HubConnection connection,
java.lang.String senderId,
java.lang.String msgId,
Message message)
Processes a message which does require a response.
|
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. |
void |
MessageHandler.receiveNotification(HubConnection connection,
java.lang.String senderId,
Message message)
Processes a message which does not require a response.
|
void |
AbstractMessageHandler.receiveNotification(HubConnection connection,
java.lang.String senderId,
Message message)
Calls
AbstractMessageHandler.processCall(org.astrogrid.samp.client.HubConnection, java.lang.String, org.astrogrid.samp.Message) and discards the result. |
void |
HubConnector.CallHandler.receiveResponse(HubConnection connection,
java.lang.String responderId,
java.lang.String msgTag,
Response response) |
void |
ResponseHandler.receiveResponse(HubConnection connection,
java.lang.String responderId,
java.lang.String msgTag,
Response response)
Processes a response to an earlier message.
|
private void |
HubConnector.ConnectorCallableClient.setConnection(HubConnection connection)
Sets the currently active hub connection.
|
Modifier and Type | Class and Description |
---|---|
private class |
MessageTrackerHubConnector.MessageTrackerHubConnection
HubConnection object which intercepts calls to keep track of
outgoing and incoming messages.
|
(package private) class |
WrapperHubConnection
HubConnection implementation which delegates all behaviour to a base
implementation.
|
Modifier and Type | Field and Description |
---|---|
private HubConnection |
WrapperHubConnection.base_ |
Modifier and Type | Method and Description |
---|---|
protected HubConnection |
MessageTrackerHubConnector.createConnection() |
Modifier and Type | Method and Description |
---|---|
protected ResultHandler |
AbstractCallActionManager.createResultHandler(HubConnection connection,
Message msg,
Client[] recipients)
Returns an object which will be informed of the results of a single-
or multiple-recipient send as they arrive.
|
protected void |
NotifyActionManager.messageSent(HubConnection connection,
Message msg,
Client[] recipients)
Called when a message has been sent by this object.
|
void |
AbstractCallActionManager.CallResponseHandler.receiveResponse(HubConnection connection,
java.lang.String responderId,
java.lang.String tag,
Response response) |
Constructor and Description |
---|
MessageTrackerHubConnection(HubConnection base)
Constructor.
|
WrapperHubConnection(HubConnection base) |
Modifier and Type | Class and Description |
---|---|
private static class |
FacadeHubService.FacadeHubConnection
Utility HubConnection class which allows hub event notifications
to be sent to clients.
|
Modifier and Type | Field and Description |
---|---|
private HubConnection |
WrapperHubConnection.base_ |
private HubConnection |
HubCallableClient.connection_ |
private HubConnection |
BasicHubService.serviceClientConnection_ |
Modifier and Type | Method and Description |
---|---|
protected HubConnection |
BasicHubService.createConnection(HubClient caller)
Returns a new HubConnection for use by a given hub client.
|
HubConnection |
BasicHubService.getServiceConnection()
Returns the HubConnection object used by the hub itself to send
and receive messages.
|
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) |
Modifier and Type | Method and Description |
---|---|
java.util.Map |
MetaQueryMessageHandler.processCall(HubConnection conn,
java.lang.String senderId,
Message msg) |
java.util.Map |
PingMessageHandler.processCall(HubConnection conn,
java.lang.String senderId,
Message msg) |
Constructor and Description |
---|
FacadeHubConnection(HubConnection base)
Constructor.
|
HubCallableClient(HubConnection connection,
AbstractMessageHandler[] handlers)
Constructs a HubCallableClient with a given set of handlers.
|
WrapperHubConnection(HubConnection base)
Constructor.
|
Modifier and Type | Field and Description |
---|---|
private HubConnection |
Calculator.connection_ |
private HubConnection |
ReplyCollector.connection_ |
private HubConnection |
HubTester.TestCallableClient.connection_ |
private HubConnection |
HubTester.ClientWatcher.connection_ |
Modifier and Type | Method and Description |
---|---|
HubConnection |
Calculator.getConnection()
Returns the hub connection used by this client.
|
HubConnection |
HubTester.ClientWatcher.getConnection()
Returns the hub connection used by this client.
|
private HubConnection |
HubTester.register()
Registers with the hub, performing various checks.
|
Modifier and Type | Method and Description |
---|---|
private void |
HubTester.assertTestClients(HubConnection conn,
java.lang.String[] otherIds)
Assert that the given list of registered clients has a certain content.
|
(package private) abstract java.util.Map |
MessageSender.getResponses(HubConnection connection,
Message msg,
java.lang.String[] recipientIds)
Sends a message to a given list of recipients.
|
java.util.Map |
MessageSender.NotifySender.getResponses(HubConnection connection,
Message msg,
java.lang.String[] recipientIds) |
java.util.Map |
MessageSender.SynchSender.getResponses(HubConnection connection,
Message msg,
java.lang.String[] recIds) |
java.util.Map |
MessageSender.AsynchSender.getResponses(HubConnection connection,
Message msg,
java.lang.String[] recipientIds) |
private static java.lang.String[] |
MessageSender.namesToIds(HubConnection conn,
java.lang.String[] names)
Translates an array of client names to client IDs.
|
(package private) void |
MessageSender.showResults(HubConnection connection,
Message msg,
java.lang.String[] recipientIds,
java.io.PrintStream out)
Sends a message to a list of recipients and displays the results
on an output stream.
|
Constructor and Description |
---|
Calculator(HubConnection connection,
java.util.Random random)
Constructor.
|
ClientWatcher(HubConnection connection)
Constructor.
|
MetaClient(java.lang.String id,
HubConnection connection)
Constructor which attempts to acquire metadata from a given
hub connection.
|
ReplyCollector(HubConnection connection)
Constructor.
|
TestCallableClient(HubConnection connection)
Constructor.
|
Modifier and Type | Class and Description |
---|---|
(package private) class |
UrlTrackerHubConnection
HubConnection wrapper implementation which intercepts all incoming
and outgoing communications, scans them for URLs in the payload,
and notifies a supplied UrlTracker object.
|
(package private) class |
WebHubConnection
HubConnection implementation for the Web Profile.
|
Modifier and Type | Field and Description |
---|---|
private HubConnection |
UrlTrackerHubConnection.base_ |
(package private) HubConnection |
WebHubXmlRpcHandler.Registration.connection_ |
Modifier and Type | Method and Description |
---|---|
private HubConnection |
WebHubXmlRpcHandler.WebHubActorImpl.getConnection(java.lang.String privateKey)
Returns the connection object associated with a given private key.
|
HubConnection |
WebClientProfile.register() |
Constructor and Description |
---|
Registration(HubConnection connection)
Constructor.
|
UrlTrackerHubConnection(HubConnection base,
UrlTracker urlTracker)
Constructor.
|
Modifier and Type | Class and Description |
---|---|
(package private) class |
StandardHubConnection
HubConnection implementation for the Standard Profile.
|
class |
XmlRpcHubConnection
Partial HubConnection implementation based on XML-RPC.
|
Modifier and Type | Field and Description |
---|---|
(package private) HubConnection |
ClientXmlRpcHandler.Entry.connection_ |
Modifier and Type | Method and Description |
---|---|
private HubConnection |
HubXmlRpcHandler.HubActorImpl.getConnection(java.lang.String privateKey)
Returns the HubConnection associated with a private key used
by this hub actor.
|
HubConnection |
StandardClientProfile.register() |
Modifier and Type | Method and Description |
---|---|
void |
CallableClientServer.addClient(HubConnection connection,
CallableClient callable)
Adds a CallableClient object to this server.
|
void |
ClientXmlRpcHandler.addClient(HubConnection connection,
CallableClient callable)
Adds a CallableClient object to this server.
|
void |
CallableClientServer.removeClient(HubConnection connection)
Removes a CallableClient object from this server.
|
void |
ClientXmlRpcHandler.removeClient(HubConnection connection)
Removes a CallableClient object from this server.
|
Constructor and Description |
---|
Entry(HubConnection connection,
CallableClient callable)
Constructor.
|