@Singleton public class ServerConnectionSystem extends ConnectionSystem
connectionLog, dataServers, infoRequests, infoSystem, serverInfo
Constructor and Description |
---|
ServerConnectionSystem(Locale locale,
PlanConfig config,
Processing processing,
DBSystem dbSystem,
dagger.Lazy<WebServer> webServer,
ConnectionLog connectionLog,
InfoRequests infoRequests,
dagger.Lazy<InfoSystem> infoSystem,
ServerInfo serverInfo,
com.djrapitops.plugin.logging.console.PluginLogger pluginLogger,
WebExceptionLogger webExceptionLogger) |
Modifier and Type | Method and Description |
---|---|
void |
enable()
Performs enable actions for the subsystem.
|
java.lang.String |
getMainAddress() |
boolean |
isServerAvailable() |
protected Server |
selectServerForRequest(InfoRequest infoRequest) |
void |
sendWideInfoRequest(WideRequest infoRequest) |
disable, getConnectionLog, getDataServers, getInfoRequest, isSetupAllowed, sendInfoRequest, sendInfoRequest, setSetupAllowed
@Inject public ServerConnectionSystem(Locale locale, PlanConfig config, Processing processing, DBSystem dbSystem, dagger.Lazy<WebServer> webServer, ConnectionLog connectionLog, InfoRequests infoRequests, dagger.Lazy<InfoSystem> infoSystem, ServerInfo serverInfo, com.djrapitops.plugin.logging.console.PluginLogger pluginLogger, WebExceptionLogger webExceptionLogger)
protected Server selectServerForRequest(InfoRequest infoRequest) throws NoServersException
selectServerForRequest
in class ConnectionSystem
NoServersException
public void sendWideInfoRequest(WideRequest infoRequest) throws NoServersException
sendWideInfoRequest
in class ConnectionSystem
NoServersException
public boolean isServerAvailable()
isServerAvailable
in class ConnectionSystem
public java.lang.String getMainAddress()
getMainAddress
in class ConnectionSystem
public void enable()
SubSystem
enable
in interface SubSystem
enable
in class ConnectionSystem