use of de.cinovo.cloudconductor.agent.jobs.handler.ConfigFileHandler in project cloudconductor-agent-redhat by cinovo.
the class FilesJob method run.
@Override
public void run() {
FilesJob.LOGGER.debug("Started FilesJob");
// only run if no other blocking job is currently running
if (AgentState.filesExecutionLock.tryLock()) {
try {
new ConfigFileHandler().run();
} catch (ExecutionError e) {
if (e.getCause() instanceof CloudConductorException) {
FilesJob.LOGGER.debug(e.getMessage(), e);
}
} finally {
AgentState.filesExecutionLock.unlock();
}
}
FilesJob.LOGGER.debug("Finished FilesJob");
}
Aggregations