use of de.cinovo.cloudconductor.api.model.Template in project cloudconductor-agent-redhat by cinovo.
the class NodeAgent method checkServer.
private boolean checkServer() throws ServerConnectionException {
NodeAgent.LOGGER.info("Perform first authentication...");
new RefreshJWTJob().run();
NodeAgent.LOGGER.info("Get template from server...");
try {
Template template = ServerCom.getTemplate();
if (template != null) {
return true;
}
throw new ServerConnectionException();
} catch (CloudConductorException e) {
NodeAgent.LOGGER.error("Error getting template from server: ", e);
throw new ServerConnectionException();
}
}
Aggregations