public class GuiHubService extends BasicHubService
MAX_TIMEOUT, MAX_WAITERS
Constructor and Description |
---|
GuiHubService(Random random)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
protected ClientSet |
createClientSet()
Factory method used to create the client set used by this hub service.
|
JComponent |
createHubPanel()
Creates a new component containing a display of the current hub
internal state.
|
JFrame |
createHubWindow()
Creates a new window which maintains a display of the current hub
internal state.
|
JMenu[] |
createMenus()
Returns an array of menus which may be added to a window
containing this service's window.
|
protected void |
declareMetadata(HubClient caller,
Map meta)
Does the work for the
declareMetadata method of connections
registered with this service. |
protected void |
declareSubscriptions(HubClient caller,
Map subscriptions)
Does the work for the
declareSubscriptions method of
connections registered with this service. |
ListModel |
getClientListModel()
Returns a ListModel containing information about clients currently
registered with this hub.
|
ListSelectionModel |
getClientSelectionModel()
Returns the selection model corresponding to this service's client
list model.
|
void |
start()
Begin operation.
|
call, callAll, callAndWait, createClient, createConnection, createHubMessageHandlers, disconnect, disconnectAll, getClientSet, getIdComparator, getMetadata, getRegisteredClients, getServiceConnection, getSubscribedClients, getSubscriptions, isHubRunning, notify, notifyAll, register, reply, setCallable, shutdown, unregister
public GuiHubService(Random random)
random
- random number generator used for message tags etcpublic void start()
HubService
HubService.register(org.astrogrid.samp.hub.ProfileToken)
method should not be
called until the hub has been started.start
in interface HubService
start
in class BasicHubService
protected ClientSet createClientSet()
BasicHubService
createClientSet
in class BasicHubService
public JComponent createHubPanel()
public JFrame createHubWindow()
protected void declareMetadata(HubClient caller, Map meta) throws SampException
BasicHubService
declareMetadata
method of connections
registered with this service.declareMetadata
in class BasicHubService
caller
- clientmeta
- new metadata for clientSampException
HubConnection.declareMetadata(java.util.Map)
protected void declareSubscriptions(HubClient caller, Map subscriptions) throws SampException
BasicHubService
declareSubscriptions
method of
connections registered with this service.declareSubscriptions
in class BasicHubService
caller
- clientsubscriptions
- new subscriptions for clientSampException
HubConnection.declareSubscriptions(java.util.Map)
public ListModel getClientListModel()
Client
public ListSelectionModel getClientSelectionModel()
public JMenu[] createMenus()
Copyright © 2008–2024. All rights reserved.