use of com.axway.ats.monitoring.model.exceptions.MonitoringException in project ats-framework by Axway.
the class SystemMonitor method stopMonitoringProcessOnAgent.
private void stopMonitoringProcessOnAgent(String monitoredAgent) throws MonitoringException {
try {
log.debug("Stopping system monitoring on " + monitoredAgent + " agent");
new AgentMonitoringClient(monitoredAgent).stopMonitoring();
log.debug("Successfully stopped monitoring " + monitoredAgent + " agent");
} catch (AgentException e) {
throw new MonitoringException("Could not stop monitoring " + monitoredAgent + " agent", e);
}
}
Aggregations