|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.astrogrid.samp.hub.BasicHubService
org.astrogrid.samp.gui.GuiHubService
public class GuiHubService
BasicHubService subclass which provides a GUI window displaying hub status as well as the basic hub services.
| Field Summary |
|---|
| Fields inherited from class org.astrogrid.samp.hub.BasicHubService |
|---|
MAX_TIMEOUT, MAX_WAITERS |
| Constructor Summary | |
|---|---|
GuiHubService(Random random)
Constructor. |
|
| Method Summary | |
|---|---|
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. |
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. |
void |
start()
Begin operation. |
| Methods inherited from class org.astrogrid.samp.hub.BasicHubService |
|---|
call, callAll, callAndWait, createClient, createConnection, disconnect, getClientSet, getIdComparator, getMetadata, getRegisteredClients, getServiceConnection, getSubscribedClients, getSubscriptions, isHubRunning, notify, notifyAll, register, reply, setCallable, shutdown, unregister |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public GuiHubService(Random random)
random - random number generator used for message tags etc| Method Detail |
|---|
public void start()
HubServiceHubService.register() method should not be
called until the hub has been started.
start in interface HubServicestart in class BasicHubServiceprotected ClientSet createClientSet()
BasicHubService
createClientSet 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 client
SampExceptionHubConnection.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 client
SampExceptionHubConnection.declareSubscriptions(java.util.Map)public ListModel getClientListModel()
Client
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||