Package | Description |
---|---|
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.
|
Modifier and Type | Class and Description |
---|---|
private class |
MessageTrackerHubService.MessageTrackerHubClient
HubClient class used by this HubService implementation.
|
Modifier and Type | Field and Description |
---|---|
private HubClient |
HubClientPopupListener.DisconnectAction.client_ |
private HubClient |
HubClientPopupListener.CallAction.client_ |
private static HubClient |
GuiClientSet.MORIBUND_CLIENT |
Modifier and Type | Method and Description |
---|---|
HubClient |
MessageTrackerHubService.createClient(java.lang.String publicId,
ProfileToken ptoken) |
HubClient[] |
GuiClientSet.getClients() |
Modifier and Type | Method and Description |
---|---|
void |
GuiClientSet.add(HubClient client) |
void |
MessageTrackerHubService.MessageTrackerClientSet.add(HubClient client) |
private javax.swing.JPopupMenu |
HubClientPopupListener.createPopup(java.awt.Component parent,
HubClient client)
Returns a new popup menu for a given client.
|
protected void |
GuiHubService.declareMetadata(HubClient caller,
java.util.Map meta) |
protected void |
GuiHubService.declareSubscriptions(HubClient caller,
java.util.Map subscriptions) |
void |
GuiClientSet.remove(HubClient client) |
void |
MessageTrackerHubService.MessageTrackerClientSet.remove(HubClient client) |
protected void |
MessageTrackerHubService.reply(HubClient caller,
java.lang.String msgId,
java.util.Map response) |
void |
GuiClientSet.scheduleClientChanged(HubClient client)
Schedules notification of list data listeners that the attributes
of a client have changed.
|
Constructor and Description |
---|
CallAction(java.awt.Component parent,
HubClient client,
java.lang.String name,
Message msg,
boolean isCall)
Constructor.
|
DisconnectAction(java.awt.Component parent,
HubClient client)
Constructor.
|
Modifier and Type | Field and Description |
---|---|
private HubClient |
BasicHubService.serviceClient_ |
Modifier and Type | Method and Description |
---|---|
protected HubClient |
BasicHubService.createClient(java.lang.String publicId,
ProfileToken ptoken)
Factory method used to create all the client objects which will
be used by this hub service.
|
private HubClient |
BasicHubService.getClient(java.lang.String id)
Returns the client object corresponding to a public client ID.
|
HubClient[] |
BasicClientSet.getClients() |
HubClient[] |
ClientSet.getClients()
Returns an array of all the currently contained clients.
|
HubClient |
BasicClientSet.getFromPublicId(java.lang.String publicId) |
HubClient |
ClientSet.getFromPublicId(java.lang.String publicId)
Returns the client in the set corresponding to a given public ID.
|
Modifier and Type | Method and Description |
---|---|
void |
BasicClientSet.add(HubClient client) |
void |
ClientSet.add(HubClient client)
Adds a new client to the set.
|
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. |
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. |
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. |
private boolean |
BasicHubService.canSend(HubClient sender,
HubClient recipient,
java.lang.String mtype)
Indicates whether a given send is permitted.
|
private void |
BasicHubService.checkSend(HubClient sender,
HubClient recipient,
java.lang.String mtype)
Checks if a given send is permitted.
|
boolean |
BasicClientSet.containsClient(HubClient client) |
boolean |
ClientSet.containsClient(HubClient client)
Indicates whether a given client is currently a member of this set.
|
protected HubConnection |
BasicHubService.createConnection(HubClient caller)
Returns a new HubConnection for use by a given hub client.
|
protected void |
BasicHubService.declareMetadata(HubClient caller,
java.util.Map meta)
Does the work for the
declareMetadata method of connections
registered with this service. |
protected void |
BasicHubService.declareSubscriptions(HubClient caller,
java.util.Map subscriptions)
Does the work for the
declareSubscriptions method of
connections registered with this service. |
static java.lang.String |
BasicHubService.MessageId.encode(HubClient sender,
java.lang.String senderTag,
boolean isSynch)
Returns a message ID string corresponding to the arguments.
|
protected Metadata |
BasicHubService.getMetadata(HubClient caller,
java.lang.String clientId)
Does the work for the
getMetadata method of connections
registered with this service. |
protected java.lang.String[] |
BasicHubService.getRegisteredClients(HubClient caller)
Does the work for the
getRegisteredClients method of
connections registered with this service. |
private java.lang.String |
BasicHubService.getSendError(HubClient sender,
HubClient recipient,
java.lang.String mtype)
Does the work to determine whether a given sending client is
permitted to send a message with a given MType to a given recipient.
|
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. |
protected Subscriptions |
BasicHubService.getSubscriptions(HubClient caller,
java.lang.String clientId)
Does the work for the
getSubscriptions method of connections
registered with this service. |
private Subscriptions |
BasicHubService.getSubscriptionsFor(HubClient client,
Subscriptions subs)
Returns the view of a given subscriptions map to be presented to
a sending client.
|
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. |
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. |
void |
BasicClientSet.remove(HubClient client) |
void |
ClientSet.remove(HubClient client)
Removes a client from the set.
|
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. |
protected void |
BasicHubService.setCallable(HubClient caller,
CallableClient callable)
Does the work for the
setCallable method of connections
registered with this service. |
protected void |
BasicHubService.unregister(HubClient caller)
Does the work for the
unregister method of conections
registered with this service. |