Uses of Interface
org.astrogrid.samp.client.HubConnection
-
Packages that use HubConnection 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. -
-
Uses of HubConnection in org.astrogrid.samp.bridge
Fields in org.astrogrid.samp.bridge declared as HubConnection Modifier and Type Field Description private HubConnection
ProxyManager.ProxyCallableClient. remoteProxy_
Methods in org.astrogrid.samp.bridge that return HubConnection Modifier and Type Method 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.Constructors in org.astrogrid.samp.bridge with parameters of type HubConnection Constructor Description ProxyCallableClient(Client localClient, HubConnection remoteProxy, ProxyManager remoteManager)
Constructor. -
Uses of HubConnection in org.astrogrid.samp.client
Fields in org.astrogrid.samp.client declared as HubConnection Modifier and Type Field Description private HubConnection
HubConnector.ConnectorCallableClient. conn_
private HubConnection
HubConnector. connection_
Methods in org.astrogrid.samp.client that return HubConnection Modifier and Type Method 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.Methods in org.astrogrid.samp.client with parameters of type HubConnection Modifier and Type Method 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.abstract java.util.Map
AbstractMessageHandler. processCall(HubConnection connection, java.lang.String senderId, Message message)
Implements message processing.java.util.Map
ClientTracker. processCall(HubConnection connection, java.lang.String senderId, Message message)
void
AbstractMessageHandler. receiveCall(HubConnection connection, java.lang.String senderId, java.lang.String msgId, Message message)
CallsAbstractMessageHandler.processCall(org.astrogrid.samp.client.HubConnection, java.lang.String, org.astrogrid.samp.Message)
, generates a response from the result usingAbstractMessageHandler.createResponse(java.util.Map)
, and sends the resulting response as a reply to the hub.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. receiveNotification(HubConnection connection, java.lang.String senderId, Message message)
CallsAbstractMessageHandler.processCall(org.astrogrid.samp.client.HubConnection, java.lang.String, org.astrogrid.samp.Message)
and discards the result.void
MessageHandler. receiveNotification(HubConnection connection, java.lang.String senderId, Message message)
Processes a message which does not require a response.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. -
Uses of HubConnection in org.astrogrid.samp.gui
Classes in org.astrogrid.samp.gui that implement HubConnection Modifier and Type Class 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.Fields in org.astrogrid.samp.gui declared as HubConnection Modifier and Type Field Description private HubConnection
WrapperHubConnection. base_
Methods in org.astrogrid.samp.gui that return HubConnection Modifier and Type Method Description protected HubConnection
MessageTrackerHubConnector. createConnection()
Methods in org.astrogrid.samp.gui with parameters of type HubConnection Modifier and Type Method 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)
Constructors in org.astrogrid.samp.gui with parameters of type HubConnection Constructor Description MessageTrackerHubConnection(HubConnection base)
Constructor.WrapperHubConnection(HubConnection base)
-
Uses of HubConnection in org.astrogrid.samp.hub
Classes in org.astrogrid.samp.hub that implement HubConnection Modifier and Type Class Description private static class
FacadeHubService.FacadeHubConnection
Utility HubConnection class which allows hub event notifications to be sent to clients.(package private) class
WrapperHubConnection
HubConnection implementation that delegates all calls to a base instance.Fields in org.astrogrid.samp.hub declared as HubConnection Modifier and Type Field Description private HubConnection
WrapperHubConnection. base_
private HubConnection
HubCallableClient. connection_
private HubConnection
BasicHubService. serviceClientConnection_
Methods in org.astrogrid.samp.hub that return HubConnection Modifier and Type Method 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
BasicHubService. register(ProfileToken ptoken)
HubConnection
FacadeHubService. register(ProfileToken profileToken)
HubConnection
HubService. register(ProfileToken profileToken)
Creates a new connection to this hub service, thereby initiating a new registered client.Methods in org.astrogrid.samp.hub with parameters of type HubConnection Modifier and Type Method 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)
Constructors in org.astrogrid.samp.hub with parameters of type HubConnection Constructor Description FacadeHubConnection(HubConnection base)
Constructor.HubCallableClient(HubConnection connection, AbstractMessageHandler[] handlers)
Constructs a HubCallableClient with a given set of handlers.WrapperHubConnection(HubConnection base)
Constructor. -
Uses of HubConnection in org.astrogrid.samp.test
Fields in org.astrogrid.samp.test declared as HubConnection Modifier and Type Field Description private HubConnection
Calculator. connection_
private HubConnection
HubTester.ClientWatcher. connection_
private HubConnection
HubTester.TestCallableClient. connection_
private HubConnection
ReplyCollector. connection_
Methods in org.astrogrid.samp.test that return HubConnection Modifier and Type Method 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.Methods in org.astrogrid.samp.test with parameters of type HubConnection Modifier and Type Method Description private void
HubTester. assertTestClients(HubConnection conn, java.lang.String[] otherIds)
Assert that the given list of registered clients has a certain content.java.util.Map
MessageSender.AsynchSender. getResponses(HubConnection connection, Message msg, java.lang.String[] recipientIds)
(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)
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.Constructors in org.astrogrid.samp.test with parameters of type HubConnection Constructor 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. -
Uses of HubConnection in org.astrogrid.samp.web
Classes in org.astrogrid.samp.web that implement HubConnection Modifier and Type Class 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.Fields in org.astrogrid.samp.web declared as HubConnection Modifier and Type Field Description private HubConnection
UrlTrackerHubConnection. base_
(package private) HubConnection
WebHubXmlRpcHandler.Registration. connection_
Methods in org.astrogrid.samp.web that return HubConnection Modifier and Type Method Description private HubConnection
WebHubXmlRpcHandler.WebHubActorImpl. getConnection(java.lang.String privateKey)
Returns the connection object associated with a given private key.HubConnection
WebClientProfile. register()
Constructors in org.astrogrid.samp.web with parameters of type HubConnection Constructor Description Registration(HubConnection connection)
Constructor.UrlTrackerHubConnection(HubConnection base, UrlTracker urlTracker)
Constructor. -
Uses of HubConnection in org.astrogrid.samp.xmlrpc
Classes in org.astrogrid.samp.xmlrpc that implement HubConnection Modifier and Type Class Description (package private) class
StandardHubConnection
HubConnection implementation for the Standard Profile.class
XmlRpcHubConnection
Partial HubConnection implementation based on XML-RPC.Fields in org.astrogrid.samp.xmlrpc declared as HubConnection Modifier and Type Field Description (package private) HubConnection
ClientXmlRpcHandler.Entry. connection_
Methods in org.astrogrid.samp.xmlrpc that return HubConnection Modifier and Type Method 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()
Methods in org.astrogrid.samp.xmlrpc with parameters of type HubConnection Modifier and Type Method 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.Constructors in org.astrogrid.samp.xmlrpc with parameters of type HubConnection Constructor Description Entry(HubConnection connection, CallableClient callable)
Constructor.
-