public class TemplateHandler extends DefaultRestHandler<Template>
mapper| Constructor and Description |
|---|
TemplateHandler(String cloudconductorUrl) |
| Modifier and Type | Method and Description |
|---|---|
void |
addHost(String template,
String host)
Deprecated.
|
void |
addSSHKey(String template,
String key) |
void |
addVersion(String template,
PackageVersion version) |
protected Class<Template> |
getAPIClass() |
protected String |
getDefaultPath() |
Set<Host> |
getHosts(String template) |
Set<Service> |
getServices(String template) |
Set<SSHKey> |
getSSHKeys(String template) |
Set<PackageVersion> |
getVersions(String template) |
void |
removeHost(String template,
String host)
Deprecated.
|
void |
removeSSHKey(String template,
String key) |
void |
removeVersion(String template,
PackageVersion version) |
delete, get, get, getSetType, pathGenerator, save_delete, _get, _get, _post, _post, _post, _put, _put, _put, _put, assertSuccess, dataFromResponse, getSetType, objectFromResponse, objectFromResponse, request, request, requestpublic TemplateHandler(String cloudconductorUrl)
cloudconductorUrl - the config server urlprotected String getDefaultPath()
getDefaultPath in class DefaultRestHandler<Template>protected Class<Template> getAPIClass()
getAPIClass in class DefaultRestHandler<Template>public Set<Host> getHosts(String template) throws CloudConductorException
template - the template nameCloudConductorException - Error indicating connection or data problems@Deprecated public void addHost(String template, String host) throws CloudConductorException
template - the template namehost - the host nameCloudConductorException - Error indicating connection or data problems@Deprecated public void removeHost(String template, String host) throws CloudConductorException
template - the template namehost - the host nameCloudConductorException - Error indicating connection or data problemspublic Set<SSHKey> getSSHKeys(String template) throws CloudConductorException
template - the template nameCloudConductorException - Error indicating connection or data problemspublic void addSSHKey(String template, String key) throws CloudConductorException
template - the template namekey - the sshkey identifierCloudConductorException - Error indicating connection or data problemspublic void removeSSHKey(String template, String key) throws CloudConductorException
template - the template namekey - the sshkey identifierCloudConductorException - Error indicating connection or data problemspublic Set<PackageVersion> getVersions(String template) throws CloudConductorException
template - the template nameCloudConductorException - Error indicating connection or data problemspublic void addVersion(String template, PackageVersion version) throws CloudConductorException
template - the template nameversion - the package version identifierCloudConductorException - Error indicating connection or data problemspublic void removeVersion(String template, PackageVersion version) throws CloudConductorException
template - the template nameversion - the package version identifierCloudConductorException - Error indicating connection or data problemspublic Set<Service> getServices(String template) throws CloudConductorException
template - the template nameCloudConductorException - Error indicating connection or data problemsCopyright © 2013-2014 Cinovo AG. All Rights Reserved.