Search in sources :

Example 11 with MonitoringException

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);
    }
}
Also used : AgentMonitoringClient(com.axway.ats.agent.webapp.client.AgentMonitoringClient) AgentException(com.axway.ats.agent.core.exceptions.AgentException) MonitoringException(com.axway.ats.monitoring.model.exceptions.MonitoringException)

Aggregations

MonitoringException (com.axway.ats.monitoring.model.exceptions.MonitoringException)11 AgentException (com.axway.ats.agent.core.exceptions.AgentException)7 InternalSystemMonitoringOperations (com.axway.ats.agent.components.monitoring.operations.clients.InternalSystemMonitoringOperations)3 FullReadingBean (com.axway.ats.common.performance.monitor.beans.FullReadingBean)3 AbstractLoggerTask (com.axway.ats.monitoring.model.AbstractLoggerTask)3 ArrayList (java.util.ArrayList)3 AgentMonitoringClient (com.axway.ats.agent.webapp.client.AgentMonitoringClient)2 SystemStatsLoggerTask (com.axway.ats.monitoring.model.SystemStatsLoggerTask)2 UserActivityLoggerTask (com.axway.ats.monitoring.model.UserActivityLoggerTask)2 PublicAtsApi (com.axway.ats.common.PublicAtsApi)1 URL (java.net.URL)1 HashMap (java.util.HashMap)1 HashSet (java.util.HashSet)1