public abstract class AbstractService extends Service
Constructor and Description |
---|
AbstractService(java.lang.String service,
java.util.List<java.lang.String> tags) |
AbstractService(java.lang.String service,
java.lang.String tag) |
Modifier and Type | Method and Description |
---|---|
ServerInformation |
checkConnection(Server server) |
ServerInformation |
checkRunning(Server server) |
protected ServerInformation |
createException(java.lang.String endpoint,
Server server,
java.lang.String exceptionMsg) |
ServerInformation |
getServerInfo(Server server,
java.lang.String method)
Each service has its own methods and server infos; the lowest level of
information being the server information, the implementation of this
method obviously differs for every service.
|
protected abstract ServerInformation |
getSpecificServerInfo(Server server,
java.lang.String method) |
getMethodInformation, getServiceInformation
public AbstractService(java.lang.String service, java.util.List<java.lang.String> tags)
public AbstractService(java.lang.String service, java.lang.String tag)
public ServerInformation checkRunning(Server server)
public ServerInformation checkConnection(Server server)
protected ServerInformation createException(java.lang.String endpoint, Server server, java.lang.String exceptionMsg)
public ServerInformation getServerInfo(Server server, java.lang.String method)
Service
getServerInfo
in class Service
server
- the server on which the method must be executedmethod
- the method to be executedprotected abstract ServerInformation getSpecificServerInfo(Server server, java.lang.String method)
Copyright © 2021. All Rights Reserved.