# Uses of Class
org.astrogrid.samp.hub.HubClient

Packages that use HubClient
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.

## Uses of HubClient in org.astrogrid.samp.gui

Methods in org.astrogrid.samp.gui that return HubClient
Modifier and Type
Method
Description
`HubClient`
MessageTrackerHubService.`createClient(String publicId, ProfileToken ptoken)`
Methods in org.astrogrid.samp.gui with parameters of type HubClient
Modifier and Type
Method
Description
`protected void`
GuiHubService.`declareMetadata(HubClient caller, Map meta)`
`protected void`
GuiHubService.`declareSubscriptions(HubClient caller, Map subscriptions)`
`protected void`
MessageTrackerHubService.`reply(HubClient caller, String msgId, Map response)`

## Uses of HubClient in org.astrogrid.samp.hub

Methods in org.astrogrid.samp.hub that return HubClient
Modifier and Type
Method
Description
`protected HubClient`
BasicHubService.`createClient(String publicId, ProfileToken ptoken)`
Factory method used to create all the client objects which will be used by this hub service.
`HubClient[]`
BasicClientSet.`getClients()`
`HubClient[]`
ClientSet.`getClients()`
Returns an array of all the currently contained clients.
`HubClient`
BasicClientSet.`getFromPublicId(String publicId)`
`HubClient`
ClientSet.`getFromPublicId(String publicId)`
Returns the client in the set corresponding to a given public ID.
Methods in org.astrogrid.samp.hub with parameters of type HubClient
Modifier and Type
Method
Description
`void`
BasicClientSet.`add(HubClient client)`
`void`
ClientSet.`add(HubClient client)`
Adds a new client to the set.
`protected String`
BasicHubService.`call(HubClient caller, String recipientId, String msgTag, Map message)`
Does the work for the `call` method of connections registered with this service.
`protected Map`
BasicHubService.`callAll(HubClient caller, String msgTag, Map message)`
Does the work for the `call` method of connections registered with this service.
`protected Response`
BasicHubService.`callAndWait(HubClient caller, String recipientId, Map message, int timeout)`
Does the work for the `callAndWait` method of connections registered with this service.
`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, Map meta)`
Does the work for the `declareMetadata` method of connections registered with this service.
`protected void`
BasicHubService.`declareSubscriptions(HubClient caller, Map subscriptions)`
Does the work for the `declareSubscriptions` method of connections registered with this service.
`protected Metadata`
BasicHubService.`getMetadata(HubClient caller, String clientId)`
Does the work for the `getMetadata` method of connections registered with this service.
`protected String[]`
BasicHubService.`getRegisteredClients(HubClient caller)`
Does the work for the `getRegisteredClients` method of connections registered with this service.
`protected Map`
BasicHubService.`getSubscribedClients(HubClient caller, String mtype)`
Does the work for the `getSubscribedClients` method of connections registered with this service.
`protected Subscriptions`
BasicHubService.`getSubscriptions(HubClient caller, String clientId)`
Does the work for the `getSubscriptions` method of connections registered with this service.
`protected void`
BasicHubService.`notify(HubClient caller, String recipientId, Map message)`
Does the work for the `notify` method of connections registered with this service.
`protected List`
BasicHubService.`notifyAll(HubClient caller, 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, String msgIdStr, 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.