<h2>org.autoplot.EventThreadResponseMonitor</h2><p>This utility regularly posts events on the event thread, and measures processing time. This should never be more than 500ms (warnLevel below). See org.das2.util.awt.LoggingEventQueue, which was a similar experiment from 2005. This now monitors the event thread for hung events. Bugs found: https://sourceforge.net/p/autoplot/bugs/863/ If the file HOME/autoplot_data/log/request_dump.txt is found, this will trigger a heap dump and the file will be deleted.</p> <h2>EventThreadResponseMonitor( )</h2> <p></p> <hr> <a name="addToMap"></a> <h2>addToMap</h2> addToMap( <a href='https://docs.oracle.com/javase/8/docs/api/java/lang/String.html'>String</a> key, <a href='https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html'>Object</a> value ) → void <p>add to the information.</p> <h3>Parameters</h3> key - see GuiExceptionManager <br> value - an Object <h3>Returns:</h3> void (returns nothing) <br><br> <a href="https://github.com/autoplot/dev/search?q=addToMap&unscoped_q=addToMap">[search for examples]</a> <a href="https://github.com/autoplot/documentation/tree/master/javadoc/org/autoplot/EventThreadResponseMonitor.md">[view on GitHub]</a> <a href="http://www-pw.physics.uiowa.edu/~jbf/autoplot/javadoc2018/org/autoplot/EventThreadResponseMonitor.html#addToMap">[view on old javadoc]</a> <a href="https://sourceforge.net/p/autoplot/code/HEAD/tree/autoplot/trunk/Autoplot/src/org/autoplot/EventThreadResponseMonitor.java#l109">[view source]</a> <br> <br> <hr> <a name="dumpPendingEvents"></a> <h2>dumpPendingEvents</h2> dumpPendingEvents( ) → <a href='https://docs.oracle.com/javase/8/docs/api/java/lang/String.html'>String</a> <p>show all the events on the event thread by unqueuing and requeuing them. This should not be used in production use.</p> <h3>Returns:</h3> String representation <br><br> <a href="https://github.com/autoplot/dev/search?q=dumpPendingEvents&unscoped_q=dumpPendingEvents">[search for examples]</a> <a href="https://github.com/autoplot/documentation/tree/master/javadoc/org/autoplot/EventThreadResponseMonitor.md">[view on GitHub]</a> <a href="http://www-pw.physics.uiowa.edu/~jbf/autoplot/javadoc2018/org/autoplot/EventThreadResponseMonitor.html#dumpPendingEvents">[view on old javadoc]</a> <a href="https://sourceforge.net/p/autoplot/code/HEAD/tree/autoplot/trunk/Autoplot/src/org/autoplot/EventThreadResponseMonitor.java#l118">[view source]</a> <br> <br> <hr> <a name="main"></a> <h2>main</h2> main( <a href='https://docs.oracle.com/javase/8/docs/api/java/lang/String.html'>String[]</a> args ) → void <p></p> <h3>Parameters</h3> args - a java.lang.String[] <h3>Returns:</h3> void (returns nothing) <br><br> <a href="https://github.com/autoplot/dev/search?q=main&unscoped_q=main">[search for examples]</a> <a href="https://github.com/autoplot/documentation/tree/master/javadoc/org/autoplot/EventThreadResponseMonitor.md">[view on GitHub]</a> <a href="http://www-pw.physics.uiowa.edu/~jbf/autoplot/javadoc2018/org/autoplot/EventThreadResponseMonitor.html#main">[view on old javadoc]</a> <a href="https://sourceforge.net/p/autoplot/code/HEAD/tree/autoplot/trunk/Autoplot/src/org/autoplot/EventThreadResponseMonitor.java#l300">[view source]</a> <br> <br> <hr> <a name="setLogFile"></a> <h2>setLogFile</h2> setLogFile( <a href='https://docs.oracle.com/javase/8/docs/api/java/io/File.html'>java.io.File</a> f ) → void <p>set to the name of a file where event thread response times will be logged. This should be a folder local to the machine.</p> <h3>Parameters</h3> f - a File <h3>Returns:</h3> void (returns nothing) <br><br> <a href="https://github.com/autoplot/dev/search?q=setLogFile&unscoped_q=setLogFile">[search for examples]</a> <a href="https://github.com/autoplot/documentation/tree/master/javadoc/org/autoplot/EventThreadResponseMonitor.md">[view on GitHub]</a> <a href="http://www-pw.physics.uiowa.edu/~jbf/autoplot/javadoc2018/org/autoplot/EventThreadResponseMonitor.html#setLogFile">[view on old javadoc]</a> <a href="https://sourceforge.net/p/autoplot/code/HEAD/tree/autoplot/trunk/Autoplot/src/org/autoplot/EventThreadResponseMonitor.java#l91">[view source]</a> <br> <br> <hr> <a name="start"></a> <h2>start</h2> start( ) → void <p></p> <h3>Returns:</h3> void (returns nothing) <br><br> <a href="https://github.com/autoplot/dev/search?q=start&unscoped_q=start">[search for examples]</a> <a href="https://github.com/autoplot/documentation/tree/master/javadoc/org/autoplot/EventThreadResponseMonitor.md">[view on GitHub]</a> <a href="http://www-pw.physics.uiowa.edu/~jbf/autoplot/javadoc2018/org/autoplot/EventThreadResponseMonitor.html#start">[view on old javadoc]</a> <a href="https://sourceforge.net/p/autoplot/code/HEAD/tree/autoplot/trunk/Autoplot/src/org/autoplot/EventThreadResponseMonitor.java#l76">[view source]</a> <br> <br>