Package ariba.util.core

Examples of ariba.util.core.ProgressMonitor


        Confirmation.showConfirmation(requestContext(), _deleteAllConfId);
    }
   
    public void deleteAllAction ()
    {
        ProgressMonitor progressMonitor =
            ProgressMonitor.instance();
        int size = _posts.size();
        progressMonitor.prepare("Deleting %s of %s posts", size);
        for (int i = size - 1; i >= 0; i--) {
            progressMonitor.incrementCurrentCount();
            Post post = (Post)_posts.get(i);
            PostService.removePost(post);
            try {
                Thread.sleep(5000);
            } catch (InterruptedException e) {               
View Full Code Here


    }

    public AWResponseGenerating progressCheckAction ()
    {
        String key = request().formValueForKey(ProgressCheckSessionKeyName);
        ProgressMonitor progress = ProgressMonitor.getInstanceForKey(key);
        AWApplication application = application();
        AWResponse newResponse = application.createResponse(request());
        if (progress != null) {
            newResponse.appendContent(HTML.escapeUnsafe(progress.generateMessage()));
        } else {
            // Special marker value for No Request in Progress
            newResponse.appendContent("--NO_REQUEST--");
        }
View Full Code Here

TOP

Related Classes of ariba.util.core.ProgressMonitor

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.