Package org.astrogrid.samp.hub
Class HubServiceMode
- java.lang.Object
-
- org.astrogrid.samp.hub.HubServiceMode
-
public abstract class HubServiceMode extends java.lang.Object
Specifies a particular hub implementation for use withHub
.- Since:
- 20 Nov 2008
- Author:
- Mark Taylor
-
-
Field Summary
Fields Modifier and Type Field Description static HubServiceMode
CLIENT_GUI
Hub mode with a GUI representation of connected clients.static HubServiceMode
FACADE
Hub Mode which piggy-backs on an existing hub using the default client profile.static HubServiceMode
MESSAGE_GUI
Hub mode with a GUI representation of clients and messages.static HubServiceMode
NO_GUI
Hub mode with no GUI representation of hub operations.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static HubServiceMode[]
getAvailableModes()
Returns an array of the hub modes which can actually be used.static HubServiceMode
getModeFromName(java.lang.String name)
Returns one of the known modes which has a name as given.java.lang.String
toString()
-
-
-
Field Detail
-
NO_GUI
public static final HubServiceMode NO_GUI
Hub mode with no GUI representation of hub operations.
-
CLIENT_GUI
public static final HubServiceMode CLIENT_GUI
Hub mode with a GUI representation of connected clients.
-
MESSAGE_GUI
public static HubServiceMode MESSAGE_GUI
Hub mode with a GUI representation of clients and messages.
-
FACADE
public static HubServiceMode FACADE
Hub Mode which piggy-backs on an existing hub using the default client profile.
-
-
Method Detail
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
getModeFromName
public static HubServiceMode getModeFromName(java.lang.String name)
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
public static HubServiceMode[] getAvailableModes()
Returns an array of the hub modes which can actually be used.- Returns:
- available mode list
-
-