public class AgentHandler extends AbstractApiHandler
mapper| Constructor and Description |
|---|
AgentHandler(String cloudconductorUrl) |
| Modifier and Type | Method and Description |
|---|---|
Set<String> |
getAliveAgents() |
String |
getConfigFileData(String configFilename) |
Set<Service> |
getServices(String template) |
Set<SSHKey> |
getSSHKeys(String template) |
Template |
getTemplate(String template) |
PackageStateChanges |
notifyPackageState(String template,
String host,
PackageState state) |
ServiceStatesChanges |
notifyServiceState(String template,
String host,
ServiceStates state) |
_delete, _get, _get, _post, _post, _post, _put, _put, _put, _put, assertSuccess, dataFromResponse, getSetType, objectFromResponse, objectFromResponse, pathGenerator, request, request, requestpublic AgentHandler(String cloudconductorUrl)
cloudconductorUrl - the config server urlpublic PackageStateChanges notifyPackageState(String template, String host, PackageState state) throws CloudConductorException
template - the template namehost - the host namestate - the package stateCloudConductorException - Error indicating connection or data problemspublic ServiceStatesChanges notifyServiceState(String template, String host, ServiceStates state) throws CloudConductorException
template - the template namehost - the host namestate - the package stateCloudConductorException - Error indicating connection or data problemspublic String getConfigFileData(String configFilename) throws CloudConductorException
configFilename - the name of the config fileCloudConductorException - Error indicating connection or data problemspublic Template getTemplate(String template) throws CloudConductorException
template - the template nameCloudConductorException - Error indicating connection or data problemspublic Set<Service> getServices(String template) throws CloudConductorException
template - the template nameCloudConductorException - Error indicating connection or data problemspublic Set<SSHKey> getSSHKeys(String template) throws CloudConductorException
template - the template nameCloudConductorException - Error indicating connection or data problemspublic Set<String> getAliveAgents() throws CloudConductorException
CloudConductorException - Error indicating connection or data problemsCopyright © 2013-2014 Cinovo AG. All Rights Reserved.