Package com.sun.grid.installer.task

Examples of com.sun.grid.installer.task.ThreadPoolObserver


        progressBar.setMinimum(0);
        progressBar.setStringPainted(true);
        cancelB.setVisible(false);
        statusBar.setVisible(false);

        observer = new ThreadPoolObserver();
        observer.addThreadPoolListener(this);

        hostTF.addMouseListener(new MouseAdapter() {

            @Override
View Full Code Here


     * Method to capture {@link ThreadPoolEvent}s
     * @param threadPoolEvent The {@link ThreadPoolEvent} has been fired.
     */
    public void threadPoolActionPerformed(ThreadPoolEvent threadPoolEvent) {
        final int type = threadPoolEvent.getType();
        final ThreadPoolObserver obs = (ThreadPoolObserver) threadPoolEvent.getSource();

        SwingUtilities.invokeLater(new Runnable() {

            public void run() {

                /**
                 * Update main progress bar
                 */
                int cur = obs.getLastRunCompletedTaskCount();
                int max = obs.getLastRunTaskCount();

                String text = getLabel("progressbar.resolving.label");
                if (checkMode) {
                    text = getLabel("progressbar.checking.label");
                } else if (installMode) {
View Full Code Here

TOP

Related Classes of com.sun.grid.installer.task.ThreadPoolObserver

Copyright © 2018 www.massapicom. 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.