@Singleton public class ProxyConnectionSystem extends ConnectionSystem
connectionLog, dataServers, infoRequests, infoSystem, serverInfo
Constructor and Description |
---|
ProxyConnectionSystem(DBSystem dbSystem,
dagger.Lazy<WebServer> webServer,
ConnectionLog connectionLog,
InfoRequests infoRequests,
dagger.Lazy<InfoSystem> infoSystem,
ServerInfo serverInfo,
com.djrapitops.plugin.logging.error.ErrorHandler errorHandler,
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 ProxyConnectionSystem(DBSystem dbSystem, dagger.Lazy<WebServer> webServer, ConnectionLog connectionLog, InfoRequests infoRequests, dagger.Lazy<InfoSystem> infoSystem, ServerInfo serverInfo, com.djrapitops.plugin.logging.error.ErrorHandler errorHandler, 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