Package org.astrogrid.samp.hub
Class HubServiceMode
java.lang.Object
org.astrogrid.samp.hub.HubServiceMode
Specifies a particular hub implementation for use with
Hub
.- Since:
- 20 Nov 2008
- Author:
- Mark Taylor
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final HubServiceMode
Hub mode with a GUI representation of connected clients.static HubServiceMode
Hub Mode which piggy-backs on an existing hub using the default client profile.static HubServiceMode
Hub mode with a GUI representation of clients and messages.static final HubServiceMode
Hub mode with no GUI representation of hub operations. -
Method Summary
Modifier and TypeMethodDescriptionstatic HubServiceMode[]
Returns an array of the hub modes which can actually be used.static HubServiceMode
getModeFromName
(String name) Returns one of the known modes which has a name as given.toString()
-
Field Details
-
NO_GUI
Hub mode with no GUI representation of hub operations. -
CLIENT_GUI
Hub mode with a GUI representation of connected clients. -
MESSAGE_GUI
Hub mode with a GUI representation of clients and messages. -
FACADE
Hub Mode which piggy-backs on an existing hub using the default client profile.
-
-
Method Details
-
toString
-
getModeFromName
Returns one of the known modes which has a name as given.- Parameters:
name
- mode name (case-insensitive)- Returns:
- mode with given name, or null if none known
-
getAvailableModes
Returns an array of the hub modes which can actually be used.- Returns:
- available mode list
-