use of com.axway.ats.agent.core.exceptions.AgentException 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);
}
}
use of com.axway.ats.agent.core.exceptions.AgentException in project ats-framework by Axway.
the class Test_ConfigurationParser method testDB_NoDbNameServiceNameAndSID_forMySQL.
@Test
public void testDB_NoDbNameServiceNameAndSID_forMySQL() throws Exception {
InputStream _descriptorFileStream = Test_ConfigurationParser.class.getClassLoader().getResourceAsStream("test_descriptors/test_agent_descriptor_no_db_name_sid_sname_mysql.xml");
ConfigurationParser configParser = new ConfigurationParser();
try {
configParser.parse(_descriptorFileStream, jarFileAbsolutePath);
fail();
} catch (AgentException ae) {
assertEquals("No DB Name is specified.", ae.getMessage());
}
}
Aggregations