Examples of MonitoringException


Examples of org.apache.oodt.cas.resource.monitor.exceptions.MonitoringException

                stringBuffer.append(line);
                line = reader.readLine();
            }
            reader.close();
        } catch (IOException e) {
            throw new MonitoringException("Unable to read the sample monitoring report from the file: "
                    + e.getMessage());
        }

        String buffer = stringBuffer.toString().trim();
        SAXParserFactory factory = SAXParserFactory.newInstance();
        javax.xml.parsers.SAXParser parser;
        GangliaXMLParser gangliaXMLParser;
        try {
            parser = factory.newSAXParser();
            gangliaXMLParser = new GangliaXMLParser();
            parser.parse(new InputSource(new StringReader(buffer)), gangliaXMLParser);
            gridConfiguration = gangliaXMLParser.getGridConfiguration();
        } catch (ParserConfigurationException e) {
            throw new MonitoringException("Error while parsing: " + e.getMessage());
        } catch (SAXException e) {
            throw new MonitoringException("Error while parsing the XML: " + e.getMessage());
        } catch (IOException e) {
            throw new MonitoringException("I/O error: " + e.getMessage());
        }
    }
View Full Code Here

Examples of org.talend.esb.sam.common.event.MonitoringException

                }
            }
        }

        if (i == numberOfRetries) {
            throw new MonitoringException("1104", "Could not send events to monitoring service after "
                                                  + numberOfRetries + " retries.", lastException, events);
        }
    }
View Full Code Here

Examples of org.talend.esb.sam.common.event.MonitoringException

        try {
            monitoringServiceClient.putEvents(events);
        } catch (MonitoringException e) {
            throw e;
        } catch (Exception e) {
            throw new MonitoringException("002",
                                          "Unknown error while execute put events to Monitoring Server", e);
        }

    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.