Examples of DumpContributionFailedException


Examples of org.elasticsearch.monitor.dump.DumpContributionFailedException

        return name;
    }

    @Override public void contribute(Dump dump) throws DumpContributionFailedException {
        if (heapDumpMethod == null) {
            throw new DumpContributionFailedException(getName(), "Heap dump not enalbed on this JVM");
        }
        try {
            heapDumpMethod.invoke(diagnosticMBean, dump.createFile("heap.hprof").getAbsolutePath(), true);
        } catch (Exception e) {
            throw new DumpContributionFailedException(getName(), "Failed to generate heap dump", e);
        }
    }
View Full Code Here

Examples of org.elasticsearch.monitor.dump.DumpContributionFailedException

        try {
            processHeader(writer, dump.timestamp());
            processCause(writer, dump.cause());
            processThrowables(writer, dump);
        } catch (Exception e) {
            throw new DumpContributionFailedException(getName(), "Failed to generate", e);
        } finally {
            try {
                writer.close();
            } catch (Exception e) {
                // ignore
View Full Code Here

Examples of org.elasticsearch.monitor.dump.DumpContributionFailedException

                writer.println();
                writer.println("---- Exception ----");
                t.printStackTrace(writer);
            }
        } else {
            throw new DumpContributionFailedException(getName(), "Can't handle throwables type [" + throwables.getClass() + "]");
        }
        writer.println();
    }
View Full Code Here

Examples of org.elasticsearch.monitor.dump.DumpContributionFailedException

        PrintWriter writer = new PrintWriter(dump.createFileWriter("threads.txt"));
        try {
            processDeadlocks(writer);
            processAllThreads(writer);
        } catch (Exception e) {
            throw new DumpContributionFailedException(getName(), "Failed to generate", e);
        } finally {
            try {
                writer.close();
            } catch (Exception e) {
                // ignore
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.