public static void dumpPendingDisplayConnections() { synchronized (globalLock) { System.err.println( "X11Util: Reusable X11 Display Connections: " + reusableDisplayList.size()); for (int i = 0; i < reusableDisplayList.size(); i++) { NamedDisplay ndpy = (NamedDisplay) reusableDisplayList.get(i); System.err.println("X11Util: Reusable[" + i + "]: " + ndpy); if (null != ndpy) { Throwable t = ndpy.getCreationStack(); if (null != t) { t.printStackTrace(); } } } System.err.println( "X11Util: Pending X11 Display Connections (creation order): " + pendingDisplayList.size()); for (int i = 0; i < pendingDisplayList.size(); i++) { NamedDisplay ndpy = (NamedDisplay) pendingDisplayList.get(i); System.err.println("X11Util: Pending[" + i + "]: " + ndpy); if (null != ndpy) { Throwable t = ndpy.getCreationStack(); if (null != t) { t.printStackTrace(); } } } } }
public static void dumpOpenDisplayConnections() { synchronized (globalLock) { System.err.println("X11Util: Open X11 Display Connections: " + openDisplayList.size()); for (int i = 0; i < openDisplayList.size(); i++) { NamedDisplay ndpy = openDisplayList.get(i); System.err.println("X11Util: Open[" + i + "]: " + ndpy); if (null != ndpy) { Throwable t = ndpy.getCreationStack(); if (null != t) { t.printStackTrace(); } } } } }