public class HostHandler extends DefaultRestHandler<Host>
mapper| Constructor and Description |
|---|
HostHandler(String cloudconductorUrl) |
HostHandler(String cloudconductorUrl,
String token,
String agent) |
| Modifier and Type | Method and Description |
|---|---|
protected Class<Host> |
getAPIClass() |
protected String |
getDefaultPath() |
Set<Service> |
getServices(String name) |
Boolean |
inSync(String host) |
void |
removeService(String name,
String service) |
Boolean |
restartService(String host,
String service) |
void |
setService(String name,
Service service) |
Boolean |
startService(String host,
String service) |
Boolean |
stopService(String host,
String service) |
delete, get, get, getSetType, pathGenerator, save_delete, _get, _get, _post, _post, _post, _put, _put, _put, _put, assertSuccess, dataFromResponse, getSetType, objectFromResponse, objectFromResponse, request, request, request, setPasswordMode, setTokenModepublic HostHandler(String cloudconductorUrl)
cloudconductorUrl - the config server urlprotected String getDefaultPath()
getDefaultPath in class DefaultRestHandler<Host>protected Class<Host> getAPIClass()
getAPIClass in class DefaultRestHandler<Host>public Set<Service> getServices(String name) throws CloudConductorException
name - the host nameCloudConductorException - Error indicating connection or data problemspublic void setService(String name, Service service) throws CloudConductorException
name - the host nameservice - the serviceCloudConductorException - Error indicating connection or data problemspublic void removeService(String name, String service) throws CloudConductorException
name - the host nameservice - the service nameCloudConductorException - Error indicating connection or data problemspublic Boolean inSync(String host) throws CloudConductorException
host - the host nameCloudConductorException - Error indicating connection or data problemspublic Boolean startService(String host, String service) throws CloudConductorException
host - the host nameservice - the service nameCloudConductorException - Error indicating connection or data problemspublic Boolean stopService(String host, String service) throws CloudConductorException
host - the host nameservice - the service nameCloudConductorException - Error indicating connection or data problemspublic Boolean restartService(String host, String service) throws CloudConductorException
host - the host nameservice - the service nameCloudConductorException - Error indicating connection or data problemsCopyright © 2014-2017 Cinovo AG. All Rights Reserved.