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  declareMetadatamethod of connections
 registered with this service. | 
| protected void | declareSubscriptions(HubClient caller,
                    Map subscriptions)Does the work for the  declareSubscriptionsmethod 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, unregisterpublic GuiHubService(Random random)
random - random number generator used for message tags etcpublic void start()
HubServiceHubService.register(org.astrogrid.samp.hub.ProfileToken) method should not be
 called until the hub has been started.start in interface HubServicestart in class BasicHubServiceprotected ClientSet createClientSet()
BasicHubServicecreateClientSet in class BasicHubServicepublic JComponent createHubPanel()
public JFrame createHubWindow()
protected void declareMetadata(HubClient caller, Map meta) throws SampException
BasicHubServicedeclareMetadata method of connections
 registered with this service.declareMetadata in class BasicHubServicecaller - clientmeta - new metadata for clientSampExceptionHubConnection.declareMetadata(java.util.Map)protected void declareSubscriptions(HubClient caller, Map subscriptions) throws SampException
BasicHubServicedeclareSubscriptions method of
 connections registered with this service.declareSubscriptions in class BasicHubServicecaller - clientsubscriptions - new subscriptions for clientSampExceptionHubConnection.declareSubscriptions(java.util.Map)public ListModel getClientListModel()
Clientpublic ListSelectionModel getClientSelectionModel()
public JMenu[] createMenus()
Copyright © 2008–2024. All rights reserved.