Package | Description |
---|---|
org.astrogrid.samp |
Classes common to SAMP hub and client code.
|
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.
|
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
SampUtils.toString(Client client)
Returns a string representation of a client object.
|
Modifier and Type | Method and Description |
---|---|
void |
ProxyManager.ProxyManagerClientSet.addClient(Client client) |
private Metadata |
ProxyManager.getProxyMetadata(Client localClient)
Returns the metadata to use for the remote proxy of a local client.
|
private Subscriptions |
ProxyManager.getProxySubscriptions(Client client)
Returns the subscriptions to use for the remote proxy of a local client.
|
private boolean |
ProxyManager.isProxiedClient(Client client)
Determines whether a local client is a genuine third party client
which requires a remote proxy.
|
private boolean |
ProxyManager.isProxy(Client client,
ProxyManager remoteManager)
Determines whether a given local client is a proxy controlled by
a given remote ProxyManager.
|
private void |
ProxyManager.localClientAdded(Client client)
Invoked when a client is added to the local hub.
|
private void |
ProxyManager.localClientRemoved(Client client)
Invoked when a client is removed from the local hub.
|
private void |
ProxyManager.localClientUpdated(Client client,
boolean metaChanged,
boolean subsChanged)
Invoked when information (metadata or subscriptions) have been
updated for a client on the local hub.
|
void |
ProxyManager.ProxyManagerClientSet.removeClient(Client client) |
void |
ProxyManager.ProxyManagerClientSet.setClients(Client[] clients) |
void |
ProxyManager.ProxyManagerClientSet.updateClient(Client client,
boolean metaChanged,
boolean subsChanged) |
Constructor and Description |
---|
ProxyCallableClient(Client localClient,
HubConnection remoteProxy,
ProxyManager remoteManager)
Constructor.
|
Modifier and Type | Class and Description |
---|---|
private static class |
ClientTracker.TrackedClient
Client implementation used to populate internal data structures.
|
Modifier and Type | Method and Description |
---|---|
void |
TrackedClientSet.addClient(Client client)
Adds a client to this model.
|
void |
TrackedClientSet.removeClient(Client client)
Removes a client from this model.
|
void |
LogResultHandler.result(Client client,
Response response) |
void |
ResultHandler.result(Client responder,
Response response)
Called when a response is received from a client to which the message
was sent.
|
void |
TrackedClientSet.setClients(Client[] clients)
Sets the contents of this model to a given list.
|
void |
TrackedClientSet.updateClient(Client client,
boolean metaChanged,
boolean subsChanged)
Notifies listeners that a given client's attributes (may) have
changed.
|
Modifier and Type | Class and Description |
---|---|
private class |
MessageTrackerHubService.MessageTrackerHubClient
HubClient class used by this HubService implementation.
|
Modifier and Type | Field and Description |
---|---|
(package private) Client |
MessageTrackerListCellRenderer.IconListModel.client_ |
private Client |
AbstractCallActionManager.SendAction.client_ |
private Client |
NotifyActionManager.SendAction.client_ |
private Client |
ClientPanel.client_ |
private Client |
Transmission.receiver_ |
private Client |
MessageTrackerHubConnector.MessageTrackerHubConnection.selfClient_ |
private Client |
Transmission.sender_ |
Modifier and Type | Method and Description |
---|---|
Client |
ClientPanel.getClient()
Returns the most recently displayed client.
|
Client |
Transmission.getReceiver()
Returns the client to which this transmission was sent.
|
private Client |
GuiHubService.getSelectedClient()
Returns the client object currently selected in the GUI, if any.
|
(package private) Client |
MessageTrackerHubConnector.MessageTrackerHubConnection.getSelfClient()
Returns a Client object for use in Transmission objects
which represents this connection's owner.
|
private Client |
MessageTrackerHubConnector.MessageTrackerCallableClient.getSelfClient()
Returns a Client object for use in Transmission objects
which represents this connection's owner.
|
Client |
Transmission.getSender()
Returns the client which sent this transmission.
|
Modifier and Type | Method and Description |
---|---|
void |
GuiHubConnector.ListModelTrackedClientSet.addClient(Client client) |
protected abstract java.util.Map |
AbstractCallActionManager.createMessage(Client client)
Returns the Message object which is to be transmitted by this manager
to a given client.
|
protected java.util.Map |
UniformCallActionManager.createMessage(Client client)
Implemented simply by calling
UniformCallActionManager.createMessage() . |
protected abstract java.util.Map |
IndividualCallActionManager.createMessage(Client client) |
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.
|
private static java.lang.String |
TransmissionPanel.formatClient(Client client)
Formats a client as a string.
|
private static java.lang.Object |
MessageTrackerHubService.getCallKey(Client receiver,
java.lang.String msgId)
Returns a key for use in the call map.
|
javax.swing.Icon |
IconStore.getIcon(Client client)
Returns the icon associated with a given client.
|
protected java.lang.String |
ClientListCellRenderer.getLabel(Client client)
Attempts to return a human-readable text label for the given client.
|
javax.swing.ListModel |
ClientTransmissionHolder.getRxListModel(Client client)
Returns a list model containing messages received by a given client.
|
javax.swing.ListModel |
MessageTrackerHubService.getRxListModel(Client client)
Returns a ListModel representing the pending messages received
by a given client.
|
javax.swing.ListModel |
MessageTrackerHubConnector.getRxListModel(Client client) |
protected abstract javax.swing.Action |
SendActionManager.getSendAction(Client client)
Returns an action which can perform a single-client send associated
with this object.
|
protected javax.swing.Action |
AbstractCallActionManager.getSendAction(Client client) |
protected javax.swing.Action |
NotifyActionManager.getSendAction(Client client) |
javax.swing.Action |
UniformCallActionManager.getSendAction(Client client) |
javax.swing.ListModel |
ClientTransmissionHolder.getTxListModel(Client client)
Returns a list model containing messages sent by a given client.
|
javax.swing.ListModel |
MessageTrackerHubService.getTxListModel(Client client)
Returns a ListModel representing the pending messages sent
from a given client.
|
javax.swing.ListModel |
MessageTrackerHubConnector.getTxListModel(Client client) |
protected abstract boolean |
SelectiveClientListModel.isIncluded(Client client)
Implement this method to determine which clients are included in
this list.
|
protected boolean |
SubscribedClientListModel.isIncluded(Client client)
Returns true if
client is subscribed to one of this
model's MTypes. |
protected void |
NotifyActionManager.messageSent(HubConnection connection,
Message msg,
Client[] recipients)
Called when a message has been sent by this object.
|
void |
AbstractCallActionManager.registerHandler(java.lang.String tag,
Client[] recipients,
ResultHandler handler)
Registers a result handler to handle results corresponding to a
message tag.
|
void |
AbstractCallActionManager.CallResponseHandler.registerHandler(java.lang.String tag,
Client[] recipients,
ResultHandler handler)
Registers a result handler to handle results corresponding to a
message tag.
|
void |
GuiHubConnector.ListModelTrackedClientSet.removeClient(Client client) |
void |
PopupResultHandler.result(Client client,
Response response) |
void |
MessageTrackerListCellRenderer.IconListModel.setClient(Client client)
Sets the client whose transmissions this list will represent.
|
void |
ClientPanel.setClient(Client client)
Updates this component to display the current state of a given client.
|
void |
GuiHubConnector.ListModelTrackedClientSet.setClients(Client[] clients) |
void |
GuiHubConnector.ListModelTrackedClientSet.updateClient(Client client,
boolean metaChanged,
boolean subsChanged) |
Constructor and Description |
---|
ClientHandler(Client client)
Constructor.
|
PopupResultHandler(java.awt.Component parent,
java.lang.String title,
Message msg,
Client[] recipients,
int closeDelay)
Constructor.
|
SendAction(Client client)
Constructor.
|
SendAction(Client client)
Constructor.
|
TagInfo(Client[] recipients,
ResultHandler handler)
Constructor.
|
Transmission(Client sender,
Client receiver,
Message msg,
java.lang.String msgTag,
java.lang.String msgId)
Constructor.
|
Modifier and Type | Class and Description |
---|---|
class |
HubClient
Represents a client registered with a hub.
|
Modifier and Type | Class and Description |
---|---|
private static class |
MessageSender.MetaClient
Client implementation which may know about metadata.
|
Modifier and Type | Field and Description |
---|---|
private Client[] |
HubTester.ignoreClients_ |