Package org.astrogrid.samp.hub
Class HubServiceMode.BrokenHubMode
- java.lang.Object
-
- org.astrogrid.samp.hub.HubServiceMode
-
- org.astrogrid.samp.hub.HubServiceMode.BrokenHubMode
-
- Enclosing class:
- HubServiceMode
private static class HubServiceMode.BrokenHubMode extends HubServiceMode
HubServiceMode implementation for modes which cannot be used because they rely on classes unavailable at runtime.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.astrogrid.samp.hub.HubServiceMode
HubServiceMode.ServiceGui
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.Throwable
error_
-
Fields inherited from class org.astrogrid.samp.hub.HubServiceMode
CLIENT_GUI, FACADE, MESSAGE_GUI, NO_GUI
-
-
Constructor Summary
Constructors Constructor Description BrokenHubMode(java.lang.String name, java.lang.Throwable error)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) HubServiceMode.ServiceGui
createHubService(java.util.Random random, HubProfile[] profiles, Hub[] runners)
Creates and returns a new hub service object.-
Methods inherited from class org.astrogrid.samp.hub.HubServiceMode
getAvailableModes, getModeFromName, getName, isDaemon, toString
-
-
-
-
Method Detail
-
createHubService
HubServiceMode.ServiceGui createHubService(java.util.Random random, HubProfile[] profiles, Hub[] runners)
Description copied from class:HubServiceMode
Creates and returns a new hub service object.- Specified by:
createHubService
in classHubServiceMode
- Parameters:
random
- random number generatorprofiles
- hub profilesrunners
- 1-element array of Hubs - this should be populated with the runner once it has been constructed- Returns:
- object containing the hub service and possibly a window
-
-